Sequential Circuit Design: Part 1

Similar documents
Sequential Circuit Design: Part 1

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

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

Lecture 10: Sequential Circuits

11. Sequential Elements

ECE321 Electronics I

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

Chapter 7 Sequential Circuits

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

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

MUX AND FLIPFLOPS/LATCHES

Topic 8. Sequential Circuits 1

Lecture 21: Sequential Circuits. Review: Timing Definitions

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

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

Engr354: Digital Logic Circuits

Lecture 1: Circuits & Layout

Sequential Logic. References:

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.

SEQUENTIAL LOGIC. Sequential Logic

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

Clocking Spring /18/05

Lecture 1: Intro to CMOS Circuits

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

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

CMOS Latches and Flip-Flops

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

UNIT III COMBINATIONAL AND SEQUENTIAL CIRCUIT DESIGN

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

SEQUENTIAL CIRCUITS SEQUENTIAL CIRCUITS

ELCT201: DIGITAL LOGIC DESIGN

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

Memory, Latches, & Registers

D Latch (Transparent Latch)

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

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

Combinational vs Sequential

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

Unit 11. Latches and Flip-Flops

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

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

COMP2611: Computer Organization. Introduction to Digital Logic

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

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

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

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

6. Sequential Logic Flip-Flops

LATCHES & FLIP-FLOP. Chapter 7

Lecture 8: Sequential Logic

CS3350B Computer Architecture Winter 2015

Chapter 5: Synchronous Sequential Logic

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

Fundamentals of Computer Systems

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

Hardware Design I Chap. 5 Memory elements

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Introduction to Sequential Circuits

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Logic Design. Flip Flops, Registers and Counters

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

Fundamentals of Computer Systems

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

Problems with D-Latch

ELCT201: DIGITAL LOGIC DESIGN

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

EECS150 - Digital Design Lecture 3 - Timing

Combinational / Sequential Logic

IT T35 Digital system desigm y - ii /s - iii

EE241 - Spring 2007 Advanced Digital Integrated Circuits. Announcements

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

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

CHAPTER 4: Logic Circuits

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

Chapter 5 Synchronous Sequential Logic

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

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

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

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

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

CMSC 313 Preview Slides

Learning Outcomes. Unit 13. Sequential Logic BISTABLES, LATCHES, AND FLIP- FLOPS. I understand the difference between levelsensitive

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

LOW POWER AND HIGH PERFORMANCE SHIFT REGISTERS USING PULSED LATCH TECHNIQUE

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

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

Sequential Circuits: Latches & Flip-Flops

INTRODUCTION TO SEQUENTIAL CIRCUITS


CHAPTER 4: Logic Circuits

Transcription:

Sequential Circuit esign: Part 1 esign of memory elements Static latches Pseudo-static latches ynamic latches Timing parameters Two-phase clocking Clocked inverters James Morizio 1

Sequential Logic FFs Out LOGIC t p,comb In 2 s torage mechanis ms pos itive feedback charge-bas ed James Morizio 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 clk clk clk clk in CL out CL CL Finite State Machine Pipeline James Morizio 3

Sequencing Cont. If tokens moved through pipeline at constant speed, no sequencing elements would be necessary Ex: fiber-optic cable Light pulses (tokens) are sent down cable Next pulse sent before first reaches end of cable No need for hardware to separate pulses But dispersion sets min time between pulses This is called wave pipelining in circuits In most circuits, dispersion is high elay fast tokens so they don t catch slow ones. James Morizio 4

Sequencing Overhead Use flip-flops to delay fast tokens so they move through exactly one stage each cycle. Inevitably adds some delay to the slow tokens Makes circuit slower than just the logic delay Called sequencing overhead Some people call this clocking overhead But it applies to asynchronous circuits too Inevitable side effect of maintaining sequence James Morizio 5

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 clk (latch) clk clk Latch Flop (flop) James Morizio 6

Flip-Flop: Timing efinitions t In t setup t hold ATA STABLE t Out t pff ATA STABLE t James Morizio 7

Maximum Clock Frequency FFs LOGIC t p,comb James Morizio 8

