Sequential Circuits. Combinational Circuits Outputs depend on the current inputs



Similar documents
Lecture 10: Sequential Circuits

Lecture 11: Sequential Circuit Design

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

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

Lecture 7: Clocking of VLSI Systems

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

Engr354: Digital Logic Circuits

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

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

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

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

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

Lecture 10: Latch and Flip-Flop Design. Outline

Sequential Logic Design Principles.Latches and Flip-Flops

CHAPTER 11 LATCHES AND FLIP-FLOPS

Introduction to CMOS VLSI Design

Lecture-3 MEMORY: Development of Memory:

Master/Slave Flip Flops

Sequential Logic: Clocks, Registers, etc.

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

Memory Elements. Combinational logic cannot remember

Theory of Logic Circuits. Laboratory manual. Exercise 3

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

ASYNCHRONOUS COUNTERS

Design Verification & Testing Design for Testability and Scan

Chapter 2 Clocks and Resets

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

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

路 論 Chapter 15 System-Level Physical Design

Layout of Multiple Cells

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

The enable pin needs to be high for data to be fed to the outputs Q and Q bar.

CSE140: Components and Design Techniques for Digital Systems

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

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

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

7. Latches and Flip-Flops

ECE380 Digital Logic

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

Set-Reset (SR) Latch

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

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

Module 3: Floyd, Digital Fundamental

A New Paradigm for Synchronous State Machine Design in Verilog

Class 11: Transmission Gates, Latches

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

Lesson 12 Sequential Circuits: Flip-Flops

Lecture 8: Synchronous Digital Systems

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

Flip-Flops and Sequential Circuit Design

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.

Digital Fundamentals

Admin. ECE 550: Fundamentals of Computer Systems and Engineering. Last time. VHDL: Behavioral vs Structural. Memory Elements

IEEE. Proof. INCREASING circuit speed is certain to remain the major. Dual-Edge Triggered Storage Elements and Clocking Strategy for Low-Power Systems

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

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

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Chapter 5. Sequential Logic

Chapter 9 Latches, Flip-Flops, and Timers

Asynchronous Counters. Asynchronous Counters

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

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

Digital Logic Design Sequential circuits

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

Combinational Logic Design Process

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

CS311 Lecture: Sequential Circuits

Counters and Decoders

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

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

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

Counters. Present State Next State A B A B

Finite State Machine. RTL Hardware Design by P. Chu. Chapter 10 1

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

BINARY CODED DECIMAL: B.C.D.

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

Chapter 2 Logic Gates and Introduction to Computer Architecture

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

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Systems I: Computer Organization and Architecture

MM74HC4538 Dual Retriggerable Monostable Multivibrator

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

Demystifying Data-Driven and Pausible Clocking Schemes

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

TRUE SINGLE PHASE CLOCKING BASED FLIP-FLOP DESIGN

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Register File, Finite State Machines & Hardware Control Language

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

LOW POWER DESIGN OF DIGITAL SYSTEMS USING ENERGY RECOVERY CLOCKING AND CLOCK GATING

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

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

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

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

Clock Distribution in RNS-based VLSI Systems

Memory unit. 2 k words. n bits per word

Transcription:

Principles of VLSI esign Sequential Circuits Sequential Circuits Combinational Circuits Outputs depend on the current inputs Sequential Circuits Outputs depend on current and previous inputs Requires separating previous, current and future Called states or tokens Example: Finite State Machines (FSMs), Pipelines in CL out CL CL Finite State Machine Pipeline 1

Principles of VLSI esign Sequential Circuits Sequential Circuits If tokens moved through pipeline at constant speed, no sequencing elements will be needed Ex: Fibre-optic cable, called wave pipelining in circuits However, dispersion is high in most circuits We need to delay fast tokens, so that they don't catch up with slow tokens Use flip-flops to delay fast tokens so that they move through exactly one stage per cycle Inevitably adds some delay to slow tokens Makes circuit slower than just the logic delay Called sequencing overhead Sometimes called clocking overhead But it applies to asynchronous circuits too Inevitable side effect of maintaining sequence 2

Principles of VLSI esign Sequential Circuits Sequential Elements Level sensitive Transparent latch latch Flip-Flop Edge triggered Master-slave flip-flop flip-flop, register Flop (latch) (flop) 3

Principles of VLSI esign Sequential Circuits Sequential Elements: Pass Transistor Pros: Tiny Low clock loads Cons: V t drop nonrestoring backdriving output noise sensitivity dynamic diffusion input 4

Principles of VLSI esign Sequential Circuits Sequential Elements: Transmission Gate No V t drop Requires inverted clock Inverting Buffer Pros: Restoring No backdriving Fixes either: output noise sensitivity Or diffusion input Cons: Inverted output X 5

Principles of VLSI esign Sequential Circuits Sequential Elements: Tristate feedback Static Backdriving risk Static latches are now essential X Buffered Input Fixes diffusion input Noninverting X 6

Principles of VLSI esign Sequential Circuits Sequential Elements: Buffered Output Non backdriving Widely used in standard cells Very robust (important feature) Rather large Rather slow (1.5-2 FO4 delays) High clock loading X atapath Smaller, faster Unbuffered input X 7

Principles of VLSI esign Sequential Circuits Sequential Elements: Flip-Flop Flip-Flop Built as a pair of back-to-back latches X X 8

