Digital Circuits Laboratory LAB no. 9. Flip flops

Similar documents
ASYNCHRONOUS COUNTERS

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Lesson 12 Sequential Circuits: Flip-Flops

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Lecture 8: Synchronous Digital Systems

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Theory of Logic Circuits. Laboratory manual. Exercise 3

Set-Reset (SR) Latch

CHAPTER 11: Flip Flops

Engr354: Digital Logic Circuits

Counters and Decoders

7. Latches and Flip-Flops

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Module 3: Floyd, Digital Fundamental

BINARY CODED DECIMAL: B.C.D.

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Lecture-3 MEMORY: Development of Memory:

Master/Slave Flip Flops

Memory Elements. Combinational logic cannot remember

Digital Logic Design Sequential circuits

ECE380 Digital Logic

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Sequential Logic: Clocks, Registers, etc.

Decimal Number (base 10) Binary Number (base 2)

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

CHAPTER 11 LATCHES AND FLIP-FLOPS

Sequential Logic Design Principles.Latches and Flip-Flops

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

CS311 Lecture: Sequential Circuits

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Upon completion of unit 1.1, students will be able to

Modeling Latches and Flip-flops

Chapter 9 Latches, Flip-Flops, and Timers

Asynchronous Counters. Asynchronous Counters

Combinational Logic Design Process

Counters. Present State Next State A B A B

Chapter 8. Sequential Circuits for Registers and Counters

Digital Controller for Pedestrian Crossing and Traffic Lights

Counters & Shift Registers Chapter 8 of R.P Jain

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

CSE140: Components and Design Techniques for Digital Systems

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Chapter 5. Sequential Logic

Layout of Multiple Cells

The components. E3: Digital electronics. Goals:

Digital Electronics Detailed Outline

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

DEPARTMENT OF INFORMATION TECHNLOGY

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Gates, Circuits, and Boolean Algebra

Contents COUNTER. Unit III- Counters

Asynchronous counters, except for the first block, work independently from a system clock.

Flip-Flops, Registers, Counters, and a Simple Processor

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

Cascaded Counters. Page 1 BYU

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Wiki Lab Book. This week is practice for wiki usage during the project.

Fig1-1 2-bit asynchronous counter

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

Counters are sequential circuits which "count" through a specific state sequence.

Electronics Merit Badge Class 3. 1/30/2014 Electronics Merit Badge Class 3 1

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis

Digital Logic Elements, Clock, and Memory Elements

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

路 論 Chapter 15 System-Level Physical Design

Sequential 4-bit Adder Design Report

Operating Manual Ver.1.1

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Modeling Registers and Counters

The 104 Duke_ACC Machine

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

A New Paradigm for Synchronous State Machine Design in Verilog

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Admin. ECE 550: Fundamentals of Computer Systems and Engineering. Last time. VHDL: Behavioral vs Structural. Memory Elements

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

Transcription:

(FF) are sequential logic circuits with 2 distinct stable states. hey have control inputs that cause the outputs to switch from one stable state to the other. hey are circuits with memory, because one can deduce the last applied command by analyzing the outputs. Because they are the basis of all sequential circuits, their applications are various: counters, registers, AM memories, etc. here are 4 types of flip flops: - - - - - D -. - flip-flop his FF has to command inputs named (et) and (eset) and 2 complementary outputs and. he input is used to write the information in the circuit (by convention the information means logic ) and the input that deletes the information from the circuit. Both inputs are active on logic. he circuit s truth table is the following: tn tn+ n n n n+ n+ = n n+ = n n+ = n+ = n+ = n+ =?? he circuit operates like this: if both inputs are inactive ( n = n =) the circuit keeps the state ( n+ = n ). if the input is active ( n =, n =) the information is written into the circuit ( n+ =) no matter which is the previous state. if the input is active ( n =, n =) the information is deleted from the circuit ( n+ =) no matter which is the previous state. 49