Latch esign Pass Transistor Latch Pros + Tiny + Low clock load Cons V t drop nonrestoring backdriving output noise sensitivity dynamic diffusion input Used in 1970 s James Morizio 9

Latch esign Transmission gate + No V t drop - Requires inverted clock James Morizio 10

Latch esign Inverting buffer X + Restoring + No backdriving + Fixes either Output noise sensitivity Or diffusion input Inverted output James Morizio 11

Latch esign Buffered input + Fixes diffusion input + Noninverting X James Morizio 12

Latch esign Buffered output + No backdriving X Widely used in standard cells + Very robust (most important) - Rather large - Rather slow (1.5 2 FO4 delays) - High clock loading James Morizio 13

Latch esign Tristate feedback + Static Backdriving risk X Static latches are now essential James Morizio 14

Latch esign atapath latch + Smaller, faster - unbuffered input X James Morizio 15

esign of Memory Elements C C C C Positive edge-triggered flip-flop Why use inverters on outputs? Skew Problem : may be delayed with respect to (both may be 1 at the same time) This is what happens- Eliminating/Reducing skew: in 1 Transmission gate acts a buffer, should have same C delay as inverter James Morizio 16

Latch design C C C Static latch Jamb latch Weak inverter James Morizio 17

Latch esign Variant of latch C C James Morizio 18

Flip-Flop esign Flip-flop is built as pair of back-to-back latches X X James Morizio 19

Enable Enable: ignore clock when en = 0 Mux: increase latch - delay Clock Gating: increase en setup time, skew Symbol Multiplexer esign Clock Gating esign en Latch 1 0 Latch Latch en en en Flop 1 0 en Flop Flop en James Morizio 20

Reset Force output low when reset asserted Synchronous vs. asynchronous Symbol Latch Flop reset reset Synchronous Reset Asynchronous Reset reset reset reset reset reset reset James Morizio 21

Set / Reset Set forces output high when enabled Flip-flop with asynchronous set and reset set reset reset set James Morizio 22

ynamic Latches So far, all latches have been static-store state when clock is stopped but power is maintained ynamic latches reduce transistor count Eliminate feedback inverter and transmission gate Latch value stored on the capacitance of the input (gate capacitance) James Morizio 23

ynamic Latch and Flip-Flop ynamic latch C C ata stored as Charge on gate capacitance ynamic negative edge-triggered flip-flop C C ifficult to ensure reliable operation Similar to RAM Refresh cycles are required James Morizio 24

Charge-Based Storage Non-overlapping clocks Schematic diagram P s e udo -s tatic Latc h James Morizio 25

Master-Slave Flip-Flop A B Overlapping Clocks Can Caus e Race Conditions Undefined Signals To reduce skew: generate complement of clock within the cell Extra inverter per cell James Morizio 26

Two-Phase Clocking Inverting a single clock can lead to skew problems Employ two non-overlapping clocks for master and slave sections of a flip-flop Also, use two phases for alternating pipeline stages James Morizio 27

Two-Phase Clocking 1 C C 2 1 2 1 (t). 2 (t) = 0 1 =1, 2 = 0 1 =0, 2 = 1 James Morizio 28

2-phase non-overlapping clocks Pseudo-static flip-flop 1 2 2 1 1 2 t Important: Non-overlap time t must be kept small James Morizio 29

2-phase dynamic flip-flop 1 2 Input Sampled 1 2 Output Enable James Morizio 30

Use of p Leakers Flip-flop based on nmos pass gates 1 2 No need to route signals egraded voltage V -V t 1 2 Problem: Increased delay (extra inverter) pmos leaker transistors provide full-restored logic levels James Morizio 31

Clocked Inverters Similar to tristate buffer = 1, acts as inverter = 0, output = Z i1 i2 i3 Latch James Morizio 32

Flip-flop insensitive to clock overlap V V M2 M6 In M4 X M8 M3 C L1 M7 C L2 M1 M5 section section C 2 MOS flip-flop James Morizio 33

C 2 MOS avoids Race Conditions V V V V M2 M6 M2 M6 In X In 0 M4 0 X M8 1 M3 1 M7 M1 M5 M1 M5 (a) (1-1) overlap (b) (0-0) overlap James Morizio 34