Lecture 11: Sequential Circuit Design



Similar documents
Lecture 10: Sequential Circuits

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

Sequential Circuit Design

Weste07r4.fm Page 183 Monday, January 5, :39 AM. 7.1 Introduction

Latch Timing Parameters. Flip-flop Timing Parameters. Typical Clock System. Clocking Overhead

Lecture 7: Clocking of VLSI Systems

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Timing Methodologies (cont d) Registers. Typical timing specifications. Synchronous System Model. Short Paths. System Clock Frequency

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

Engr354: Digital Logic Circuits

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

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Sequential Logic Design Principles.Latches and Flip-Flops

Sequential Logic: Clocks, Registers, etc.

CHAPTER 11 LATCHES AND FLIP-FLOPS

Introduction to CMOS VLSI Design

Lecture 10: Latch and Flip-Flop Design. Outline

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Memory Elements. Combinational logic cannot remember

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Lecture-3 MEMORY: Development of Memory:

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

EE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 16 Timing and Clock Issues

Flip-Flops, Registers, Counters, and a Simple Processor

路 論 Chapter 15 System-Level Physical Design

Chapter 2 Clocks and Resets

Design Verification & Testing Design for Testability and Scan

ECE380 Digital Logic

ASYNCHRONOUS COUNTERS

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Class 11: Transmission Gates, Latches

Topics. Flip-flop-based sequential machines. Signals in flip-flop system. Flip-flop rules. Latch-based machines. Two-sided latch constraint

Module 3: Floyd, Digital Fundamental

Set-Reset (SR) Latch

CSE140: Components and Design Techniques for Digital Systems

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Master/Slave Flip Flops

Theory of Logic Circuits. Laboratory manual. Exercise 3

. MEDIUM SPEED OPERATION - 8MHz . MULTI-PACKAGE PARALLEL CLOCKING FOR HCC4029B HCF4029B PRESETTABLE UP/DOWN COUNTER BINARY OR BCD DECADE

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

7. Latches and Flip-Flops

A New Paradigm for Synchronous State Machine Design in Verilog

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Chapter 9 Latches, Flip-Flops, and Timers

Layout of Multiple Cells

Lesson 12 Sequential Circuits: Flip-Flops

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on

Lecture 8: Synchronous Digital Systems

Wiki Lab Book. This week is practice for wiki usage during the project.

EE552. Advanced Logic Design and Switching Theory. Metastability. Ashirwad Bahukhandi. (Ashirwad Bahukhandi)

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Counters. Present State Next State A B A B

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Digital Fundamentals

ECE124 Digital Circuits and Systems Page 1

Chapter 5. Sequential Logic

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Decimal Number (base 10) Binary Number (base 2)

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

PowerPC Microprocessor Clock Modes

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

Combinational Logic Design Process

HCC/HCF4027B DUAL-J-K MASTER-SLAVE FLIP-FLOP

NAME AND SURNAME. TIME: 1 hour 30 minutes 1/6

TIMING-DRIVEN PHYSICAL DESIGN FOR DIGITAL SYNCHRONOUS VLSI CIRCUITS USING RESONANT CLOCKING

MM74HC4538 Dual Retriggerable Monostable Multivibrator

CS311 Lecture: Sequential Circuits

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

S. Venkatesh, Mrs. T. Gowri, Department of ECE, GIT, GITAM University, Vishakhapatnam, India

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

8254 PROGRAMMABLE INTERVAL TIMER

TRUE SINGLE PHASE CLOCKING BASED FLIP-FLOP DESIGN

Sequential 4-bit Adder Design Report

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

DM74LS112A Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flop with Preset, Clear, and Complementary Outputs

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

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

TRIPLE D FLIP-FLOP FEATURES DESCRIPTION PIN NAMES BLOCK DIAGRAM

2/4, 4/5/6 CLOCK GENERATION CHIP

Alpha CPU and Clock Design Evolution

Register File, Finite State Machines & Hardware Control Language

CD4027BC Dual J-K Master/Slave Flip-Flop with Set and Reset

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

