Basis of sequential circuits: the R-S latch

Similar documents
ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

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

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

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

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

Traversing Digital Design. EECS Components and Design Techniques for Digital Systems. Lec 22 Sequential Logic - Advanced

Momentary Changes in Outputs. State Machine Signaling. Oscillatory Behavior. Hazards/Glitches. Types of Hazards. Static Hazards

UNIT 11 LATCHES AND FLIP-FLOPS

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

Fundamentals of Computer Systems

6. Sequential Logic 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

Fundamentals of Computer Systems

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

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

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.

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

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

Digital System Design

Switching Circuits & Logic Design

Fundamentals of Computer Systems

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

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Advanced Digital Logic Design EECS 303

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

Unit 11. Latches and Flip-Flops


Chapter 11 Latches and Flip-Flops

Digital Fundamentals: A Systems Approach

give sequence to events have memory (short-term) use feedback from output to input to store information

Software Engineering 2DA4. Slides 9: Asynchronous Sequential Circuits

Lecture 8: Sequential Logic

Digital Fundamentals

Lecture 21: Sequential Circuits. Review: Timing Definitions

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches

Digital Circuits and Systems

Synchronous Sequential Logic

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

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

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.

Overview of Chapter 4

Logic Design. Flip Flops, Registers and Counters

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

Engr354: Digital Logic Circuits

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

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

PGT104 Digital Electronics. PGT104 Digital Electronics

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

Switching Circuits & Logic Design

Chapter 5 Flip-Flops and Related Devices

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.

LATCHES & FLIP-FLOP. Chapter 7

CHAPTER 11 LATCHES AND FLIP-FLOPS

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

Feedback Sequential Circuits

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

Chapter 5 Synchronous Sequential Logic

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Clock Domain Crossing. Presented by Abramov B. 1

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

P U Q Q*

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

D Latch (Transparent Latch)

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

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

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

Sequential Circuits. Introduction to Digital Logic. Course Outline. Overview. Introduction to Digital Logic. Introduction to Sequential Circuits

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

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

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

Introduction to Sequential Circuits

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

Digital Integrated Circuits EECS 312

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Lecture 11: Sequential Circuit Design

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

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

Chapter 7 Sequential Circuits

Chapter 6 Sequential Circuits

Sequential Circuits: Latches & Flip-Flops

Digital Circuits ECS 371

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

Logic Design II (17.342) Spring Lecture Outline

Chapter. Synchronous Sequential Circuits

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

Asynchronous Counter

11. Sequential Elements

Combinational vs Sequential

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

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

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

Combinational / Sequential Logic

Project 6: Latches and flip-flops

Latches and Flip-Flops UNIT 11 LATCHES AND FLIP-FLOPS. How to Remember the Past? Recap: Two Types of Switching Circuits. Iris Hui-Ru Jiang Spring 2010

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

Transcription:

equential logic Asynchronous sequential logic state changes occur whenever state inputs change (elements may be simple wires or delay elements) ynchronous sequential logic state changes occur in lock step across all storage elements (using a clock signal a periodic waveform) Clock Basis of sequential circuits: the - latch Cross-coupled NO gates can force output to 0 (reset) or 1 (set) fundamental component of ALL latches and flip-flops 0 1 0 1

0 0 Two stable states when ==0 changes 0 1 2

changes 0 1 and =1 Inconsistent values 3

and change 1 0 ummary: the - latch Timing waveform eset Hold et Force ace 4

Gated - Latch operates as - latch holds value and better not both be 1 here Gated Latch \ (t+1) 0 -- (t) 1 0 0 1 1 1 5

Latches vs Flip-Flops transparent (level-sensitive) latch latch edge positive edge-triggered flip-flop behavior is the same unless input changes while the clock is high Master lave Flip-Flops M M Negative edge-triggered Flip-Flop 6

