CS 151 Digital Systems Design Lecture 28 Timing Analysis.

Slides:



Advertisements
Similar presentations
CS 140 Lecture 11 Sequential Networks: Timing and Retiming Professor CK Cheng CSE Dept. UC San Diego 1.
Advertisements

1 A latch is a pair of cross-coupled inverters –They can be NAND or NOR gates as shown –Consider their behavior (each step is one gate delay in time) –From.
Selected Design Topics. Integrated Circuits Integrated circuit (informally, a chip) is a semiconductor crystal (most often silicon) containing the electronic.
Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
1 COMP541 Flip-Flop Timing Montek Singh Oct 6, 2014.
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
Introduction to CMOS VLSI Design Sequential Circuits
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
Lecture 11: Sequential Circuit Design. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 11: Sequential Circuits2 Outline  Sequencing  Sequencing Element Design.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
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:
Digital Logic Circuits (Part 2) Computer Architecture Computer Architecture.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Chapter 6 –Selected Design Topics Part 2 – Propagation Delay and Timing Logic and Computer Design Fundamentals.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
Sequential Logic 1 clock data in may changestable data out (Q) stable Registers  Sample data using clock  Hold data between clock cycles  Computation.
1 Digital Design: State Machines Timing Behavior Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals.
Assume array size is 256 (mult: 4ns, add: 2ns)
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
ENGIN112 L28: Timing Analysis November 7, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 28 Timing Analysis.
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D. 4/10/2002.
CSE 140L Lecture 4 Flip-Flops, Shifters and Counters Professor CK Cheng CSE Dept. UC San Diego.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Sequential Logic 1  Combinational logic:  Compute a function all at one time  Fast/expensive  e.g. combinational multiplier  Sequential logic:  Compute.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
11/15/2004EE 42 fall 2004 lecture 321 Lecture #32 Registers, counters etc. Last lecture: –Digital circuits with feedback –Clocks –Flip-Flops This Lecture:
Flip-Flops and Related Devices
Chapter #6: Sequential Logic Design 6.2 Timing Methodologies
Introduction to CMOS VLSI Design Lecture 10: Sequential Circuits Credits: David Harris Harvey Mudd College (Material taken/adapted from Harris’ lecture.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
CS3350B Computer Architecture Winter 2015 Lecture 5.2: State Circuits: Circuits that Remember Marc Moreno Maza [Adapted.
COE 202: Digital Logic Design Sequential Circuits Part 1
Introduction to Sequential Logic Design Flip-flops.
Lecture 5. Sequential Logic 3 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
EEE2243 Digital System Design Chapter 7: Advanced Design Considerations by Muhazam Mustapha, extracted from Intel Training Slides, April 2012.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Computer Architecture Lecture 4 Sequential Circuits Ralph Grishman September 2015 NYU.
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.
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential Networks: Timing and Retiming
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
1 COMP541 Sequential Logic Timing Montek Singh Sep 30, 2015.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS61C L24 State Elements : Circuits that Remember (1) Garcia, Fall 2014 © UCB Senior Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c.
CS 61C: Great Ideas in Computer Architecture Sequential Elements, Synchronous Digital Systems 1 Instructors: Vladimir Stojanovic & Nicholas Weaver
FAMU-FSU College of Engineering EEL 3705 / 3705L Digital Logic Design Spring 2007 Instructor: Dr. Michael Frank Module #10: Sequential Logic Timing & Pipelining.
CS 110 Computer Architecture Lecture 9: Finite State Machines, Functional Units Instructor: Sören Schwertfeger School of.
Lecture 4. Sequential Logic #3 Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Logic Design.
Ch.5 Flip Flops and Related Devices
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
Flip Flops Lecture 10 CAP
Flip-Flops and Related Devices
Sequential circuit design with metastability
Timing issues.
Introduction to Sequential Logic Design
COMP541 Flip-Flop Timing Montek Singh Feb 23, 2010.
Timing Analysis 11/21/2018.
ECE 352 Digital System Fundamentals
COMP541 Sequential Logic Timing
Presentation transcript:

CS 151 Digital Systems Design Lecture 28 Timing Analysis

Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs Propagation delay °Sequential circuits require a periodic clock °Goal: analyze clock circuit to determine maximum clock frequency Requires analysis of paths from flip-flop outputs to flip-flop inputs °Even after inputs change, output signal of circuit maintains original output for short time Contamination delay

Sequential Circuits °Sequential circuits can contain both combinational logic and edge-triggered flip flops °A clock signal determines when data is stored in flip flops °Goal: How fast can the circuit operate? Minimum clock period: T min Maximum clock frequency: f max °Maximum clock frequency is the inverse of the minimum clock period 1/T min = f max Clock Period Clock

Combinational Logic Timing: Inverter °Combinational logic is made from electronic circuits An input change takes time to propagate to the output °The output remains unchanged for a time period equal to the contamination delay, t cd °The new output value is guaranteed to valid after a time period equal to the propagation delay, t pd A Y A Y t pd t cd

Combinational Logic Timing: XNOR Gate °The output is guaranteed to be stable with old value until the contamination delay Unknown values shown in waveforms as Xs °The output is guaranteed to be stable with the new value after the propagation delay

Combinational Logic Timing: complex circuits °Propagation delays are additive Locate the longest combination of t pd °Contamination delays may not be additive Locate the shortest path of t cd °Find propagation and contamination delay of new, combined circuit A B C A B C Circuit X T pd = 5ns T cd = 1ns T pd = 2ns T cd = 1ns T pd = 3ns T cd = 1ns

Clocked Device: Contamination and Propagation Delay °Timing parameters for clocked devices are specified in relation to the clock input (rising edge) °Output unchanged for a time period equal to the contamination delay, t cd after the rising clock edge °New output guaranteed valid after time equal to the propagation delay, t Clk-Q Follows rising clock edge Clk Q D t cd t Clk-Q

Clocked Devices: Setup and Hold Times t s t h Clk Q D °Timing parameters for clocked devices are specified in relation to the clock input (rising edge) °D input must be valid at least t s (setup time) before the rising clock edge °D input must be held steady t h (hold time) after rising clock edge °Setup and hold are input restrictions Failure to meet restrictions causes circuit to operate incorrectly

Edge-Triggered Flip Flop Timing D CLK t s = setup time t h = hold time °The logic driving the flip flop must ensure that setup and hold are met °Timing values (t cd t pd t Clk-Q t s t h )

Analyzing Sequential Circuits °What is the minimum time between rising clock edges? T min = T CLK-Q (FFA) + T pd (G) + T s (FFB) °Trace propagation delays from FFA to FFB °Draw the waveforms! Z Comb. Logic T Clk-Q = 5 ns T s = 2 ns D Q D Q YX D CLK T Clk-Q = 5ns T pd = 5ns FFA FFB G F max = _______

Analyzing Sequential Circuits °What is the minimum clock period (T min ) of this circuit? Hint: evaluate all FF to FF paths °Maximum clock frequency is 1/T min Z Comb. Logic H T Clk-Q = 4 ns T s = 2 ns D Q D Q YX CLK T Clk-Q = 5ns T pd = 5ns FFA FFB Comb. Logic F T pd = 4ns

Analyzing Sequential Circuits °Path FFA to FFB T Clk-Q (FFA) + T pd (H) + T s (FFB) = 5ns + 5ns + 2ns = 12ns °Path FFB to FFB T CLK-Q (FFB) + T pd (F) + T pd (H) + T s (FFB) = 4ns + 4ns + 5ns + 2ns Z Comb. Logic H T Clk-Q = 4 ns T s = 2 ns D Q D Q YX CLK T Clk-Q = 5ns T pd = 5ns FFA FFB Comb. Logic F T pd = 4ns F max = _______

Analyzing Sequential Circuits: Hold Time Violation °One more issue: make sure Y remains stable for hold time (T h ) after rising clock edge °Remember: contamination delay ensures signal doesn’t change °How long before first change arrives at Y? T cd (FFA) + T cd (G) >= T h 1ns + 2ns > 2ns Z Comb. Logic T h = 2 ns D Q D Q YX D CLK T cd = 1ns T cd = 2ns FFA FFB G

Analyzing Sequential Circuits: Hold Time Violations °Path FFA to FFB T CD (FFA) + T CD (H) > T h (FFB) = 1 ns + 2ns > 2ns °Path FFB to FFB T CD (FFB) + T CD (F) + T Cd (H) > T h (FFB) = 1ns + 1ns + 2ns > 2ns Z Comb. Logic H T ClD = 1 ns T h = 2 ns D Q D Q YX CLK T ClD = 1ns T cd = 2ns FFA FFB Comb. Logic F T cd = 1ns All paths must satisfy requirements

Summary °Maximum clock frequency is a fundamental parameter in sequential computer systems °Possible to determined clock frequency from propagation delays and setup time °The longest path determines the clock frequenct °All flip-flop to flip-flop paths must be checked °Hold time are satisfied by examining contamination delays °The shortest contamination delay path determines if hold times are met °Check handout for more details and examples.