1 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Edge-Triggered FF Operation.

Slides:



Advertisements
Similar presentations
Selected Design Topics. Integrated Circuits Integrated circuit (informally, a chip) is a semiconductor crystal (most often silicon) containing the electronic.
Advertisements

State-machine structure (Mealy)
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Sequential Circuits.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Computer Architecture CS 215
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Basic (NAND) S – R Latch “Cross-Coupling” two NAND gates gives the S -R Latch:
Synchronous Sequential Logic
Overview Part 1 - Storage Elements and Analysis
Overview Part 1 - Storage Elements and Analysis
CPEN Digital System Design Chapter 5 Sequential Circuits Storage Elements and Sequential Circuit Analysis C. Gerousis © Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Logic and Computer.
Circuits require memory to store intermediate data
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Combinational and Sequential Circuits
Chapter 6 –Selected Design Topics Part 2 – Propagation Delay and Timing Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
ENGIN112 L31: Read Only Memory November 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 31 Read Only Memory (ROM)
EE 4271 VLSI Design, Fall 2010 Sequential Circuits.
Sequential Circuit Analysis. 2 Synchronous vs. Asynch. Synchronous sequential circuit:  The behavior can be defined from knowledge of its signal at discrete.
Sequential Circuit Analysis. 2 Synchronous vs. Asynch. Synchronous sequential circuit:  the behavior can be defined from knowledge of its signal at discrete.
Sequential Circuits Chapter 6
1 Synchronous Sequential Circuit Analysis. 2 Synchronous Sequential Circuit State Memory – A set of n edge-triggered flip-flops that store the current.
CS 151 Digital Systems Design Lecture 31 Read Only Memory (ROM)
Courtesy of Dr Radwan E Abdel-Aal
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 4 – Part 3 Tom Kaminski & Charles.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
SEQUENTIAL CIRCUITS Introduction
Circuit, State Diagram, State Table
Chap 4. Sequential Circuits
Synchronous Sequential Logic Chapter 5. Digital Circuits Sequential Circuits Combinational circuits contains no memory elements the outputs depends.
Chap 4. Sequential Circuits
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 11 Binary Adder/Subtractor.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 6 – Selected Design Topics Part 1 – The.
Registers; State Machines Analysis Section 7-1 Section 5-4.
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
EKT 221 / 4 DIGITAL ELECTRONICS II
State Diagrams Tuesday, 12 September State diagram Graphical representation of a state table. –Provides the same information as a state table. –A.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
Overview Part 1 - Storage Elements and Analysis
Introduction to Sequential Logic Design
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
EKT 121 / 4 DIGITAL ELECTRONICS I
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Overview Part 1 – The Design Space
Edge-Triggered FF Operation
KU College of Engineering Elec 204: Digital Systems Design
KU College of Engineering Elec 204: Digital Systems Design
EE2174: Digital Logic and Lab
Chapter 5 – Sequential Circuits
SYEN 3330 Digital Systems Chapter 6 – Part 3 SYEN 3330 Digital Systems.
Sequential Circuits UNIT- IV
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

1 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Edge-Triggered FF Operation

2 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Edge-Triggered FF Operation

3 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Edge-Triggered FF Operation

4 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Edge-Triggered FF Operation

5 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 t s - setup time t h - hold time t w - clock pulse width t px - propagation delay –t PHL - High-to-Low –t PLH - Low-to-High –t pd - max (t PHL, t PLH ) t s t h t p-,min t p-,max t wH $ t wH,min t wL $ t wL,min C D Q (b) Edge-triggered (negative edge) t h t s t p-,min t p-,max t wH $ t wH,min t wL $ t wL,min C S / R Q (a) Pulse-triggered (positive pulse) Flip-Flop Timing Parameters

6 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Flip-Flop Timing Parameters (continued) t s - setup time –Master-slave - Equal to the width of the triggering pulse –Edge-triggered - Equal to a time interval that is generally much less than the width of the the triggering pulse t h – minimum hold time for the inputs - Often equal to zero t px - propagation delay –Same parameters as for gates except –Measured from clock edge that triggers the output change to the output change

7 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Sequential Circuit Analysis General Model –Current State at time (t) is stored in an array of lip-flops. –Next State at time (t+1) is a Boolean function of State and Inputs. –Outputs at time (t) are a Boolean function of State (t) and (sometimes) Inputs (t). Combina- tional Logic Inputs State Next State Outputs Storage Elements CLK

8 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 1 (from Fig. 6-17) Input: x(t) Output: y(t) State: (A(t), B(t)) What is the Output Function? What is the Next State Function?

9 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 1 (from Fig. 6-17) (continued) Boolean equations for the functions: –A(t+1) = A(t)x(t) + B(t)x(t) –B(t+1) = A (t)x(t) –y(t) = x(t)(B(t) + A(t)) C D Q Q C D Q Q' y x A A B CP Next State Output

10 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 1(from Fig. 6-17) (continued) Where in time are inputs, outputs and states defined?