A maller Negative edge-triggered flip-flop ensitive to inputs only near edge of clock signal 4-5 gate delays Characteristic equation: (t+1) = (t) etup and hold times necessary to successfully latch the input holds when clock goes low holds when clock goes low = 1 0 0 0 Analysis of negative edge-triggered flip-flop = 1 0 \ When =0 two stable states = 01 = 01 new new 7

Analysis of negative edge-triggered flip-flop Hold or setup time violation: changes before the effects of the clock edge have propagated through flip-flop = 01 Clocking equirements clock: periodic event, causes state of memory element to change can be rising edge or falling edge or high level or low level setup time: minimum time before the clocking event by which the input must be stable ( ) hold time: input clock Tsu minimum time after the clocking event until which the input must remain stable ( ) Th there is a timing "window" around the clocking event during which the input must remain stable and unchanged in order to be recognized T su clock data data clock T h stable changing 8

Typical timing specifications Positive edge-triggered flip-flop setup and hold times minimum clock width propagation delays (low to high, high to low, max and typical) T T T su 20ns h 5ns T su 20ns 5ns h Clock T w 25ns T w 25ns 30ns T plh 20ns T phl All measurements are made from the clocking event In this case, the rising edge of the clock Cascaded Flip-Flops IN 0 1 1 C C shift register: new value to first stage while second stage obtains current value of first stage IN 0 1 9

Cascaded Flip-Flops (continued) etup/hold/propagation delays must be balanced Works when: propagation delays far exceed hold times clock period exceeds setup time (guarantees following stage will latch current value before it is replaced by new value) IN 0 T su T plh T su 1 T h T h 1 T phl T plh assuming perfect clock distribution!!! Timing problems etup time violations must lengthen clock period or speedup signal, get faster logic Hold time violations slow down signal, slower logic Clock skew shifts relative time clock edge arrives at FFs may lengthen setup and hold time requirements Asynchronous signals real world interfaces - real world isn't controlled by the same clock interfaces to other systems with different clocks 10

Clock skew Ideally all storage elements clocked at the same time eality -- different wire delay to different points in the circuit causes skew between clock inputs Effect of skew on cascaded flip-flops: IN 0 1 2 1 Clock skew Can shorten time available for logic propagation T su T p T su T p 2 T su Time for logic to propagate 11

trategies for minimizing clock skew istribute clock signals in general direction of data flow Wires carrying clock between communicating components should be as short as possible Make all wires from the clock source the same length When skew is of same order as FF propagation delays, problems arise. Worsens as systems get faster (wire delays don't improve as fast as circuit delays). Metastability and asynchronous inputs Clocked synchronous circuits Inputs, state, and outputs sampled or changed in relation to a common reference signal (called the clock) Asynchronous circuits Inputs, state, and outputs sampled or changed independently of a common reference signal (glitches/hazards a major concern) (e.g., - latch) Asynchronous inputs to synchronous circuits Inputs can change at any time, will not meet setup/hold times angerous, synchronous inputs are greatly preferred Unavoidable (e.g., reset signal, memory wait, user input) 12

Handling asynchronous inputs Never allow asynchronous inputs to be fanned out to more than one FF ifferent FFs could decide differently and the result could be and incorrect or illegal state Async Input Clocked ynchronous ystem 0 Clock 1 1 0 In ynchronizer Clock Async Input 0 Clock 1 adds delay to input into system Clock ynchronizer failure When FF input changes near clock edge, the FF may enter a metastable state neither a logic 0 nor 1 it may stay in this state an indefinite amount of time, although this is not likely in real circuits. small, but non-zero probability that FF output will get stuck in an in-between state oscilloscope traces demonstrating synchronizer failure and eventual decay to steady state 13

olutions to synchronizer failure low down the system clock to give synchronizer more time to decay into steady state Use fastest possible logic in the synchronizer this makes for a very sharp "peak" upon which to balance Cascade two synchronizers asynchronous input synchronized input Probability of failure can never be made 0, but it can be substantially reduced 14