Chapter 7 Sequential Circuits

Similar documents
Lecture 11: Sequential Circuit Design

CPE/EE 427, CPE 527 VLSI Design I Sequential Circuits. Sequencing

EE 447/547 VLSI Design. Lecture 9: Sequential Circuits. VLSI Design EE 447/547 Sequential circuits 1

ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs

Lecture 10: Sequential Circuits

11. Sequential Elements

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

Sequential Circuit Design: Part 1

Sequential Circuit Design: Part 1

Lecture 21: Sequential Circuits. Review: Timing Definitions

EEC 118 Lecture #9: Sequential Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

EE141-Fall 2010 Digital Integrated Circuits. Announcements. Synchronous Timing. Latch Parameters. Class Material. Homework #8 due next Tuesday

EE141-Fall 2010 Digital Integrated Circuits. Announcements. Homework #8 due next Tuesday. Project Phase 3 plan due this Sat.

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Chapter 3 :: Sequential Logic Design

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

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

ECE321 Electronics I

EL302 DIGITAL INTEGRATED CIRCUITS LAB #3 CMOS EDGE TRIGGERED D FLIP-FLOP. Due İLKER KALYONCU, 10043

Clocking Spring /18/05

Project 6: Latches and flip-flops

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

Sequential Logic. References:

Clock - key to synchronous systems. Topic 7. Clocking Strategies in VLSI Systems. Latch vs Flip-Flop. Clock for timing synchronization

Clock - key to synchronous systems. Lecture 7. Clocking Strategies in VLSI Systems. Latch vs Flip-Flop. Clock for timing synchronization

Digital Integrated Circuit Design II ECE 426/526, Chapter 10 $Date: 2016/04/07 00:50:16 $

1. What does the signal for a static-zero hazard look like?

UNIT III COMBINATIONAL AND SEQUENTIAL CIRCUIT DESIGN

Timing EECS141 EE141. EE141-Fall 2011 Digital Integrated Circuits. Pipelining. Administrative Stuff. Last Lecture. Latch-Based Clocking.

LOW POWER AND HIGH PERFORMANCE SHIFT REGISTERS USING PULSED LATCH TECHNIQUE

Basis of sequential circuits: the R-S latch

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

Fundamentals of Computer Systems

Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

give sequence to events have memory (short-term) use feedback from output to input to store information

Fundamentals of Computer Systems

Glitches/hazards and how to avoid them. What to do when the state machine doesn t fit!

Introduction to Digital Logic Missouri S&T University CPE 2210 Flip-Flops

Memory, Latches, & Registers

CMOS Latches and Flip-Flops

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Switching Circuits & Logic Design

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Lecture 6. Clocked Elements

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

! Two inverters form a static memory cell " Will hold value as long as it has power applied

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

MUX AND FLIPFLOPS/LATCHES

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

ISSCC 2003 / SESSION 19 / PROCESSOR BUILDING BLOCKS / PAPER 19.5

Power Distribution and Clock Design

6. Sequential Logic Flip-Flops

V6118 EM MICROELECTRONIC - MARIN SA. 2, 4 and 8 Mutiplex LCD Driver

EE-382M VLSI II FLIP-FLOPS

Combinational vs Sequential

Clock Domain Crossing. Presented by Abramov B. 1

ECEN689: Special Topics in High-Speed Links Circuits and Systems Spring 2011

Digital System Clocking: High-Performance and Low-Power Aspects

Momentary Changes in Outputs. State Machine Signaling. Oscillatory Behavior. Hazards/Glitches. Types of Hazards. Static Hazards

Advanced Digital Logic Design EECS 303

Digital Fundamentals

CS3350B Computer Architecture Winter 2015

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

Synchronizing Multiple ADC08xxxx Giga-Sample ADCs

Chapter 9. Timing Design. (Based on Chapter 7 and Chapter 8 of Wakerly) Data Path Comb. Logic. Reg. Reg. Reg C <= A + B

More Digital Circuits

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

EE273 Lecture 11 Pipelined Timing Closed-Loop Timing November 2, Today s Assignment

MT8814AP. ISO-CMOS 8 x 12 Analog Switch Array. Features. -40 to 85 C. Description. Applications

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Fundamentals of Computer Systems

Traversing Digital Design. EECS Components and Design Techniques for Digital Systems. Lec 22 Sequential Logic - Advanced

Feedback Sequential Circuits

Digital Integrated Circuits EECS 312

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

UNIT 11 LATCHES AND FLIP-FLOPS

Chapter 5 Synchronous Sequential Logic

P U Q Q*

System IC Design: Timing Issues and DFT. Hung-Chih Chiang

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

Lecture 1: Circuits & Layout

CHAPTER 4: Logic Circuits

Slide Set 7. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Chapter 11 Latches and Flip-Flops

