ECE321 Electronics I

Similar documents
Lecture 21: Sequential Circuits. Review: Timing Definitions

Sequential Circuit Design: Part 1

Sequential Circuit Design: Part 1

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

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

CMOS Latches and Flip-Flops

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

Timing Error Detection: An Adaptive Scheme To Combat Variability EE241 Final Report Nathan Narevsky and Richard Ott {nnarevsky,

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

Lecture 11: Sequential Circuit Design

Clocking Spring /18/05

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

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

Topic 8. Sequential Circuits 1

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

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

Sequential Design Basics

Memory, Latches, & Registers

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

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

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

CS/EE 6710 Digital VLSI Design CAD Assignment #3 Due Thursday September 21 st, 5:00pm

SEQUENTIAL LOGIC. Sequential Logic

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

EE241 - Spring 2007 Advanced Digital Integrated Circuits. Announcements

UNIT III COMBINATIONAL AND SEQUENTIAL CIRCUIT DESIGN

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

Engr354: Digital Logic Circuits

11. Sequential Elements

Lecture 10: Sequential Circuits

LOW POWER AND HIGH PERFORMANCE SHIFT REGISTERS USING PULSED LATCH TECHNIQUE

MUX AND FLIPFLOPS/LATCHES

High Performance Dynamic Hybrid Flip-Flop For Pipeline Stages with Methodical Implanted Logic

Improve Performance of Low-Power Clock Branch Sharing Double-Edge Triggered Flip-Flop

DESIGN OF DOUBLE PULSE TRIGGERED FLIP-FLOP BASED ON SIGNAL FEED THROUGH SCHEME

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

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

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).

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

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

CprE 281: Digital Logic

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

Digital Integrated Circuits EECS 312

INTRODUCTION TO SEQUENTIAL CIRCUITS

Synchronous Digital Logic Systems. Review of Digital Logic. Philosophy. Combinational Logic. A Full Adder. Combinational Logic

Digital Fundamentals

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Chapter 7 Sequential Circuits

D Latch (Transparent Latch)

Lecture 8: Sequential Logic

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

Parametric Optimization of Clocked Redundant Flip-Flop Using Transmission Gate

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

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

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Dual Edge Adaptive Pulse Triggered Flip-Flop for a High Speed and Low Power Applications

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

Unit 11. Latches and Flip-Flops

Combinational vs Sequential

CprE 281: Digital Logic

Lecture 1: Circuits & Layout

A Low-Power CMOS Flip-Flop for High Performance Processors

CprE 281: Digital Logic

Chapter 11 Latches and Flip-Flops

Synchronous Sequential Logic

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

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

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

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

ELE2120 Digital Circuits and Systems. Tutorial Note 7

6. Sequential Logic Flip-Flops

Sequential Circuits: Latches & Flip-Flops

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

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

Logic Design. Flip Flops, Registers and Counters

Advanced Digital Logic Design EECS 303

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

SEQUENTIAL CIRCUITS SEQUENTIAL CIRCUITS

Logic Design ( Part 3) Sequential Logic (Chapter 3)

Lecture 6. Clocked Elements

Project 6: Latches and flip-flops

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

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

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

Sequential Logic. References:

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

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

Fundamentals of Computer Systems

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

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

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

Electrical & Computer Engineering ECE 491. Introduction to VLSI. Report 1

Design of Low Power D-Flip Flop Using True Single Phase Clock (TSPC)

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Energy Recovery Clocking Scheme and Flip-Flops for Ultra Low-Energy Applications

Lecture 1: Intro to CMOS Circuits

6.S084 Tutorial Problems L05 Sequential Circuits

Transcription:

ECE321 Electronics I Lecture 25: Sequential Logic: Flip-flop Payman Zarkesh-Ha Office: ECE Bldg. 230B Office hours: Tuesday 2:00-3:00PM or by appointment E-mail: pzarkesh.unm.edu Slide: 1

Review of Last Lecture CMOS ynamic Gates Circuit Style Pros and Cons Charge Sharing Issue Slide: 2