the case n = n = has no sense, because is not logic to write and to delete the information in the same moment. he good working condition for this circuit is n n =. Above, t n is the actual moment, and n, n, n are the input and the output values at the present moment, and t n+ is the next moment, n+ is the output in this moment. For the circuit synthesis n+ is considered output signal. he arnaugh diagrams for the outputs are the following: n n n n n n X X X X n n n n For the synthesis, the de Morgan theorem will be used in order to implement the circuit with NAND gates only: ( ) ( ) n n n n n n n n ( n n n n n) n ( n n) hus, the circuit looks like in the next figure: n n n n he circuit has the inputs active on logic. If the inverters are taken out, the circuit will have the inputs active on logic. he above circuit can be implemented with NO gates only. For this we will group the cells containing logic : 5

n n n n n n X X X X n n ( n) n ( ) Applying the de Morgan theorem the equations become: ( ) ( ) n n n n n n n n ( ) ( ) n n n n n n n n In this case the circuit will look like in the following figure: n n n n he above circuit is an asynchronous one. he synchronous circuit is also available. It has the inputs activated by a clock signal (following figure). As long as is logic, the AND gates have the outputs in logic no matter which are the inputs and. In these conditions its state cannot be changed. When is logic then = and = and the circuit works like in the asynchronous version. 2. - flip flop his kind of flip flop eliminates the flip flop indefinite state. It has 2 5

inputs and and a clock input in the synchronous version. a) Asynchronous - flip flop he truth table of this circuit is the following: t n t n+ n n n n+ n+ = n n+ = n n+ = n+ = n+ = n+ = n+ = n n+ = n he input has the same role as the input for the - flip flop and the input as. he difference is for == when instead of the indefinite state the output switches to the complementary one. he V associated diagrams are: n n n n n n n n n n n he above equations can be rewritten: he flip flop looks like: n n n n n n n n n n n n n n n n n n n 52

he block framed in the dotted square is a - flip flop. We can deduce immediately the connection equation between the two flip flops: n n n n n n Another implementation choice that comes from the above equations is the following: n n n, n n n and has the next schematic: b) ynchronous - flip flop he synchronous - flip flops are obtained by replacing the 2 inputs NAND gates cu 3 input gates, the clock being connected to the third: heir disadvantage is that for = the circuit oscillates. c) Master-slave - flip flop In order to eliminate the oscillation a master slave structure has been proposed. his is based on two pipelined - flip flops. he first flip flop (the master) stores the data on the positive edge of the clock signal, while the second (slave) is detached. When the clock is logic, the data is 53

transferred from master to slave, while the master is detached from the inputs. In the following figure it is shown the logic schematic of this circuit. he truth table associated with the master slave flip flop is: n n n+ n n he symbol signify the fact that the output changes on the negative edge of the clock signal. 3. flip flop In many applications the flip flop is used with the inputs connected at logic. his connection represents another type of flip flop: flip flop or counting cell. Its truth table is: n+ n n 54

he flip flop realizes the clock frequency division with 2. As long as =, the output changes its state every two clock transitions (every negative edge). his property makes it suitable for using in counter s construction. t t t 4. D flip flop D his circuit has an input called D (data) and a clock input (). Besides these, it has two asynchronous inputs and that have the highest priority. he value at the input at t n goes at the output at t n+, as we can notice from its truth table. t n t n+ D n n+ From the truth table we observe that n+ =D n. hus, the D flip flop introduces a delay of the input state. he output at the moment t n+ is the 55

same as the input at the t n (delay cell or memory cell). his circuit is useful for realizing static AM memories, registers but also counters. Generally, any type of flip flop can be replaced with other type using conversion schemes. 3. Lab work Print the Lab sheet below and complete it according to the indications. 56

LAB HEE. Input the flip flop with NAND gates in MaxPlusII and simulate the circuit. Draw the waveforms from the simulation on the grid below. Write the delay time and the logic values on the waveforms. Compare the results with the truth table. Introduce the inverters on the inputs, save as a new circuit and simulate again. Draw the waveforms in this case. 2. Input in MaxPlusII a flip flop (FF from the library) and simulate it. Draw the waveforms on the grid below, measure the delay and compare the results with the truth table. clk 3. Input a D flip flop (DFF in the library) and simulate it. Draw the waveforms below, measure the delay and compare the results with the truth table. clk D 57