FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Clocking disciplines Flip-flops. Latches.

Slides:



Advertisements
Similar presentations
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.
Advertisements

1 Lecture 16 Timing  Terminology  Timing issues  Asynchronous inputs.
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 CMOS VLSI Design Sequential Circuits.
1 Introduction Sequential circuit –Output depends not just on present inputs (as in combinational circuit), but on past sequence of inputs Stores bits,
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.
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Memory elements. n Basics of sequential machines.
ELEC 256 / Saif Zahir UBC / 2000 Timing Methodology Overview Set of rules for interconnecting components and clocks When followed, guarantee proper operation.
Lecture 11: Sequential Circuit Design. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 11: Sequential Circuits2 Outline  Sequencing  Sequencing Element Design.
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 24: November 4, 2011 Synchronous Circuits.
Introduction to Sequential Logic Design Bistable elements Latches.
K-Maps, Timing Sequential Circuits: Latches & Flip-Flops Lecture 4 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier,
1 EE121 John Wakerly Lecture #8 Sequential Circuits Flip-flops Sequential PALs.
Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE VLSI Circuit Design Lecture 17 - Sequential.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
Introduction to CMOS VLSI Design Clock Skew-tolerant circuits.
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)
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.
Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n Sequential machine implementation: –clocking. n Sequential machine design.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
EE141 © Digital Integrated Circuits 2nd Timing Issues 1 Latch-based Design.
Modern VLSI Design 2e: Chapter 6 Copyright  1998 Prentice Hall PTR Topics n Shifters. n Adders and ALUs.
Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n Memory elements. n Basics of sequential machines.
Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n State assignment. n Power optimization of sequential machines. n Design validation.
11/15/2004EE 42 fall 2004 lecture 321 Lecture #32 Registers, counters etc. Last lecture: –Digital circuits with feedback –Clocks –Flip-Flops This Lecture:
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.
Modern VLSI Design 2e: Chapter 4 Copyright  1998 Prentice Hall PTR Topics n Crosstalk. n Power optimization.
CS 151 Digital Systems Design Lecture 28 Timing Analysis.
Digital System Clocking: High-Performance and Low-Power Aspects Vojin G. Oklobdzija, Vladimir M. Stojanovic, Dejan M. Markovic, Nikola M. Nedovic Wiley-Interscience.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
1 CSE370, Lecture 16 Lecture 19 u Logistics n HW5 is due today (full credit today, 20% off Monday 10:29am, Solutions up Monday 10:30am) n HW6 is due Wednesday.
FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Topics n Basics of sequential machines. n Sequential machine specification. n Sequential.
FPGA-Based System Design: Chapter 4 Copyright  2004 Prentice Hall PTR HDL coding n Synthesis vs. simulation semantics n Syntax-directed translation n.
Modern VLSI Design 3e: Chapter 5,6 Copyright  2002 Prentice Hall PTR Adapted by Yunsi Fei Topics n Sequential machine (§5.2, §5.3) n FSM construction.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR Topics n Latches and flip-flops. n RAMs and ROMs.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR FPGA Fabric n Elements of an FPGA fabric –Logic element –Placement –Wiring –I/O.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR Topics n FPGA fabric architecture concepts.
EEE2243 Digital System Design Chapter 7: Advanced Design Considerations by Muhazam Mustapha, extracted from Intel Training Slides, April 2012.
Digital System Clocking: High-Performance and Low-Power Aspects Vojin G. Oklobdzija, Vladimir M. Stojanovic, Dejan M. Markovic, Nikola M. Nedovic Wiley-Interscience.
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Complete Example.
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 26: October 31, 2014 Synchronous Circuits.
SEQUENTIAL LOGIC By Tom Fitch. Types of Circuits Combinational: Gates Combinational: Gates Sequential: Flip-Flops Sequential: Flip-Flops.
Introduction to Sequential Logic Design Bistable elements.
Topics Combinational network delay.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.
Modern VLSI Design 3e: Chapter 8 Copyright  1998, 2002 Prentice Hall PTR Topics n Basics of register-transfer design: –data paths and controllers; –ASM.
FPGA-Based System Design: Chapter 6 Copyright  2004 Prentice Hall PTR Topics n Low power design. n Pipelining.
1 COMP541 Sequential Logic Timing Montek Singh Sep 30, 2015.
12006 MAPLD International ConferenceSpaceWire 101 Seminar Data Strobe (DS) Encoding Sam Stratton 2006 MAPLD International Conference.
Clocking System Design
EE 466/586 VLSI Design Partha Pande School of EECS Washington State University
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Latches, Flip Flops, and Memory ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison.
Penn ESE370 Fall DeHon 1 ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems Day 20: October 25, 2010 Pass Transistors.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR Topics n FPGA fabric architecture concepts.
Computer Science 210 Computer Organization
Computer Science 210 Computer Organization
Instructor: Alexander Stoytchev
Computer Science 210 Computer Organization
Topics Performance analysis..
ARM implementation the design is divided into a data path section that is described in register transfer level (RTL) notation control section that is viewed.
Topics Clocking disciplines. Flip-flops. Latches..
Presentation transcript:

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Clocking disciplines Flip-flops. Latches.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Clocking disciplines n Rules for constructing sequential machines. –Combinations of registers and gates. –Behavior of clocks and primary inputs over time. n Rules are sufficient to guarantee that the system will work at some clock rate. –May not be as fast as we want.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Qualified clock n Clock logically combined with signal: DQ  sig1

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Flip-flop-based sequential machines

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Flip-flop rules Primary inputs change after clock (  ) edge. n Primary inputs must stabilize before next clock edge. n Rules allow changes to propagate through combinational logic for next cycle. n Flip-flop outputs hold current-state values for next-state computation.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Signals in flip-flop system positive clock edge

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Latch-based machines n Latches do not cut combinational logic when clock is active. n Latch-based machines must use multiple ranks of latches. n Multiple ranks require multiple phases of clock.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Two-sided latch constraint n Latch must be open less than the shortest combinational delay. n Period between latching operations must be longer than the longest combinational delay. n Note: difference between shortest and longest combinational delay may be large (sum 0 vs. sum 31 ).

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Latch shoot-through Latch may allow data to shoot through:

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Strict two-phase clocking discipline n Strict two-phase discipline is conservative but works. n Can be relaxed later with proper knowledge of constraints. n Strict two-phase machine makes latch-based machine behave more like flip-flop design, but requires multiple phases.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Strict two-phase architecture

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Two-phase clock Phases must not overlap: non-overlap region

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Why it works n Each phase has a one-sided constraint: phase must be long enough for all combinational delays. n If there are no combinational loops, phases can always be stretched to make that section of the machine work. n Total clock period depends on sum of phase periods.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Clocking types n Logic on different phases operate at different times—can’t mix signals from different phases. n Primary inputs must obey the same rules as internal signals. n Clocking types are bookkeeping that help us ensure that machine structure is valid.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Stable signals n A logic signal is always stable during one phase—phase in which the latch which produced it is not active. n Easiest to think of machine behavior in terms of stable signals, though signals propagate while not stable.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Signal types Clocks are separate type:  1,  2. n Two types of stable data signal: –stable  1 (s  1 ) –stable  2 (s  2 ) n A stable signal has a complementary valid signal: –stable  2 (s  2 ) = valid  1 (v  1 )

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Stable data signal inactive clock stable until latch feeding this logic goes active stable  2 becomes valid at end of  1

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR How clocking types combine

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Clocking types in the two-phase machine combinational logic DQ combinational logic DQ I 1 (s  2 ) 11 O 1 (s  2 ) I 2 (s  1 ) O 2 (s  1 ) s  1 s  2 22

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Clocking type propagation n Combinational logic does not change type of signal. n Primary inputs must be compatible. n Latches change signals from one clock type to another. n In strict system, never mix clocks with data signals in combinational logic.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Two-coloring combinational logic DQ combinational logic DQ I 1 (s  2 ) 11 O 1 (s  2 ) I 2 (s  1 ) O 2 (s  1 ) s  1 s  2 22

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Example: shift register n Want to displace bit by n registers in n cycles. n Each register requires two phases:

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Shift register operation  1 = 1,  2 = 0  1 = 0,  2 = 1

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Non-strict disciplines n Some relaxation of the rules can be useful: –reduce area; –increase performance. n Rules must be relaxed in a way that ensures the machine will still work.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Qualified clocks n Use logic to generate a clock signal which is not always active. n Qualification must not introduce glitches into the clock—glitches violate the fundamental definition of a clock by introducing extra edges. n Use stable signals to qualify clocks.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Uses of qualified clocks n May want to conditionally load a register. n May qualify a clock to turn off machine for low-power operation. n Latch must be not lose its value during inactive period. n Difficult to ensure that logic value will come high in time—use quasi-static latch.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Qualified clocks and skew n Logic in the clocking path introduces delay. n Delay can cause clock to arrive at latches at different times, violating clocking assumptions. n When designing qualification logic: –minimize and check skew; –sharpen clock edge.

FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Qualification skew example