Digital System Design

Similar documents
Basis of sequential circuits: the R-S latch

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

Digital Circuits and Systems

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

Keeping The Clock Pure. Making The Impurities Digestible

D Latch (Transparent Latch)

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


Fundamentals of Computer Systems

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

Lecture 8: Sequential Logic

Universal Asynchronous Receiver- Transmitter (UART)

CHAPTER 11 LATCHES AND FLIP-FLOPS

Clock and Asynchronous Signals

Unit 11. Latches and Flip-Flops

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

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

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

The NOR latch is similar to the NAND latch

Software Engineering 2DA4. Slides 9: Asynchronous Sequential Circuits

6.S084 Tutorial Problems L05 Sequential Circuits

Fundamentals of Computer Systems

Synchronous Sequential Logic

UNIT 11 LATCHES AND FLIP-FLOPS

Introduction to Sequential Circuits

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

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements

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.

Review of digital electronics. Storage units Sequential circuits Counters Shifters

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

Switching Circuits & Logic Design

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

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

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

INTRODUCTION TO SEQUENTIAL CIRCUITS

Chapter 2. Digital Circuits

11. Sequential Elements

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

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

Digital Fundamentals: A Systems Approach

EECS 373 Design of Microprocessor-Based Systems

Logic Design. Flip Flops, Registers and Counters

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

Counters

ECE321 Electronics I

Level and edge-sensitive behaviour

Sequential Logic and Clocked Circuits

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

FIFO Memories: Solution to Reduce FIFO Metastability

Introduction to Microprocessor & Digital Logic

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

Chapter 11 Latches and Flip-Flops

Fundamentals of Computer Systems

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

CS3350B Computer Architecture Winter 2015

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

INTEGRATED CIRCUITS. AN219 A metastability primer Nov 15

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.

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

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

Chapter 5 Flip-Flops and Related Devices

Digital Fundamentals

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

CHAPTER 1 LATCHES & FLIP-FLOPS

Sequential circuits. Same input can produce different output. Logic circuit. William Sandqvist

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

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

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

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

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

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

CS61C : Machine Structures

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

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

Lecture 11: Sequential Circuit Design

Counter dan Register

Flip-Flops and Sequential Circuit Design

EECS 270 Midterm Exam Spring 2011

Chapter 12. Synchronous Circuits. Contents

DEDICATED TO EMBEDDED SOLUTIONS

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

EITF35: Introduction to Structured VLSI Design

P U Q Q*

CHAPTER 6 COUNTERS & REGISTERS

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

CprE 281: Digital Logic

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

ELCT201: DIGITAL LOGIC DESIGN

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

Other Flip-Flops. Lecture 27 1

Combinational vs Sequential

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

Topics of Discussion

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

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

Chapter 5: Synchronous Sequential Logic

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

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

Transcription:

Digital System Design by Dr. Lesley Shannon Email: lshannon@ensc.sfu.ca Course Website: http://www.ensc.sfu.ca/~lshannon/courses/ensc350 Simon Fraser University Slide Set: 8 Date: February 9, 2009

Timing of Synchronous Circuits Some people seem a bit confused about the relationship between gate delay, operating frequency, and circuit topology. This slide set should clear all that up. This is also important for datapath and ALU design, since we are concerned about the speed of the circuits we design. This is fairly simple stuff, and we ve talked about it already in bits and pieces but this should provide a more cohesive picture

Combinational Delay What is the longest delay in this combinational circuit? Assume the delay of each gate is 1ns The longest delay is the delay of the longest path between any input and any output. Longest delay = 5 ns

Combinational Delay In other words, in the previous circuit, if we apply all inputs at time 0, then by time 5, all the outputs have settled to their final values. Notes: 1. Some outputs might settle earlier 2. Some outputs may switch back and forth a few times before settling to a final value

Add flip-flops to inputs and outputs other circuitry other circuitry Clock goes from 0 to 1 at time 0. Assuming no delay in the flip-flop, the outputs of each of the first four flip-flops goes high at 0. Some time later, the clock goes high again, and latches data into the output flip-flops. This can happen any time >= 5ns.

Circuit Delay In the previous slide, the minimum clock period (time between rising clock edges is 5 ns). Therefore, maximum clock frequency is 1 / 5ns = 200 Mhz In general, you find the maximum delay from any flip-flop output to any flip-flop input. This path is called the critical path of the circuit. The delay of the critical path dictates the maximum frequency of your circuit: max freq = 1 / (delay of critical path)

Critical Path Delay D Q D Q D Q D Q D Q D Q clk Critical path is longest path between flip-flop output and flip-flop input. In this case, it is 5 ns. So the maximum frequency of this circuit is 200Mhz

What happens if you run the clock slower? other circuitry other circuitry Works fine. The maximum clock period is infinity (minimum frequency = 0) So, if the maximum clock frequency is fmax, the circuit will work for any clock frequency between 0 and fmax.

Board Notes on Glitches

Board Notes on Glitches

Set-Up Time Before, I told you that t cp <= t cycle But really, data must arrive at the D input of the FF a bit early So, more accurate to say t cp <= t cycle -t su

Clk-to-Q delay of a flip-flop After a rising clock edge, it takes a small amount of time, t clktoq, for the output of a flip-flop to appear on Q So, more accurate to say t cp <= t cycle t clktoq t su

Hold time of a flip-flop For a short time after the rising clock edge, the D input must not change. This short time is denoted t hold other circuitry other circuitry If the shortest delay through the combinational path is faster than t hold, we might have a problem. But, this is rarely the case. Anyway, in practice, t hold is often 0

Synchronous Design: Metastability Happens when flip flop inputs change at the same time as the clock Occurs when violating setup time. FPGAs recovery from the metastable state quickly but the end value is indeterminate. D Q CLK D Q When a setup time is violated, METASTABILITY may occur and the end state is indeterminate

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Board Notes on the Details of Metastability

Summary of this slide set Repeat Most digital circuits operate this way: Rising clock edge causes all flip-flop to produce a value on Q These values propagate through combinational logic (this is the computation of the circuit) By the *next* rising clock edge, the computation is done, and values are ready to be read into the next flip-flop Some systems operate differently Multiple clocks for different parts of the circuit (ENSC452 and ENSC450?) No clock at all (asynchronous we ll talk a little bit about this later in this course!)

Questions What is a glitch? (Be able to draw an example of how this might happen) Are glitches a problem? Why/Why not?

Questions What is another term for the longest combinational path delay in a circuit? Can circuits run at lower frequencies then Fmax? Why/Why not? 27

Questions What is metastability? What causes metastability? 28

Questions How do we prevent metastability from causing circuit failure? Given an even number of inverters, is it possible to achieve steady state values? 29