Experiment 8 Introduction to Latches and Flip-Flops and registers

Flip-Flops A) Synchronization: Clocks and Latches B) Two Stage Latch C) Memory Requires Feedback D) Simple Flip-Flop Gate

Note that none of the above MAY be a VALID ANSWER.

Topic 8. Sequential Circuits 1

Unit 11. Latches and Flip-Flops

CHAPTER 4: Logic Circuits

CS61C : Machine Structures

Transcription:

Chapter 7 Sequential Circuits Jin-Fu Li Advanced Reliable Systems (ARES) Lab. epartment of Electrical Engineering National Central University Jungli, Taiwan

Outline Latches & Registers Sequencing Timing iagram Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 2

Combinational logic Sequencing Output depends on current inputs Sequential logic Output depends on current and previous inputs Requires separating previous, current, future Called state or tokens Ex: FSM, pipeline in CL out CL CL Finite State Machine Pipeline Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 3

Sequencing Elements Latch: Level sensitive A.k.a. transparent latch, latch Flip-flop: edge triggered A.k.a. master-slave flip-flop, flip-flop, register Timing iagrams Transparent Opaque Edge-trigger Latch Flop (latch) (flop) Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 4

Latches Negative-level sensitive latch 0 1 Positive-level sensitive latch 0 1 Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 5

Registers Positive-edge triggered register (singlephase clock) 0 1 S M 0 1 S M master slave Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 6

Registers Operations of the positive-edge triggered register =0 =1 Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 7

Registers CMOS circuit implementation of the positiveedge triggered register Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 8

Single-Phase Latch Positive active-static latch - 1. Low area cost 2. riving capability of must override the feedback inverter - - Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 9

Typical Latch Symbolic Layouts V dd - - - V ss Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 10

CVSL (ifferential) Style Register The following figure shows latches based on a CVSL structure An N and a P version are shown that are cascaded to form a register - Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 11

ouble-edge Triggered Register The following figure shows latches that may be used to clock data on both edges of the clock Latch 1 Latch 2-2 -2 1-1 - 1 2 Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 12

ouble-edge Triggered Register ouble-edge triggered register can be implemented by combining Latch 1 & Latch 2 as follows Latch 2 2-2 - -1 1 Latch 1 Latch 1 enabled Latch 2 enabled 2=-2=low 1=-1=high Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 13

Asynchronously Register Asynchronously resettable register - -reset - - - -reset Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 14

Asynchronously Register Asynchronously resettable and settable register - -reset - - - -set Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 15

ynamic Latches & Registers ynamic single clock latches - - - - ynamic single clock registers - - - - - Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 16

Clock active high latch ynamic Latches n CLK X n n CLK X 0 1 1 H H L 1 0 0 1 X n-1 n-1 0 L 1 n-1 Clock active high latch with buffer X CLK - Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 17

Clock active low latch ynamic Latches n CLK X n n CLK X 0 1 1 0 L L H H 1 0 0 0 1 X n-1 n-1 n-1 Clock active low latch with buffer CLK X - Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 18

ynamic Latches Clock active high and low latches without feedback X CLK CLK X The problem of leakage current Assume that the capacitance of node X is 0.002pF and the leakage current I is 1nA Therefore, T=CV/I=0.002pFx5V/1nA=100us That is, the latch needs to be refreshed each 100us. Otherwise, the output will become high Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 19

Sequencing Methods Flip-flops T c 2-Phase Latches Pulsed Latches Flip-Flops Flop Combinational Logic Flop 2-Phase Transparent Latches Pulsed Latches 1 2 p 1 2 1 Latch t pw p Latch T c /2 Combinational Logic t nonoverlap Latch Combinational Logic Combinational Logic Half-Cycle 1 Half-Cycle 1 t nonoverlap Latch p Latch Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 20

Timing iagrams Contamination and Propagation elays t pd Logic Prop. elay A Combinational Logic Y A Y t cd t pd t cd t pcq Logic Cont. elay Latch/Flop Clk- Prop elay t setup t hold t ccq Latch/Flop Clk- Cont. elay Flop t pdq t pcq Latch - Prop elay Latch - Cont. elay t ccq t pcq t setup t hold Latch/Flop Setup Time Latch/Flop Hold Time t setup t hold t t ccq pcq Latch t cdq t pdq Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 21

Max-elay: Flip-Flops tpd Tc tsetup tpcq sequencing overhead F1 1 Combinational Logic 2 F2 T c t pcq t setup 1 t pd 2 Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 22

Max elay: 2-Phase Latches tpd tpd1 tpd 2 Tc 2tpdq sequencing overhead 1 2 1 1 1 Combinational 2 2 Combinational 3 Logic 1 Logic 2 L1 L2 L3 3 1 2 T c 1 t pdq1 1 t pd1 2 t pdq2 2 t pd2 3 Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 23