Two-Phase Clocking Scheme for Low-Power and High- Speed VLSI

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

Counters & Shift Registers Chapter 8 of R.P Jain

Transcription:

Lecture 11: Sequential Circuit esign

Outline Sequencing Sequencing Element esign Max and Min-elay Clock Skew Time Borrowing Two-Phase Clocking 2

Sequencing Combinational logic 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 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. 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 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 Latch Flop (latch) (flop) 6

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 7

Latch esign Transmission gate +No V t drop - Requires inverted clock 8

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

Latch esign Tristate feedback + Static Backdriving risk X Static latches are now essential because of leakage 10

Latch esign Buffered input + Fixes diffusion input + Noninverting X 11

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 12

Latch esign atapath latch +smaller +faster - unbuffered input X 13

Flip-Flop esign Flip-flop is built as pair of back-to-back latches X X 14

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 15

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 16

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

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 18

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 t ccq Logic Cont. elay Latch/Flop Clk-> Prop. elay Latch/Flop Clk-> Cont. elay Flop t setup t hold t pcq t pdq Latch -> Prop. elay t ccq t cdq t setup t hold Latch -> Cont. elay Latch/Flop Setup Time Latch/Flop Hold Time Latch t setup t hold t t ccq pcq t cdq t pdq 19

Max-elay: Flip-Flops ( setup ) tpd Tc t + tpcq sequencing overhead F1 1 Combinational Logic 2 F2 T c t pcq t setup 1 t pd 2 20

Max elay: 2-Phase Latches ( 2 ) tpd = tpd1+ tpd 2 Tc tpdq 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 21

Max elay: Pulsed Latches ( setup ) tpd Tc max tpdq, tpcq + t tpw sequencing overhead 1 p L1 1 Combinational Logic 2 p L2 2 T c 1 t pdq (a) t pw > t setup 1 t pd 2 p t pcq tpd tsetup T c t pw 1 (b) t pw < t setup 2 22

Min-elay: Flip-Flops 1 t t t CL cd hold ccq F1 2 F2 1 t ccq t cd 2 t hold 23

Min-elay: 2-Phase Latches t t t t t cd1, cd 2 hold ccq nonoverlap 1 L1 1 CL Hold time reduced by nonoverlap 2 2 L2 Paradox: hold applies twice each cycle, vs. only once for flops. 1 2 t nonoverlap 1 t ccq t cd But a flop is made of two latches! 2 t hold 24

Min-elay: Pulsed Latches tcd thold tccq + t 1 pw CL p L1 Hold time increased by pulse width 2 p L2 p t pw t hold 1 t ccq t cd 2 25

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 26

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 27

How Much Borrowing? 2-Phase Latches T borrow c setup + nonoverlap ( ) t t t 2 1 1 2 L1 1 2 Combinational Logic 1 L2 2 1 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 28

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 29

Skew: Flip-Flops ( setup skew ) tpd Tc tpcq + t + t t t t + t cd hold sequencing overhead ccq skew 1 F1 1 t pcq Combinational Logic T c t pdq 2 t setup F2 t skew 2 F1 1 CL 2 F2 t skew t hold 1 t ccq 2 t cd 30

Skew: Latches 2-Phase Latches ( 2 ) tpd Tc tpdq sequencing overhead 1 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 cd hold pw ccq ( setup skew ) tpd Tc max tpdq, tpcq + t tpw + t t t + t t + t ( ) t t t + t sequencing overhead skew borrow pw setup skew 31 2

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

Safe Flip-Flop Past years used flip-flop with nonoverlapping clocks 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 2 1 X 2 1 2 1 2 1 33

Adaptive Sequencing esigners include timing margin Voltage Temperature Process variation ata dependency Tool inaccuracies Alternative: run faster and check for near failures Idea introduced as Razor Increase frequency until at the verge of error Can reduce cycle time by ~30% 34

Summary Flip-Flops: Very easy to use, supported by all tools 2-Phase Transparent Latches: Lots of skew tolerance and time borrowing Pulsed Latches: Fast, some skew tol & borrow, hold time risk 35