Timing & Synchronization - University of California, San Diego
[Pages:33]Timing & Synchronization
January 31, 2006
Sarah Harris Engineering Department
Harvey Mudd College sarah_harris@hmc.edu
Timing & Synchronization, January 31, 2006
Copyright (C) by W.J.D. and S.L.H., All Rights Reserved
1
A Quick Overview
? Synchronization
? determining an event order ? used for
? moving a signal into a clock domain
? exponentially increases with flip-flop regeneration time constant
? failure rate is proportional to event rate
? asynchronous arbitration
? Synchronization Failure
? Synchronization Hierarchy ? Mesochronous Synchronizers
? as the time between two signals
? delay-line synchronizer
decreases it becomes more difficult
? two-register synchronizer
to tell which came first
? FIFO synchronizer
? synchronizer may hang in a
? Plesiochronous Synchronizers
metastable state, unable to decide
? phase slip and flow control
? different parts of the circuit may interpret result differently
? Failure Probability
? Periodic Synchronizers
? clock prediction - looking into the future
? is proportional to fraction of vulnerable time
? exponentially decreases with waiting period
Timing & Synchronization, January 31, 2006
Copyright (C) by W.J.D. and S.L.H., All Rights Reserved
2
What is Synchronization?
? A synchronizer determines the
order of events on two signals
A
? Which event came first?
? Does it matter? Some times synchronization is
B
unnecessary
? Often one signal is a clock
? did the data go high before or after the clock went high?
? Why is this problem hard?
AFirst BFirst
Timing & Synchronization, January 31, 2006
Copyright (C) by W.J.D. and S.L.H., All Rights Reserved
3
Uses of Synchronization
? Sampling asynchronous inputs with a clock
? e.g., particle counter or pushbutton
? Crossing clock domains
? sampling a synchronous signal with a different clock ? this is an easier problem if both clocks are periodic
? Arbitration of asynchronous signals
? e.g., request line for shared resource ? game-show pushbutton
Timing & Synchronization, January 31, 2006
Copyright (C) by W.J.D. and S.L.H., All Rights Reserved
4
Synchronization Failure
? Which came first, event on A or event on B? ? The closer the race, the harder it is to call ? When the events are very close, the synchronizer
may enter a metastable state ? The synchronizer may take an arbitrary amount of
time to exit this state ? Synchronizer output may be interpreted
inconsistently in the meantime
Timing & Synchronization, January 31, 2006
Copyright (C) by W.J.D. and S.L.H., All Rights Reserved
5
Static Flip-Flop Dynamics
? Initial voltage difference depends on t
? Voltage difference increases exponentially after clock rises
DQ
clk' clk
Timing & Synchronization, January 31, 2006
Copyright (C) by W.J.D. and S.L.H., All Rights Reserved
6
A Brute-Force (Waiting) Synchronizer
? To sample an asynchronous
signal with a clock
A
? Sample signal with FF1
? may go into a metastable
state
Clk
? Wait for possible metastable
stages to decay
? time tw
Clk
? Sample output of FF1
A
FF1 AW FF2 AS
DQ
DQ
AW
AS
Timing & Synchronization, January 31, 2006
Copyright (C) by W.J.D. and S.L.H., All Rights Reserved
7
Synchronization Failure
? What happens if FF1 is still in a metastable state when FF2 is clocked?
Clk
? What is the probability that this will happen?
A
AW
AS
Timing & Synchronization, January 31, 2006
Copyright (C) by W.J.D. and S.L.H., All Rights Reserved
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- university high school san diego ca
- university of california essay prompts
- university of california supplemental essays
- university of california free tuition
- university of california campuses
- university of california online certificates
- preliminary change of ownership san diego ca
- address university of california irvine
- university of california at irvine ca
- university of california irvine related people
- university of california irvine staff
- university of california irvine employment