Digital Circuits and Systems

Similar documents
Fundamentals of Computer Systems

Fundamentals of Computer Systems

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

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

Digital System Design

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

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

Asynchronous (Ripple) Counters

Basis of sequential circuits: the R-S latch

The NOR latch is similar to the NAND latch

Unit 11. Latches and Flip-Flops

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

D Latch (Transparent Latch)

Combinational / Sequential Logic

Fundamentals of Computer Systems

11. Sequential Elements

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

Lecture 8: Sequential Logic

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

Clocking Spring /18/05

6.S084 Tutorial Problems L05 Sequential Circuits

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

Logic Design. Flip Flops, Registers and Counters

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

Chapter 9. Timing Design. (Based on Chapter 7 and Chapter 8 of Wakerly) Data Path Comb. Logic. Reg. Reg. Reg C <= A + B

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

Switching Circuits & Logic Design

Introduction to Sequential Circuits

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

Chapter 11 Latches and Flip-Flops

Lecture 11: Sequential Circuit Design

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

Keeping The Clock Pure. Making The Impurities Digestible

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

Lecture 21: Sequential Circuits. Review: Timing Definitions

P U Q Q*

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Note that none of the above MAY be a VALID ANSWER.

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

Introduction to Microprocessor & Digital Logic

Chapter 9. Timing Design. (Based on Chapter 7 and Chapter 8 of Wakerly)


Counter dan Register

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

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

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Asynchronous Counter

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

CHAPTER 11 LATCHES AND FLIP-FLOPS

CHAPTER 1 LATCHES & FLIP-FLOPS

Chapter 2. Digital Circuits

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

Counters

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

RS flip-flop using NOR gate

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

RS flip-flop using NOR gate

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

ECE321 Electronics I

ECE 555 DESIGN PROJECT Introduction and Phase 1

Sequential Circuits: Latches & Flip-Flops

Outline. CPE/EE 422/522 Advanced Logic Design L03. Review: Clocked D Flip-Flop with Rising-edge Trigger. Sequential Networks

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

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

Chapter 5 Flip-Flops and Related Devices

Synchronous Sequential Logic

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

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

Digital Fundamentals: A Systems Approach

Project 6: Latches and flip-flops

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

Lecture 10: Sequential Circuits

FLIP-FLOPS AND RELATED DEVICES

VirtualSync: Timing Optimization by Synchronizing Logic Waves with Sequential and Combinational Components as Delay Units

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

Module 4:FLIP-FLOP. Quote of the day. Never think you are nothing, never think you are everything, but think you are something and achieve anything.

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Clock Domain Crossing. Presented by Abramov B. 1

P U Q Q*

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Advanced Digital Logic Design EECS 303

INTRODUCTION TO SEQUENTIAL CIRCUITS

LATCHES & FLIP-FLOP. Chapter 7

Sequential Circuit Design: Part 1

UNIT 11 LATCHES AND FLIP-FLOPS

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.

ELE2120 Digital Circuits and Systems. Tutorial Note 7

VARIABLE FREQUENCY CLOCKING HARDWARE

Last time, we saw how latches can be used as memory in a circuit

Chapter 12. Synchronous Circuits. Contents

Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

Sequential Circuit Design: Part 1

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

Level and edge-sensitive behaviour

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

Universal Asynchronous Receiver- Transmitter (UART)

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Transcription:

Spring 2015 Week 6 Module 33 Digital Circuits and Systems Timing Sequential Circuits Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras *Currently a Visiting Professor at IIT Bombay

Sequential Circuit Timing Once the functionality of a sequential network is designed, its timing parameters must be determined. Timing problems can be very subtle because timing parameters can vary with device age and other operating conditions. Analysis and Design of Sequential Logic Circuits 2

Timing Parameters Global setup time (T su ) Global hold time (T h ) Maximum clock frequency Clock skew. These parameters are derived using the circuit (known) delays described below. t io delay from input of IFL to output of OFL t if delay from circuit inputs of flip-flop inputs t fo delay from flip-flop outputs to circuit outputs delay from flip-flop outputs to flip-flop inputs t c-q clock to Q propagation delay of flip-flops t su setup time of flip-flops t h hold time of flip-flops t c clock delay; time required for clock to reach all flip-flops Analysis and Design of Sequential Logic Circuits 3

