MODULE 5 Chapter 7. Clocked Storage Elements

Similar documents
Lecture 9: Sequential Logic Circuits. Reading: CH 7

Digital Integrated Circuits A Design Perspective

GMU, ECE 680 Physical VLSI Design

9/18/2008 GMU, ECE 680 Physical VLSI Design

Digital Integrated Circuits A Design Perspective

Digital Integrated Circuits A Design Perspective

Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic. November Digital Integrated Circuits 2nd Sequential Circuits

Topics. Dynamic CMOS Sequential Design Memory and Control. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

CMPEN 411. Spring Lecture 18: Static Sequential Circuits

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Integrated Circuits & Systems

EE141Microelettronica. CMOS Logic

ΗΜΥ 307 ΨΗΦΙΑΚΑ ΟΛΟΚΛΗΡΩΜΕΝΑ ΚΥΚΛΩΜΑΤΑ Εαρινό Εξάμηνο 2018

CMPEN 411 VLSI Digital Circuits Spring 2012 Lecture 17: Dynamic Sequential Circuits And Timing Issues

EE141- Spring 2007 Digital Integrated Circuits

Hold Time Illustrations

Clock Strategy. VLSI System Design NCKUEE-KJLEE

Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

Digital Integrated Circuits A Design Perspective

EECS 427 Lecture 15: Timing, Latches, and Registers Reading: Chapter 7. EECS 427 F09 Lecture Reminders

Digital Integrated Circuits Designing Combinational Logic Circuits. Fuyuzhuo

Designing Sequential Logic Circuits

! Charge Leakage/Charge Sharing. " Domino Logic Design Considerations. ! Logic Comparisons. ! Memory. " Classification. " ROM Memories.

Sequential vs. Combinational

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Skew-Tolerant Circuit Design

Y. Tsiatouhas. VLSI Systems and Computer Architecture Lab

Dynamic Combinational Circuits. Dynamic Logic

Lecture 16: Circuit Pitfalls

Lecture 4: Implementing Logic in CMOS

9/18/2008 GMU, ECE 680 Physical VLSI Design

Clock signal in digital circuit is responsible for synchronizing the transfer to the data between processing elements.

COMP 103. Lecture 16. Dynamic Logic

Lecture 14: Circuit Families

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

EECS 141 F01 Lecture 17

Chapter 5 CMOS Logic Gate Design

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

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

5. Sequential Logic x Computation Structures Part 1 Digital Circuits. Copyright 2015 MIT EECS

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

Power Dissipation. Where Does Power Go in CMOS?

Lecture 1: Circuits & Layout

Dynamic Combinational Circuits. Dynamic Logic

Properties of CMOS Gates Snapshot

Memory, Latches, & Registers

ESE570 Spring University of Pennsylvania Department of Electrical and System Engineering Digital Integrated Cicruits AND VLSI Fundamentals

CMPEN 411 VLSI Digital Circuits. Lecture 04: CMOS Inverter (static view)

Name: Answers. Mean: 83, Standard Deviation: 12 Q1 Q2 Q3 Q4 Q5 Q6 Total. ESE370 Fall 2015

F14 Memory Circuits. Lars Ohlsson

ELCT201: DIGITAL LOGIC DESIGN

Miscellaneous Lecture topics. Mary Jane Irwin [Adapted from Rabaey s Digital Integrated Circuits, 2002, J. Rabaey et al.]

ΗΜΥ 307 ΨΗΦΙΑΚΑ ΟΛΟΚΛΗΡΩΜΕΝΑ ΚΥΚΛΩΜΑΤΑ Εαρινό Εξάμηνο 2018

CMPEN 411 VLSI Digital Circuits Spring 2011 Lecture 07: Pass Transistor Logic

Digital Integrated Circuits A Design Perspective

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

Lecture 27: Latches. Final presentations May 8, 1-5pm, BWRC Final reports due May 7 Final exam, Monday, May :30pm, 241 Cory

COMBINATIONAL LOGIC. Combinational Logic

CPE/EE 427, CPE 527 VLSI Design I Pass Transistor Logic. Review: CMOS Circuit Styles

Chapter 13. Clocked Circuits SEQUENTIAL VS. COMBINATIONAL CMOS TG LATCHES, FLIP FLOPS. Baker Ch. 13 Clocked Circuits. Introduction to VLSI

Topic 4. The CMOS Inverter

Semiconductor memories

CPE/EE 427, CPE 527 VLSI Design I L18: Circuit Families. Outline

Chapter 7. Sequential Circuits Registers, Counters, RAM

Jin-Fu Li Advanced Reliable Systems (ARES) Lab. Department of Electrical Engineering. Jungli, Taiwan

