Designing Sequential Logic Circuits

Slides:



Advertisements
Similar presentations
Latch versus Register Latch Register stores data when clock is low
Advertisements

Circuiti sequenziali1 Progettazione di circuiti e sistemi VLSI Anno Accademico Lezione Circuiti sequenziali.
Introduction to CMOS VLSI Design Sequential Circuits.
VLSI Design EE 447/547 Sequential circuits 1 EE 447/547 VLSI Design Lecture 9: Sequential Circuits.
Latch versus Register  Latch stores data when clock is low D Clk Q D Q Register stores data when clock rises Clk D D QQ.
EE415 VLSI Design Sequential Logic [Adapted from Rabaey’s Digital Integrated Circuits, ©2002, J. Rabaey et al.]
Introduction to CMOS VLSI Design Sequential Circuits
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Sequential MOS Logic Circuits
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
MICROELETTRONICA Sequential circuits Lection 7.
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Memory elements. n Basics of sequential machines.
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,
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE VLSI Circuit Design Lecture 16 - Sequential.
Introduction to CMOS VLSI Design Lecture 10: Sequential Circuits David Harris Harvey Mudd College Spring 2004.
Lecture 11: Sequential Circuit Design. CMOS VLSI DesignCMOS VLSI Design 4th Ed. 11: Sequential Circuits2 Outline  Sequencing  Sequencing Element Design.
Chapter 7 Designing Sequential Logic Circuits Rev 1.0: 05/11/03
CMOS Digital Integrated Circuits
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Reading Assignment: Rabaey: Chapter 7
Sequential Circuits. Outline  Floorplanning  Sequencing  Sequencing Element Design  Max and Min-Delay  Clock Skew  Time Borrowing  Two-Phase Clocking.
Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis EE4800 CMOS Digital IC Design & Analysis Lecture 11 Sequential Circuit Design Zhuo Feng.
Sequential Circuits IEP on Synthesis of Digital Design Sequential Circuits S. Sundar Kumar Iyer.
ECE 424 – Introduction to VLSI Design Emre Yengel Department of Electrical and Communication Engineering Fall 2014.
SEQUENTIAL LOGIC Digital Integrated Circuits© Prentice Hall 1995 Introduction.
Designing Combinational Logic Circuits: Part2 Alternative Logic Forms:
Digital Integrated Circuits© Prentice Hall 1995 Sequential Logic SEQUENTIAL LOGIC.
© Digital Integrated Circuits 2nd Sequential Circuits Digital Integrated Circuits A Design Perspective Designing Sequential Logic Circuits Jan M. Rabaey.
S. Reda EN160 SP’08 Design and Implementation of VLSI Systems (EN1600) Lecture 22: Sequential Circuit Design (1/2) Prof. Sherief Reda Division of Engineering,
Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n Memory elements. n Basics of sequential machines.
© Digital Integrated Circuits 2nd Sequential Circuits Cascading Dynamic Gates  Dynamic gates rely on temporary capacitive storage, while static gates.
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.
S. Reda EN160 SP’07 Design and Implementation of VLSI Systems (EN0160) Lecture 23: Sequential Circuit Design (1/3) Prof. Sherief Reda Division of Engineering,
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
© Digital Integrated Circuits 2nd Sequential Circuits Digital Integrated Circuits A Design Perspective Designing Sequential Logic Circuits Jan M. Rabaey.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Digital Integrated Circuits for Communication
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
DIGITAL INTEGRATED CIRCUITS FOR COMMUNICATION احسان احمد عرساڻِي Every Wednesday: 15:00 hrs to 18:00 hrs هر اربع: شام 3 وڳي کان 6 وڳي تائين.
Digital Integrated Circuits for Communication
Digital Integrated Circuits© Prentice Hall 1995 Sequential Logic SEQUENTIAL LOGIC.
CSE477 L17 Static Sequential Logic.1Irwin&Vijay, PSU, 2003 CSE477 VLSI Digital Circuits Fall 2003 Lecture 17: Static Sequential Circuits Mary Jane Irwin.
© Digital Integrated Circuits 2nd Sequential Circuits Digital Integrated Circuits A Design Perspective Designing Sequential Logic Circuits Jan M. Rabaey.
Digital Integrated Circuits A Design Perspective
Chapter 7 Sequential Circuits
CSE477 L17 Static Sequential Logic.1Irwin&Vijay, PSU, 2002 CSE477 VLSI Digital Circuits Fall 2002 Lecture 17: Static Sequential Circuits Mary Jane Irwin.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Digital Integrated Circuits© Prentice Hall 1995 Sequential Logic SEQUENTIAL LOGIC.
EEE2243 Digital System Design Chapter 7: Advanced Design Considerations by Muhazam Mustapha, extracted from Intel Training Slides, April 2012.
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Digital Integrated Circuits for Communication
Digital Integrated Circuits A Design Perspective
Sp09 CMPEN 411 L18 S.1 CMPEN 411 VLSI Digital Circuits Spring 2009 Lecture 16: Static Sequential Circuits [Adapted from Rabaey’s Digital Integrated Circuits,
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Designing Sequential Logic Circuits Ilam university.
EE 466/586 VLSI Design Partha Pande School of EECS Washington State University
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.
Prof. Joongho Choi CMOS SEQUENTIAL CIRCUIT DESIGN Integrated Circuits Spring 2001 Dept. of ECE University of Seoul.
© Digital Integrated Circuits 2nd Sequential Circuits Digital Integrated Circuits A Design Perspective Designing Sequential Logic Circuits Jan M. Rabaey.
Review: Sequential Definitions
Progettazione di circuiti e sistemi VLSI Anno Accademico Lezione 16 Riepilogo 2.
Memory Elements. Outline  Introduction  Memory elements.
Digital Integrated Circuits A Design Perspective
Digital Integrated Circuits A Design Perspective
Chapter 7 Designing Sequential Logic Circuits Rev 1.0: 05/11/03
SEQUENTIAL LOGIC -II.
Presentation transcript:

Designing Sequential Logic Circuits Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic

Sequential Logic Inputs Outputs Combinational Logic State Clock Next State Current State Inputs Outputs 2 storage mechanisms: • positive feedback • charge-based

Naming Conventions In the text: Many different naming conventions: a latch is level sensitive a register is edge-triggered Many different naming conventions: flip-flops (level or edge?) Transparency? Dual edge/level

Latch versus Register Latch- stores if clock is low transparent if clock is high Register- stores if clock rises, never transparent (mostly) D Q D Q Clk Clk Clk Clk D D Q Q

Latch-Based Design N latch is transparent when f = 0 P latch is transparent when f = 1 f N P Logic Latch Latch Logic

Timing Definitions CLK t Register t t D Q D DATA CLK STABLE t t Q DATA setup hold D DATA CLK STABLE t t c lk2q Q DATA STABLE t

Maximum Clock Frequency Timing Constraints: tclk2q + tp(comb) + tsetup = T tcdreg + tcdlogic > thold First Constraint ensures clock is slow enough that Registers sample correct value Second Constraint ensures that there is no path after the clock changes to alter the previously stored data Register LOGIC t P(comb)

Positive Feedback: Bi-Stability 1 A C B o 2 = o1 Vi2 1 o 1 o V V 5 2 i V A,B Stable points C is unstable:(metastable) Feedback moves state to Stable points, eventually 1 o V 5 i 2 V i 2 V o o V V i 1 2 = 1 = V o V V i 1 2

Writing a Static Latch Use the clock to distinguish between the transparent and opaque states D CLK Forcing the state (can implement as NMOS-only) Converting into a MUX

Mux-Based Latches Negative latch Positive latch (transparent when CLK= 0) Positive latch (transparent when CLK= 1) CLK 1 D Q 1 D Q CLK

Master-Slave Register CLK D Qm Q Qm D Q CLK CLK Two opposite latches trigger on edge Also called master-slave latch pair

Clk-Q Delay Clock to Q delays are D Different for rising and falling Tclk-q Clock to Q delays are Different for rising and falling Transitions Use Worst Case – not Avg!

Setup Time (MS register) Q Qm D Q D Qm CLK Setup = 0.21nS Passed D Setup = 0.20nS Failed to pass D

Cross-Coupled Pairs NOR-based set-reset S 1 R 1 Q 1 - Q’ 1 - S Q R Q’

Cross-Coupled NAND Added clock Cross-coupled NANDs This is not used in datapaths any more, but is a basic register memory cell

Output voltage dependence on transistor width Sizing Issues 2 W=0.5 Q’ (V) 1 W=0.7 W=0.8 2.5 3.0 3.5 1 2 W=1 W/L (M5,M6) M2=6 Output voltage dependence on transistor width Transient response

Storage Mechanisms Static Dynamic (charge-based) CLK D Q CLK

Making a Dynamic Latch Pseudo-Static

Setup/Hold Time Illustrations Circuit before clock arrival (Setup-1 case)

Setup/Hold Time Illustrations Circuit before clock arrival (Setup-1 case)

Setup/Hold Time Illustrations Circuit before clock arrival (Setup-1 case)

Setup/Hold Time Illustrations Circuit before clock arrival (Setup-1 case)

Setup/Hold Time Illustrations Circuit before clock arrival (Setup-1 case)

Setup/Hold Time Illustrations Hold-1 case

Setup/Hold Time Illustrations Hold-1 case

Setup/Hold Time Illustrations Hold-1 case

Setup/Hold Time Illustrations Hold-1 case

Setup/Hold Time Illustrations Hold-1 case

Other Latches/Registers: C2MOS “Keepers” can be added to make circuit pseudo-static

Insensitive to Clock-Overlap DD DD DD DD M M M M 2 6 2 6 M M 4 8 X X D Q D Q 1 M 1 M 3 7 M M M M 1 5 1 5 (a) (0-0) overlap (b) (1-1) overlap

Pipelining Reference Pipelined

Other Latches/Registers: TSPC Negative latch (transparent when CLK= 0) Positive latch (transparent when CLK= 1)

Pulse-Triggered Latches An Alternative Approach Ways to design an edge-triggered sequential cell: Master-Slave Latches Pulse-Triggered Latch L1 L2 L Data Data D Q D Q D Q Clk Clk Clk Clk Clk

Latch-Based Pipeline ~CLK CLK CLK F G F G

Non-Bistable Sequential Circuits─ Schmitt Trigger VTC with hysteresis Restores signal slopes

Noise Suppression: Schmitt Trigger

CMOS Schmitt Trigger Moves switching threshold of the first inverter

Schmitt Trigger Simulated VTC 2.5 2.5 2.0 2.0 V 1.5 M 1 1.5 (V) (V) X x 1.0 V 1.0 V M 2 V k = 1 k = 3 k = 2 0.5 0.5 k = 4 0.0 0.0 0.0 0.5 1.0 1.5 2.0 2.5 0.0 0.5 1.0 1.5 2.0 2.5 V (V) V (V) in in Voltage-transfer characteristics with hysteresis. The effect of varying the ratio of the PMOS device M . The width is k * 0.5 m. m 4

CMOS Schmitt Trigger (2)

Multivibrator Circuits

Transition-Triggered Monostable

Monostable Trigger (RC-based)

Astable Multivibrators (Oscillators) 1 2 N-1 Ring Oscillator simulated response of 5-stage oscillator

Relaxation Oscillator

Voltage Controller Oscillator (VCO)

Differential Delay Element and VCO ctrl o 2 1 in delay cell v 1 2 3 4 in 2 two stage VCO 0.5 0.0 1.0 1.5 2.0 2.5 3.0 2 V 1 3 4 time (ns) 3.5 simulated waveforms of 2-stage VCO

Homework 7 A common way to characterize registers is to measure the timing aperture which is the total window in which transitions on data are not correctly output. This is done by making two clocks which are close, but not the same so that the relative phase drifts slowly with each cycle. Construct a pseudo-static master/slave flip-flop in SUE with the assumption that the input is driven by a unit inverter (2/1, min width nmos), the clock is driven by a 2x inverter. Optimize your designs to minimize the timing aperture (setup+hold) and clock to Q assuming the output load is 2 min inverters. Simulate your designs in SPICE and turn in both the designs (annotated schematics and spice results – plz. don’t waste paper!) Do problem 1 again, with TSPC based flipflop. (High performance)