Max elay: Pulsed Latches tpd Tc max tpdq, tpcq tsetup tpw sequencing overhead p p 1 L1 1 Combinational Logic 2 L2 2 T c 1 t pdq (a) t pw > t setup 1 t pd 2 p (b) t pw < t setup 1 2 t pcq T c t pw tpd tsetup Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 24

cd Min-elay: Flip-Flops t t t hold ccq F1 1 CL 2 F2 1 t ccq t cd 2 t hold Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 25

Min-elay: 2-Phase Latches t t t t t cd1, cd 2 hold ccq nonoverlap Hold time reduced by nonoverlap 1 L1 1 CL Paradox: hold applies twice each cycle, vs. only once for flops. 2 2 L2 But a flop is made of two latches! 1 t nonoverlap 2 t ccq 1 t cd 2 t hold Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 26

Min-elay: Pulsed Latches t t t t cd hold ccq pw Hold time increased by pulse width p L1 1 CL p 2 L2 p t pw t hold 1 t ccq t cd 2 Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 27

Time Borrowing In a flop-based system: ata launches on one rising edge Must setup before next rising edge If it arrives late, system fails If it arrives early, time is wasted Flops have hard edges In a latch-based system ata can pass through latch while transparent Long cycle of logic can borrow time into next As long as each loop completes in one cycle Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 28

Time Borrowing Example 1 2 1 1 2 (a) Latch Combinational Logic Latch Combinational Logic Latch Borrowing time across half-cycle boundary Borrowing time across pipeline stage boundary 1 2 (b) Latch Combinational Logic Latch Combinational Logic Loops may borrow time internally but must complete within the cycle Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 29

How Much Borrowing? 1 2 2-Phase Latches T borrow c setup nonoverlap t t t 2 1 1 L1 1 Combinational Logic 1 2 L2 2 Pulsed Latches 2 T c t nonoverlap t t t borrow pw setup T c /2 Nominal Half-Cycle 1 elay t borrow t setup 2 Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 30

Clock Skew We have assumed zero clock skew Clocks really have uncertainty in arrival time ecreases maximum propagation delay Increases minimum contamination delay ecreases time borrowing Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 31

Skew: Flip-Flops t T t t t pd c pcq setup skew sequencing overhead F1 1 Combinational Logic T c 2 F2 t t t t cd hold ccq skew t pcq t skew 1 t pdq t setup 2 F1 1 CL 2 F2 t skew t hold 1 t ccq 2 t cd Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 32

Skew: Latches 2-Phase Latches tpd Tc 2tpdq sequencing overhead 1 2 1 1 1 Combinational 2 2 Combinational 3 Logic 1 Logic 2 L1 L2 L3 3 t, t t t t t cd1 cd 2 hold ccq nonoverlap skew T t t t t 2 c borrow setup nonoverlap skew Pulsed Latches t T max t, t t t t pd c pdq pcq setup pw skew sequencing overhead t t t t t cd hold pw ccq t t t t skew borrow pw setup skew 1 2 Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 33

Two-Phase Clocking If setup times are violated, reduce clock speed If hold times are violated, chip fails at any speed In this class, working chips are most important No tools to analyze clock skew An easy way to guarantee hold times is to use 2-phase latches with big nonoverlap times Call these clocks 1, 2 (ph1, ph2) Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 34

Safe Flip-Flop In class, use flip-flop with nonoverlapping clocks Very slow nonoverlap adds to setup time But no hold times In industry, use a better timing analyzer Add buffers to slow signals if hold time is at risk X Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 35

Clock istribution In a large CMOS chip, clock distribution is a serious problem For example, V dd =5V C reg =2000pF (20K register bits @ 0.1pF) T =10ns T rise/fall =1ns I peak =C(dv/dt)=(2000p)x(5/1n)=10A P d =C(V dd ) 2 f=2000px25x100=5w Methods for reducing the values of I peak and P d Reduce C Interleaving the rise/fall time Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 36

Clock istribution Clocking is a floorplanning problem because clock delay varies with position on the chip Ways to improve clock distribution Physical design Make clock delays more even At least more predictable Circuit design Minimizing delays using several stages of drivers Two most common types of physical clocking networks H-tree clock distribution Balanced-tree clock distribution Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 37

H-Tree Clock istribution clock Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 38

H-Tree Clock istribution Source: Prof. Irwin Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 39

Balanced-Tree Clock istribution clock Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 40

Reduce Clocking Power Techniques used to reduce the high dynamic power dissipation Use a low capacitance clock routing line such as metal3. This layer of metal can be, for example, dedicated to clock distribution only Using low-swing drivers at the top level of the tree or in intermediate levels Vdd C1 C2 p - p CA V out Gnd n C3 - n C4 CB Clock Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 41

Power & Ground istribution Source: Prof. Irwin Advanced Reliable Systems (ARES) Lab. Jin-Fu Li, EE, NCU 42