CMOS Digital Integrated Circuits Lec 13 Semiconductor Memories

Lecture 6: Circuit design part 1

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

CPE/EE 427, CPE 527 VLSI Design I Delay Estimation. Department of Electrical and Computer Engineering University of Alabama in Huntsville

Lecture 4: DC & Transient Response

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Total Power. Energy and Power Optimization. Worksheet Problem 1

Lecture 5: DC & Transient Response

Lecture 5. MOS Inverter: Switching Characteristics and Interconnection Effects

CARNEGIE MELLON UNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING DIGITAL INTEGRATED CIRCUITS FALL 2002

Lecture 6: DC & Transient Response

The Linear-Feedback Shift Register

Digital Integrated Circuits A Design Perspective

Topics to be Covered. capacitance inductance transmission lines

EE241 - Spring 2000 Advanced Digital Integrated Circuits. References

MOS Transistor Theory

EE213, Spr 2017 HW#3 Due: May 17 th, in class. Figure 1

P2 (10 points): Given the circuit below, answer the following questions:

! Memory. " RAM Memory. ! Cell size accounts for most of memory array size. ! 6T SRAM Cell. " Used in most commercial chips

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

Where Does Power Go in CMOS?

ECE 438: Digital Integrated Circuits Assignment #4 Solution The Inverter

ALU, Latches and Flip-Flops

Static CMOS Circuits. Example 1

EE115C Winter 2017 Digital Electronic Circuits. Lecture 19: Timing Analysis

Lecture 9: Clocking, Clock Skew, Clock Jitter, Clock Distribution and some FM

Digital EE141 Integrated Circuits 2nd Combinational Circuits

Semiconductor Memories

Digital Integrated Circuits A Design Perspective

EE 434 Lecture 33. Logic Design

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

UNIVERSITY OF CALIFORNIA

Circuit A. Circuit B

CSE241 VLSI Digital Circuits Winter Lecture 07: Timing II

CMOS Inverter (static view)

Transcription:

MODULE 5 Chapter 7 Clocked Storage Elements 3/9/2015 1

Outline Background Clocked Storage Elements Timing, terminology, classification Static CSEs Latches Registers Dynamic CSEs Latches Registers 3/9/2015 2

FSM with Positive Edge Triggered Registers 7.1 CSEs/Flip-flops provide memory/state VLSI uses predominantly D-type flip-flops 3/9/2015 3

Memory elements Store a temporary value, remember a state Separate the past, current, future Typically controlled by clock. May have load signal, etc. In CMOS, memory is created by: capacitance (dynamic); feedback (static). Also see http://en.wikipedia.org/wiki/flip-flop_(electronics) 3/9/2015 4

Variations in memory elements Form of required clock signal. How behavior of data input around clock affects the stored value. When the stored value is presented to the output. Whether there is ever a combinational path from input to output. Noise sensitivity on input and output 3/9/2015 5

D-Latch [Taskin, Kourtev & Friedman, The VLSI Handbook] 3/9/2015 6

D-Register (more commonly known as D-Flip-Flop) [Taskin, Kourtev & Friedman, The VLSI Handbook] 3/9/2015 7

Latches vs. Registers Terminology of book Latch Level-sensitive Transparent when clock is active Clock active high: positive latch Clock active low: negative latch Faster, smaller Register Edge-triggered Input and output isolated Sampling on 0 1 clock: positive edge triggered Sampling on 1 0 clock: negative edge triggered Safer 3/9/2015 8

Timing Metrics Reminder t c-q t su t hold t plogic t cd T : delay from clock (edge) to : setup time : hold time : worst case propagation delay of logic : best case propagation delay (contamination delay) T t c-q + t plogic + t su : clock period t cdregister + t cdlogic t hold 3/9/2015 9

Static vs. Dynamic Memory Elements Static Operate through positive feedback Preserve state as long as power is on Can work when clock is off More robust Dynamic Store charge on (parasitic) capacitor Charge leaks away (in milliseconds) Clock must be kept running (for periodic refresh) Faster, smaller 3/9/2015 10

Static CSEs / Flipflops Latches Registers Large part of literature talks about Clocked Storage Elements Are called Flip-Flops in book 3/9/2015 11

Positive Feedback: Bi-Stability V i1 V o1 =V i2 V o2 V o1 V i2 = V o1 Loop-gain in A,B <<1 V i1 V o2 A,B: stable points V i2 = V o1 A C Loop-gain in C >> 1 C: meta-stable point 7.2.1 B V i1 = V o2 3/9/2015 12