Today s Lecture Sequential Logic Latches and Flip-Flops Timing Characteristics esign of Latches and Flip-Flops Setup and Hold Issues Slide: 3

Combinational versus Sequential Logic Combinational Logic: Out=f(in) sequential Logic: Out=f(in,previous_in) In Combinational Logic Circuit Out In Combinational Logic Circuit Out State Combinational Logic: Output is a function of present inputs (delayed by the propagation delay) i.e., do not contain memory Implements logic functions like NAN, NOR, XOR, Multiplex or any complex functions such as ecoder, adder, shifter Sequential Logic: Implement memory Stores past values Edge sensitive: Flip-flops Level sensitive: Latches Slide: 4

Latches and Flip-Flops Latches store data when clock is low Flip-flops or registers store data when clock rises Usually flip-flops are build by using two latches (we will explain later) Latch Flip-Flop Q Q Clk Clk Clk Q Clk Q Slide: 5

Timing Characteristics of Registers Setup time (t su ) is the time that data () must be valid before clock transition Hold time (t hold ) is the time that data () must remain valid after clock transition Propagation delay (t C2Q ) is the delay time that the data () is copied to output (Q) with reference to clock edge CLK t su t hold t Register Q ATA STABLE t CLK t c 2 q Q ATA STABLE t Slide: 6

Timing Constraints Minimum Cycle Constraints: T t C2Q + t Logic + t su Worst case is when receiving edge arrives early This constraint set the limit to maximum clock frequency that the circuit will be operable Hold Constraints: t (C2Q, C) + t (Logic, C) > t hold C is contamination delay (fastest possible delay) This is a race between data and clock If this constraint doesn't hold the circuit is not functional at any clock freq. It is therefore important to minimize t su, t hold, and t C2Q Slide: 7

Requirements in Flip-Flop esign High speed: Small Clk-Output delay Small setup time Small hold time Inherent race immunity Low power Small clock load (clock power is very large) High driving capability Robustness Crosstalk insensitivity Slide: 8

Basic Static Memory Cell Static memories use positive feedback to create a bistable circuit These circuits can hold state and are thus termed bi-stable V o1 V i2 V i1 V o1 =V i2 V o2 V i1 V o2 A V i2 =V o1 V o2 =V i1 C B V i1 =V o2 Slide: 9

Basic Latch We need the ability to set the state of the latch A pass-gate input works nicely There are a number of problems that it might have The NMOS pass gate has difficulty driving a logic 1 onto the first node (n1) This can make the gate un-writable at low voltages or with process variation The strength of the input at is a function of the strength of the previous Slide: 10

A Better Latch Using a CMOS transmission gate improves the write-ability NMOS and PMOS help each other to pass logic 0 and 1 strongly There are still a number of problems that it might have The drive strength still depends upon the previous gate The inputs must be strong enough to overpower the feedback in all conditions - To make this gate work, the feedback must be weak There can be substantial short-circuit current due to contention between the feed-forward and feed-back path Slide: 11

Another Improvement on Latches Adding another CMOS transmission gate improves the writeability This removes the feedback during write model There are still a number of problems that it might have dependent Setup Charge sharing (back-writing) Slide: 12

Problem 1: ependent Setup In this design, the write speed is dependent on the capacitive load on the output The node that must be written to hold state is Q, not n1 Just getting n1 to the right point is not enough When the clock changes, the pass gate from Q turns on and can drive n1 back! Thus, write timing is to the feedback, not the feed-forward node Timing should not be dependent on the next gate (if possible) Slide: 13

Problem 2: Charge Sharing (Back-Writing) This problem occurs when this gate is connected to another pass-gate circuit Pass gates are bidirectional If the capacitive load is much higher on the other side of the pass gate attached to Q, this can be stronger than the feedforward path and write the latch from the output towards the input! This is a kind of charge-sharing noise Slide: 14

