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.

Slides:



Advertisements
Similar presentations
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
Advertisements

EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Sequential Circuits.
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:
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.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
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 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
Overview Datapath and Control Algorithmic State Machines (ASM)
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 2 – Chapter.
Overview Functions and functional blocks Rudimentary logic functions
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
Overview Sequential Circuit Design Specification Formulation
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
EE 4271 VLSI Design, Fall 2010 Sequential Circuits.
Sequential Circuits Chapter 6
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 4 Technology.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
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 28 Timing Analysis.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
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
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
Overview Part 1 Part 2 Sequential Circuit Design
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
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.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Logic and Computer.
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.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 3 – Chapter.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Overview Memory definitions Random Access Memory (RAM)
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 © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
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.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Edge-Triggered FF Operation.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
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.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
4.
Overview Part 1 - Storage Elements and Analysis
Lecture 3 – Binary Arithmetic
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
Overview Part 1 – The Design Space
Edge-Triggered FF Operation
EE2174: Digital Logic and Lab
Lecture 26 – Hardwired and Microprogrammed Control
Overview Part 1 - Registers, Microoperations and Implementations
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.
Lecture 4 – Binary Logic and Logic Gates
Presentation transcript:

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 Fundamentals Lecture 20 – Analyzing Sequential Logic

Chapter 6 - Part 1 2 Overview  Finite State Machine Model  State Tables  State Diagrams  Moore and Mealy Models  Circuit and System Level Timing

Chapter 6 - Part 1 3 Finite State Machine Model  General Model Current State at time (t) is stored in an array of flip-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

Chapter 6 - Part 1 4 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?

Chapter 6 - Part 1 5 Example 1 (continued)  Where in time are inputs, outputs and states defined?

Chapter 6 - Part 1 6 Example 1: State Table  The state table can be filled in using the next state and output equations:

Chapter 6 - Part 1 7 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))

Chapter 6 - Part 1 8 State Diagrams  Graphical specification  Nodes  states  Edges  transitions Depend on inputs  Outputs Based on state Based on state and input A B x=0/y=1 x=1/y=0 x=0/y=1 x=1/y=0 x=0/y=0

Chapter 6 - Part 1 9 Moore and Mealy Models  Finite State Machines (FSMs) have two formal models:  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.

Chapter 6 - Part 1 10 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

Chapter 6 - Part 1 11 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=

Chapter 6 - Part 1 12 Sequential Circuit Analysis Example  Logic Diagram: Clock Reset D Q C Q R D Q C Q R D Q C Q R A B C Z

Chapter 6 - Part 1 13 Example 2: Flip-Flop Input Equations  Variables Inputs: None Outputs: Z State Variables: A, B, C  Initialization: Reset to (0,0,0)  Equations:

Chapter 6 - Part 1 14 Example 2: State Table A B C A’B’C’ Z X’ = X(t+1) A B C A’B’C’ Z

Chapter 6 - Part 1 15  Which states are used?  What is the function of the circuit? Reset ABC Example 2: State Diagram

Chapter 6 - Part 1 16  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

Chapter 6 - Part 1 17  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

Chapter 6 - Part 1 18  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)

Chapter 6 - Part 1 19  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)

Chapter 6 - Part 1 20 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

Chapter 6 - Part 1 21 Calculation of Allowable t pd,COMB (continued)  Calculations: t p = 1/clock frequency = 4.0 ns Edge-triggered: 4.0 ≥ t pd,COMB → t pd,COMB ≤ 2.7 ns Master-slave: 4.0 ≥ t pd,COMB → t pd,COMB ≤ 2.0 ns  Comparison: Assume average gate 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

Chapter 6 - Part 1 22 Summary  Finite State Machine Model  State Tables  State Diagrams  Moore and Mealy Models  Circuit and System Level Timing

Chapter 6 - Part 1 23 Terms of Use  © 2004 by Pearson Education,Inc. All rights reserved.  The following terms of use apply in addition to the standard Pearson Education Legal Notice.Legal Notice  Permission is given to incorporate these materials into classroom presentations and handouts only to instructors adopting Logic and Computer Design Fundamentals as the course text.  Permission is granted to the instructors adopting the book to post these materials on a protected website or protected ftp site in original or modified form. All other website or ftp postings, including those offering the materials for a fee, are prohibited.  You may not remove or in any way alter this Terms of Use notice or any trademark, copyright, or other proprietary notice, including the copyright watermark on each slide.  Return to Title Page Return to Title Page