Meta-Stability V i2 = V o1 V i2 = V o1 B C δ V i1 = V o2 δ V i1 = V o2 Gain should be larger than 1 in the transition region Smaller than 1 in stable region 3/9/2015 13

3/9/2015 14 SR-Latch S R S R 0 1 0 1 0 0 1 1 1 0 0 0 1 0 S R S R S R > 1 > 1 R S D S R 1 0 1 0 1 1 0 0 1 0 1 0 1 1 forbidden forbidden S R S R & & Construction of D-latch D-latch most common in VLSI 7.2.5

Clocked SR-Latch S > 1 S R > 1 R S CK R R S & & & & Naïve implementation 16 transistors D latch requires 9xN, 9xP Master-slave D-register needs 18xN, 18xP Larger area, cost, power 3/9/2015 15

CMOS Clocked SR-Latch VDD CK R S & & & & S M2 M6 M1 M5 M4 M8 M3 M7 R = CK Save 6 PMOS, 2 NMOS transistors D-latch requires 7 x N, 3 x P (instead of 9xN, 9xP) {TPS}: Is this a ratioed design or not? Does it consume static power? YES NO 3/9/2015 16

Sizing for Set Action M 3 -M 4 form conventional inverter Model M 5 -M 6 as one equivalent (double length) transistor M 56 Assume = 0 M 1 is off, M 2 is on M 2 -M 56 operate like ratioed pseudo NMOS inverter Latch switches when M 56 pulls input of M 3 -M 4 below their switching threshold (assume V DD /2) Positive feedback amplifies switching M 2 and M 56 both in velocity saturation around V = V DD /2 S M2 M6 M1 M5 VDD M4 M8 M3 M7 R k ' n W L 2 2 V ' W V DD Tn DSATn p DD Tp DSATp 5 6 2 L 2 2 ( ) DSATn DSATp V V V = k ( V V ) V 3/9/2015 17

Sizing for Set Action 3/9/2015 18

SR Latch Timing V DD M2 M4 M6 M1 M8 M3 S M5 M7 R 3/9/2015 19

Multiplexer-Based Latches CLK IN Restoration CLK Multiplexer 7.2.2 Mux-based latches much more common in modern dig. IC s 3/9/2015 20

Recirculating latch 1 1 2 uasi-static, static on one phase Feedback restores value Requires 4 x N, 4 x P, minimum size (compare 7 x N, 3 x P, non-minimum size) 1 and 2 inverse but should be non-overlapping Definitely not ideal, because {TPS} 2 Let s explore TG/PG based latch designs 3/9/2015 21

Latch Design Pass Transistor Latch Tiny Low clock load V t drop nonrestoring backdriving output noise sensitivity dynamic diffusion input D Used in 1970 s [ Latch Design slides based on Weste & Harris], 3/9/2015 22

Latch Design Transmission gate No V t drop Requires inverted clock D 3/9/2015 23

Latch Design Inverting buffer / Basic Dynamic Latch Restoring No backdriving Fixes either Output noise sensitivity Or diffusion input Inverted output 3/9/2015 24

Dynamic Latch Storage capacitance comes primarily from inverter gate capacitance. Setup and hold times determined by transmission gate must ensure that value stored on transmission gate is solid. Stored charge leaks away Duration of stored value being good depends on technology Worst conditions during burn-in (High VDD, high Temp). Modern technologies (almost) mandate static latches. 3/9/2015 25

Noise Sensitivity Diffusion Input Noise Sensitivity Noise on input can drop node below V T TG NMOS turns on, and X can discharge if it was a 1 Similar problems for V in > V DD 0 Coupling Noise and Supply Noise < -V T X Output Noise Sensitivity State node X is exposed Noise spike on output can corrupt the state X 3/9/2015 26

Latch Design Tristate feedback Static Backdriving risk D X Static latches are now essential because of leakage If only during burn-in (@ high VDD, T) = 3/9/2015 27

Latch Design Buffered input Fixes diffusion input Noninverting D X 3/9/2015 28

Latch Design Buffered output Widely used in standard cells No backdriving Very robust (most important) D X Rather large Rather slow (1.5 2 FO4 delays) High clock loading 3/9/2015 29

Latch Design Datapath latch (only use in noise-controlled environments) Smaller Faster Unbuffered input D X 3/9/2015 30

Latch Designs can Suffer from Race Problems t loop t D t 1 Signal can race around during = 1 7.2.3 3/9/2015 31

****Registers Not transparent use multiple storage elements to isolate output from input. Master-slave, edge triggered principle master slave D 3/9/2015 32

Master-slave operation D master slave = 0: master latch is disabled; slave latch is enabled, but master latch output is stable, so output does not change. = 1: master latch is enabled, loading value from input; slave latch is disabled, maintaining old output value. = 1 0: Slave latch copies current value of master, and master stops changing 3/9/2015 33