Global Setup and Hold Times Changes that occur at inputs can be delayed by as much as maximum t if by the time they reach the flip-flop inputs. Hence, we want to setup circuit inputs relative to clock edge appearing at the flip-flops. T su T h t c CLK (at clock source) t h CK (at FF clock input) t if t su X (at sequential circuit input) T s t t t u su if c max max min Similarly, hold time of the circuit inputs relative to the system clock at the source is given by T t t t h t if h if c max min max D (at FF input) Analysis and Design of Sequential Logic Circuits 4

Maximum Clock Frequency D j Q j CLK Comb. logic Λ CK j D i Λ Q i Q i D j t su t C-Q T ck (=T clk ) Edge Triggering For an edge-triggered circuit: minimum clock period is, Maximum Clock Frequency: T clk t t t C Qmax ffmax sumax f clk 1 T clk Analysis and Design of Sequential Logic Circuits 5

Timing Violations T t t t ck l C Q ff su max max max The clock period (T clk ) has a lower bound of.max. If the clock period is equal to (.max + t C-Q.max ) then the flip-flop state changes can violate setup times. Remedy : Use faster flip-flops (decrease t C-Q ) Use faster gates (decrease ) Use a slower clock (increase clock period, T clk ) Analysis and Design of Sequential Logic Circuits 6

Clock Skew The previous discussion assumes that clock signals arrive at all flip-flops simultaneously - this is not a good assumption since it is not true in practice. Because of different wire lengths over which the clock signals travel and the load at the destination, there is a slight difference in clock arrival times at different flip-flop inputs. Clock skew, t skew, is the difference in time between triggering edges seen at different flip-flops. Clock skew affects minimum T clk. Analysis and Design of Sequential Logic Circuits 7

Max. Clock Frequency with Skew D j Q j t skew Comb. logic Λ CK j CK j t C-Q D i Λ Q i t skew Q j t su CLK D i T ck (=T clk ) Therefore, for an edge-triggered circuit with clock skew, T t t t t clk skew C Q ff su max max max max Clock skew is a significant factor in determining the speed of highperformance synchronous circuits. The larger the skew, the slower the circuit will operate. Analysis and Design of Sequential Logic Circuits 8

Timing Analysis Example For the circuit given below determine all the sequential circuit timing parameters. For a D flip-flop use: t su = 2ns, t h = 15ns and t C-Q = 20ns For a NAND gate use: t p,max = 10ns and t p,min = 3ns Analysis and Design of Sequential Logic Circuits 10

t t. t t t t if,max if,min ff,max ff,min c,max c,min 3t 2t 2t 2t 2t 2t p,max, nand p,min, nand p,max, nand p,min, nand p,max, nand p,min, nand 30ns 6ns 20ns 6ns 20ns 6ns For a D flip-flop use: t su = 2ns, t h = 15ns, t C-Q = 20ns For a NAND gate use: t p,max = 10ns, t p,min = 3ns T t t t 2 30 6 26ns su su,max if,max c,min T t t t 20 15 6 29ns h h,max if,min c,max T t t t 20 20 2 42ns clk C Q,max ff,max su,max f 1/ 42ns 23.8MHz clk,max Analysis and Design of Sequential Logic Circuits 11

Sequential Systems Using Latches Latches can be used to create sequential systems. However, since these are level-triggered clocking must be done carefully must ensure that state changes only once per clock cycle. t w <.min + t D-Q.min D j Q j Comb. logic CK j CLK D i Q i > (t D-Q.max +.max + t su.max ) CLK Use narrow-width clock whose pulse width is less than the fastest possible path through the combinational logic. To guarantee correct next state, make sure that the clock period is longer than the worst-case propagation delay through the combinational logic. Analysis and Design of Sequential Logic Circuits 12

Clocking Frequency with Latches T clk t skew Comb. logic D j CK j D i Q j Q i t skew CK j D j t w t su t D-Q CLK Q j t su D i T t t t t t t clk skew w su D Q ff su max min max max max Analysis and Design of Sequential Logic Circuits 14

End of Week 6: Module 33 Thank You Intro to State Machines 15