Another Latch Improvement This is all fixed by adding transistors (an inverter) to decouple the feedback path from the output This also has the advantage that the feedback path can be small, even when the output inverter is quite large There are still a number of problems that it might have n1 is sensitive to input noise Slide: 15

Final Latch Improvement The problem with input noise, like the last case is easily fixed with (yet another) inverter This lath circuit is very robust to noise However, the delay through the latch is long The lath delay is a penalty that we have to live with This delay subtract from circuit speed Slide: 16

Flip-Flop Flip-flops are built out of back to back latches They are edge triggered Since one lath is transparent in each clock phase, the output can transition only at the clock edge (falling edge in this circuit) Flip-flops have quite a bit of delay penalty For example the EC alpha microprocessor has a maximum logic depth of 12 gates. There are 2-4 gates consumed in the flip-flop. Slide: 17

Other Circuits for Flip-Flop Flip-Flop can be made using tri-state inverters as shown here. How this circuit work? Slide: 18

Setup efinition As the setup time for a FF is violated the failure is soft Some behavior like the latch occurs, dependent on the timing at input The net effect is that t C2Q increases as this happens The right value for t su is the one that minimizes the overall flipflop overhead, i.e. sum of t su + t C2Q Slide: 19

Setup Illustrations Circuit before clock arrival (Setup-1 case) CN TG1 1 S M Inv2 Q M Clk-Q elay Inv1 CP T Clk-Q ata Clock T Setup-1 T Setup-1 t=0 Slide: 20

Setup Illustrations Circuit before clock arrival (Setup-1 case) CN TG1 1 S M Inv2 Q M Clk-Q elay Inv1 CP T Clk-Q ata Clock T Setup-1 T Setup-1 t=0 Slide: 21

Setup Illustrations Circuit before clock arrival (Setup-1 case) CN TG1 1 S M Inv2 Q M Clk-Q elay Inv1 CP T Clk-Q ata Clock T Setup-1 T Setup-1 t=0 Slide: 22

Setup Illustrations Circuit before clock arrival (Setup-1 case) CN TG1 1 S M Inv2 Q M Clk-Q elay Inv1 T Clk-Q CP ata Clock T Setup-1 T Setup-1 t=0 Slide: 23

Setup Illustrations Circuit before clock arrival (Setup-1 case) CN TG1 1 S M Inv2 Q M Clk-Q elay T Clk-Q Inv1 CP ata Clock T Setup-1 T Setup-1 t=0 Slide: 24

Hold Illustrations Hold-1 case CN TG1 1 S M Inv2 Q M Clk-Q elay Inv1 CP 0 T Clk-Q Clock ata T Hold-1 T Hold-1 t=0 Slide: 25

Hold Illustrations Hold-1 case CN TG1 1 S M Inv2 Q M Clk-Q elay Inv1 CP 0 T Clk-Q Clock ata T Hold-1 T Hold-1 t=0 Slide: 26

Hold Illustrations Hold-1 case CN TG1 1 S M Inv2 Q M Clk-Q elay Inv1 CP 0 T Clk-Q T Hold-1 Clock ata T Hold-1 t=0 Slide: 27

Hold Illustrations Hold-1 case CN TG1 1 S M Inv2 Q M Clk-Q elay Inv1 T Clk-Q CP 0 Clock T Hold-1 ata T Hold-1 t=0 Slide: 28

Hold Illustrations Hold-1 case CN TG1 1 S M Inv2 Q M T Clk-Q Clk-Q elay Inv1 CP 0 Clock T Hold-1 ata T Hold-1 t=0 Slide: 29

CLK2Q versus Setup and Hold s 5% Slide: 30

Pulse-Clocked Latches A latch can simulate a flip flop by using short duty cycle clock The latch is transparent only when clock is high, therefore by making the clock high short, it appears to be edge triggered This method provides less delay and less load on the clock About two gate delays are gained per cycle, 10% of the logic depth of 20 If done correctly, the clock power can be reduced by about 44% (why?) However, the penalty is that the hold time is increased by the pulse width Remember, a hold time violation renders the chip inoperable at all speeds Slide: 31