www.play-hookey.com clickable 3/9/2015 34

Transistor Level Master Slave Positive Edge Triggered Register Robust Design Can eliminate I 1 and I 4, however, they make design more robust (avoid charge sharing, robust input) (see next) High Clock Load (8 x) 3/9/2015 35

Set-up Time Simulation Slightly smaller delay between D and CLK 3/9/2015 36

Ratioed Reduced Clock Load Register I 2 and I 4 are small, even long Lower clock load Increased design complexity Reduced robustness (reverse conduction / backdriving) 3/9/2015 37

Simple Master-Slave Register Clock phase overlap is important design problem CK 1 CK 2 CK 1 =1 CK 2 =1 Similar problem for 0-0 overlap 3/9/2015 38

Dynamic Edge Triggered Register 7.3.1 t su t hold t cq t T1 approximately zero t I1 + t T2 + t I3 t overlap 0-0 < t T1 + t I1 + t T2 Prevent race through T 1, I 1, T 2 t hold > t overlap 1-1 Enforce hold-time constraint 3/9/2015 39

Clocking and CSE problems Clock overlap with multiple phases great problem in view of clock skew Power in some cases, around 50% of total power Delay setup time, clk-to-,.. Robustness Noise-sensitivity of element, specifically for dynamic elements Next: advanced CSEs to combat some of the above 3/9/2015 40

Other Latches/Registers: C 2 MOS Clocked CMOS Register insensitive to overlap V DD V DD M 2 M 6 D CLK M 4 X CLK M 8 CLK M 3 C L1 CLK M 7 C L2 M 1 M 5 Master Stage Slave Stage Keepers can be added to make circuit pseudo-static 3/9/2015 41

C 2 MOS Latch Clocked CMOS Latch V DD M 2 CLK M 4 = = CLK M 3 M 1 Slightly Slightly Slower Smaller 3/9/2015 42

Insensitive to Clock-Overlap V DD V DD V DD V DD M 2 M 6 M 2 M 6 D CLK CLK 0 M 4 0 X M 8 D X 1 M 3 1 M 7 M 1 M 5 M 1 M 5 (a) (0-0) overlap (b) (1-1) overlap Output always decoupled from input, even with overlap 3/9/2015 43

Other Latches/Registers: TSPC True Single Phase Clocking V DD V DD V DD V DD X Out In CLK CLK In CLK CLK Out Positive latch (transparent when CLK= 1) Negative latch (transparent when CLK= 0) TSPC register: positive and negative latch in cascade 3/9/2015 44

Including Logic in TSPC V DD V DD V DD V DD PUN In 1 In 2 In CLK CLK CLK CLK PDN In 1 In 2 Example: logic inside the latch AND latch 3/9/2015 45

Alternative TSPC Register V DD V DD V DD M 3 CLK M 6 M 9 Y D CLK M 2 X M 5 CLK M 8 M 1 CLK M 4 M 7 Clk = 0 D sampled on X Precharge Y to VDD Y doesn t make Clk Evaluate based on X Clk = 1 Falling X can t charge Y Y is stable Y sampled on 3/9/2015 46

Pulse-Triggered Latches An Alternative Approach Remember: Use registers to avoid race-around problem. Two latches in cascade: master-slave Alternative: Pulse triggered latches Data L1 L2 L Data D D D Clk Clk Clk Clk Clk Master-Slave Latches Pulse-Triggered Latch 3/9/2015 47

Pulsed Latches V DD V DD M 3 M 6 CLK V DD D CLKG M 2 CLKG M 5 M P X CLKG M 1 M 4 M N (a) register (b) glitch generation CLK CLKG (c) glitch clock 3/9/2015 48

Pulsed Latches Hybrid Latch Flip-flop (HLFF), AMD K-6 and K-7 : CLK P 1 x P 3 M 3 M 6 D M 2 VDD P 2 M 5 M 1 CLKD M 4 3/9/2015 49

Hybrid Latch-FF Timing 3.0 2.5 2.0 D Volts 1.5 1.0 0.5 0.0 CLK CLKD 20.5 0.0 0.2 0.4 0.6 0.8 1.0 time (ns) 3/9/2015 50

More Topics Reset and enable inputs Scan-enabled CSEs Sense-amplifier based CSEs Double-edge triggered Low-leakage sleep mode (Ultra) Low voltage Soft-error / SEU tolerance Timing of CSEs 3/9/2015 51

Summary Background Timing, terminology, classification Static CSEs Latches Registers Dynamic CSEs Latches Registers 3/9/2015 52