Principles of VLSI esign Sequential Circuits Sequential Elements Enable Ignore clock when enable is inactive Mux: increase latch - delay Clock-gating: increase enable setup time, skew Symbol Multiplexer esign Clock Gating esign en 1 0 en en en Flop 1 0 en Flop Flop en 9

Principles of VLSI esign Sequential Circuits Sequential Elements Reset Force output low when reset is asserted Synchronous vs. asynchronous Symbol Flop reset reset Synchronous Reset Asynchronous Reset reset reset reset reset reset reset 10

Principles of VLSI esign Sequential Circuits Sequential Elements Set / Reset Set forces output high when asserted Flip-Flop with asynchronous set and reset set reset reset set 11

Principles of VLSI esign Sequential Circuits Timing iagrams A Combinational Logic Y A Y t cd t pd Contamination and propogation delays Flop t setup t hold t pcq t pd Logic Prop. elay t ccq t cd Logic Cont. elay t pcq t ccq t pdq t pcq t setup /Flop Clk- Prop elay /Flop Clk- Cont. elay - Prop elay - Cont. elay /Flop Setup Time t setup t hold t t ccq pcq t cdq t pdq t hold /Flop Hold Time 12

Principles of VLSI esign Sequential Circuits Sequencing Methods Flip-Flops T c Flip-Flops Flop Combinational Logic Flop 2-Phase latches Pulsed latches 2-Phase Transparent es Pulsed es 1 2 p 1 2 1 t pw p T c /2 Combinational Logic t nonoverlap Combinational Logic Combinational Logic Half-Cycle 1 Half-Cycle 1 t nonoverlap p 13

Principles of VLSI esign Sequential Circuits Max-elay: Flip-Flops T C = t pcq + t pd + t setup t pd T C ( t setup + t pcq ) sequencing delay F1 1 Combinational Logic 2 F2 T c t pcq t setup 1 t pd 2 14

Principles of VLSI esign Sequential Circuits Max-elay: 2-Phase es T c t pdq1 + t pd1 + t pdq2 + t pd2 1 2 1 1 1 Combinational 2 2 Combinational 3 Logic 1 Logic 2 L1 L2 L3 3 t pd = t pd1 + t pd2 T c ( 2t pdq ) 1 sequencing delay 2 T c 1 t pdq1 1 t pd1 2 t pdq2 2 t pd2 3 15

Principles of VLSI esign Sequential Circuits Max-elay: Pulsed es T C max( t pdq + t pd, t pcq + t pd + t setup t pw ) t pd T C max( t pdq, t pcq + t setup t pw ) p p sequencing delay 1 L1 1 Combinational Logic 2 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 16

Principles of VLSI esign Sequential Circuits Min-elay: Flip-Flops t cd t hold t ccq F1 1 CL 2 F2 1 t ccq t cd 2 t hold 17

Principles of VLSI esign Sequential Circuits Min-elay: 2 Phase es t cd1, t cd2 t hold t ccq t nonoverlap Hold time reduced by nonoverlap 1 2 L1 1 CL Paradox: Hold applies twice each cycle vs. only once for flops But flops have two latches!!! 2 L2 t nonoverlap 1 2 t ccq 1 t cd 2 t hold 18

Principles of VLSI esign Sequential Circuits Min-elay: Pulsed es t cd t hold t ccq + t pw Hold time increased by pulse width p L1 1 CL p 2 L2 p t pw t hold 1 t ccq t cd 2 19

Principles of VLSI esign Sequential Circuits Time Borrowing In a flip-flop based system ata launches on one rising/falling edge Must setup before next rising/falling 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 when transperent Long cycle of logic can borrow time into the next cycle As long as each loop completes in one cycle This mechanism is called time borrowing 20

Principles of VLSI esign Sequential Circuits Time Borrowing 1 2 1 1 2 (a) Combinational Logic Combinational Logic Borrowing time across half-cycle boundary Borrowing time across pipeline stage boundary 1 2 (b) Combinational Logic Combinational Logic Loops may borrow time internally but must complete within the cycle 21

Principles of VLSI esign Sequential Circuits Time Borrowing How much borrowing? 2 phased latches: pulsed latches: T C t borrow ------- ( t 2 setup + t nonoverlap ) t borrow t pw t setup 1 2 1 L1 1 Combinational Logic 1 2 L2 2 1 2 t nonoverlap T c T c /2 Nominal Half-Cycle 1 elay t borrow t setup 2 22

Principles of VLSI esign Sequential Circuits Clock Skew We have assumed zero clock skew F1 1 Combinational Logic 2 F2 Clock really have uncertainty in arrival time decrease max-delay increases min-delay decreases time borrowing 1 2 t pcq T c t pdq t setup t skew Clock Skew: Flip-flops F1 1 CL t pd T C ( t pcq t setup t skew ) 2 F2 t cd t hold t ccq + t skew t skew t hold 1 t ccq 2 t cd 23

Principles of VLSI esign Sequential Circuits Clock Skew: es 1 2 1 1 1 Combinational 2 2 Combinational 3 Logic 1 Logic 2 L1 L2 L3 3 2 phased latches t pd T c ( 2t pdq ) 1 2 t cd1, t cd2 t hold t ccq t nonoverlap + t skew T C t borrow ------- ( t 2 setup + t nonoverlap + t skew ) pulsed latches t pd T C max( t pdq, t pcq + t setup t pw + t skew ) t cd t hold t ccq + t pw + t skew t borrow t pw ( t setup + t skew ) 24