332:437 Lecture 16 FSM Synchronizers

Slides:



Advertisements
Similar presentations
Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
Advertisements

1 Lecture 16 Timing  Terminology  Timing issues  Asynchronous inputs.
Synchronous Counters with SSI Gates
Synchronous Sequential Logic
Digital Logic Design Lecture # 17 University of Tehran.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
Digital Logic Design Lecture 23. Announcements Homework 8 due Thursday, 11/20 Exam 3 coming up on Tuesday, 11/25.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
CS 140L Lecture 4 Professor CK Cheng 10/22/02. 1)F-F 2)Shift register 3)Counter (Asynchronous) 4)Counter (Synchronous)
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
JK Flip-Flop. JK Flip-flop The most versatile of the flip-flops Has two data inputs (J and K) Do not have an undefined state like SR flip-flops – When.
Computer Organization & Programming Chapter 5 Synchronous Components.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Digital Design - Sequential Logic Design
Dr. Clincy Professor of CS
Computer Architecture & Operations I
Class Exercise 1B.
Overview Part 1 – The Design Space
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Chapter #6: Sequential Logic Design
ANALYSIS OF SEQUENTIAL CIRCUITS
Computer Architecture & Operations I
Asynchronous Counters with SSI Gates
6. Sequential circuits Rocky K. C. Chang 17 October 2017.
Sequential Logic Counters and Registers
Prof. Hsien-Hsin Sean Lee
Flip Flops.
Flip-Flop.
DR S. & S.S. GHANDHY ENGINEENRING COLLEGE
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
D Flip-Flop.
Introduction to Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Latches and Flip-flops
CPE/EE 422/522 Advanced Logic Design L03
332:437 Lecture 17 FSM Hardware Modification for Reliability
332:437 Lecture 12 Finite State Machine Design
CPE/EE 422/522 Advanced Logic Design L02
LECTURE 15 – DIGITAL ELECTRONICS
Clock Domain Crossing Keon Amini.
Elec 2607 Digital Switching Circuits
COE 202: Digital Logic Design Sequential Circuits Part 4
Counters and Registers
332:437 Lecture 15 System Controller Design
Introduction to Static Timing Analysis:
332:437 Lecture 15 System Controller Design
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
ECE434a Advanced Digital Systems L06
Dr. Clincy Professor of CS
Asynchronous Sequential Logic
332:437 Lecture 15 System Controller Design
332:437 Lecture 16 FSM Synchronizers
332:437 Lecture 17 FSM Hardware Modification for Reliability
Flip-Flops.
Flip Flops Unit-4.
332:437 Lecture 17 FSM Hardware Modification for Reliability
Lecture 19 Logistics Last lecture Today
332:437 Lecture 16 FSM Synchronizers
SEQUENTIAL CIRCUITS __________________________________________________
Clocks A clock is a free-running signal with a cycle time.
Presentation transcript:

332:437 Lecture 16 FSM Synchronizers Synchronization failure Runt pulses Simple synchronizers Synchronizer timing Handshake interface techniques Summary Material from An Engineering Approach to Digital Design, by William I. Fletcher, Englewood Cliffs, NJ: Prentice-Hall 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Synchronization of Systems Needed when merging independent systems on different clocks Problem: System controller needs to know when or within what time frame it can expect input changes from controlled/controlling systems 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Consequences of Synchronization Failure Input Changes missed by system controller Undefined state transitions occur 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Input changing Near Triggering Edge of Clock 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Output Cell in Meta-Stable Condition from “Runt” Pulse 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Meta-Stable Condition of Flip-Flop 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Example Synchronizer Catching Cell Catching cell converts Pulse into level S D C R 7474 RET F/F Q SYSCLK(L) RESET(L) ASYN INPUT(L) CATCHING CELL SYNCHD INPUT(H) +v Q(H) 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Synchronizer with Explicit Reset from System Controller +v ASYN INPUT(H) Q(H) S D C R 7474 RET F/F Q RESET(L) SYSCLK(L) SYSTEM CONTROLLERS OUTPUT DECODER ASYN INPUT(L) CATCHING CELL OR SYNCHD INPUT(H) 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Synching Operation of the Pulse-Catching Circuits 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Synchronizer Timing Considerations May be impractical to increase system clock frequency for synchronization Need to instead catch input pulse & hold it until system controller can service it. fp – frequency of input pulse fc – Clock frequency tp – Period of input pulse tc – Period of Clock First assume that fp < fc 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Synchronizer Based on These Assumptions tp < tc So, tp short & infrequent in relation to system clock State changes of system controller made on rising edge of system clock Time period between falling & rising edge of system clock > system’s setting time 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Bushnell: Digital Systems Design Lecture 16 Missed Short Asynchronous Input Compared to system clock 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Level Synchronization – When tp >> tc Catching level that changes asynchronously with respect to system clock Use same circuit as before, but omit catching cell 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Problem with Asynchronous Inputs Changes in inputs may cause outputs of next state decoder to change during set-up & hold times of flip-flops Causes erratic behavior of present-state register 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Handshake Interface Technique One party stimulates second party Second party signals first to acknowledge receipt of signal First party can now initiate another transaction 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Handshake Between Systems Operating Asynchronously 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Bushnell: Digital Systems Design Lecture 16 Problem Internal input changes in one of the systems being synchronized can cause transient electrical noise on output control lines. May have to design special circuits to sense noise transient and delay action until it damps out. 4/10/2019 Bushnell: Digital Systems Design Lecture 16

Bushnell: Digital Systems Design Lecture 16 Summary Synchronization failure Runt pulses Simple synchronizers Synchronizer timing Handshake interface techniques 4/10/2019 Bushnell: Digital Systems Design Lecture 16