11 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 State Table Characteristics State table – a multiple variable table with the following four sections: –Present State – the values of the state variables for each allowed state. –Input – the input combinations allowed. –Next-state – the value of the state at time (t+1) based on the present state and the input. –Output – the value of the output as a function of the present state and (sometimes) the input. From the viewpoint of a truth table: – the inputs are Input, Present State –and the outputs are Output, Next State

12 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 1: State Table (from Fig. 6-17) The state table can be filled in using the next state and output equations: A(t+1) = A(t)x(t) + B(t)x(t) B(t+1) =  A (t)x(t) y(t) =  x (t)(B(t) + A(t))

13 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 1: Alternate State Table 2-dimensional table that matches well to a K-map. Present state rows and input columns in Gray code order. –A(t+1) = A(t)x(t) + B(t)x(t) –B(t+1) =  A (t)x(t) –y(t) =  x (t)(B(t) + A(t))

14 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 State Diagrams The sequential circuit function can be represented in graphical form as a state diagram with the following components: –A circle with the state name in it for each state –A directed arc from the Present State to the Next State for each state transition –A label on each directed arc with the Input values which causes the state transition, and –A label: On each circle with the output value produced, or On each directed arc with the output value produced.

15 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 State Diagrams Label form: –On circle with output included: state/output Moore type output depends only on state –On directed arc with the output included: input/output Mealy type output depends on state and input

16 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 1: State Diagram Which type? Diagram gets confusing for large circuits For small circuits, usually easier to understand than the state table A B x=0/y=1 x=1/y=0 x=0/y=1 x=1/y=0 x=0/y=0

17 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Moore and Mealy Models Sequential Circuits or Sequential Machines are also called Finite State Machines (FSMs). Two formal models exist: In contemporary design, models are sometimes mixed Moore and Mealy  Moore Model Named after E.F. Moore. Outputs are a function ONLY of states Usually specified on the states.  Mealy Model Named after G. Mealy Outputs are a function of inputs AND states Usually specified on the state transition arcs.

18 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Moore and Mealy Example Diagrams Mealy Model State Diagram maps inputs and state to outputs Moore Model State Diagram maps states to outputs 0 1 x=1/y=1 x=1/y=0 x=0/y=0 1/0 2/1 x=1 x=0 x=1 x=0 0/0

19 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Moore and Mealy Example Tables Mealy Model state table maps inputs and state to outputs Moore Model state table maps state to outputs Present State Next State x=0 x=1 Output Present State Next State x=0 x=1 Output x=0 x=

20 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 2: Sequential Circuit Analysis Logic Diagram: Clock Reset D Q C Q R D Q C Q R D Q C Q R A B C Z

21 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 2: Flip-Flop Input Equations Variables –Inputs: None –Outputs: Z –State Variables: A, B, C Initialization: Reset to (0,0,0) Equations –A(t+1) = Z = –B(t+1) = –C(t+1) =

22 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Example 2: State Table A B C A + B + C + Z X + = X(t+1)

23 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Which states are used? What is the function of the circuit? Reset ABC Example 2: State Diagram

24 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Consider a system comprised of ranks of flip-flops connected by logic: If the clock period is too short, some data changes will not propagate through the circuit to flip-flop inputs before the setup time interval begins Circuit and System Level Timing

25 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Timing components along a path from flip-flop to flip-flop Circuit and System Level Timing (continued) (a) Edge-triggered (positive edge) t p t pd,FF t pd,COMB t slack t s C (b) Pulse-triggered (negative pulse) t p t pd,FF t pd,COMB t slack t s C

26 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 New Timing Components –t p - clock period - The interval between occurrences of a specific clock edge in a periodic clock –t pd,COMB - total delay of combinational logic along the path from flip-flop output to flip-flop input –t slack - extra time in the clock period in addition to the sum of the delays and setup time on a path Can be either positive or negative Must be greater than or equal to zero on all paths for correct operation Circuit and System Level Timing (continued)

27 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Timing Equations t p = t slack + (t pd,FF + t pd,COMB + t s ) –For t slack greater than or equal to zero, t p ≥ max (t pd,FF + t pd,COMB + t s ) for all paths from flip-flop output to flip-flop input Can be calculated more precisely by using t PHL and t PLH values instead of t pd values, but requires consideration of inversions on paths Circuit and System Level Timing (continued)

28 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Calculation of Allowable t pd,COMB Compare the allowable combinational delay for a specific circuit: a) Using edge-triggered flip-flops b) Using master-slave flip-flops Parameters –t pd,FF (max) = 1.0 ns –t s (max) = 0.3 ns for edge-triggered flip-flops –t s = t wH = 1.0 ns for master-slave flip-flops –Clock frequency = 250 MHz

29 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Calculation of Allowable t pd,COMB (continued) Calculations: t p = 1/clock frequency = 4.0 ns –Edge-triggered: 4.0 ≥ t pd,COMB + 0.3, t pd,COMB ≤ 2.7 ns –Master-slave: 4.0 ≥ t pd,COMB + 1.0, t pd,COMB ≤ 2.0 ns Comparison: Suppose that for a gate, average t pd = 0.3 ns –Edge-triggered: Approximately 9 gates allowed on a path –Master-slave: Approximately 6 to 7 gates allowed on a path