Definitioncore
Synchronizer mean time between failures
Also called synchronizer MTBF, metastability MTBF.
MTBF = e^(t/tau) / (T_w f_c f_d), the mean time between metastability failures of a flip-flop synchronizer with resolution time t and clock and data rates f_c and f_d.
When a flip-flop samples a signal that is not synchronized to its clock, it sometimes samples the signal while it changes. The flip-flop then starts in a balanced state between 0 and 1 and needs extra time to fall to one side. A synchronizer gives it a fixed resolution time before the next stage reads its output. It fails when the flip-flop has not settled by then. The mean time between failures (MTBF) of the synchronizer is
where is the clock rate, is the rate of data transitions, and and are parameters of the flip-flop. The formula follows exactly from a simple model of how a latch leaves its balanced state, which this page derives. The model is an approximation of the circuit, and and are not computed from first principles but fitted to measurements. The structural rules that make a crossing between clock domains safe are on clock domain crossing verification.
Definition
A flip-flop is clocked with period . Its data input changes at random times with a mean of transitions per second. The flip-flop's output is read by the next stage seconds after the clock edge, where is the clock period minus the clock-to-output delay and the setup time of the next stage. A synchronization failure is a transition after which the output has not settled to a valid 0 or 1 within . If failures occur at a long-run rate of per second, the MTBF is , the mean time between failures.
Some authors write as a data frequency with two transitions per period. Here it is the number of transitions per second. With the other convention the formula has an extra factor of 2.
The exponential resolution model. It makes four assumptions.
- (M1) Linear start. A data transition at time offset from the balance point of the clock edge leaves the latch with an initial voltage imbalance , for a constant . The balance point is the offset at which the latch is exactly balanced.
- (M2) Exponential growth. While , the imbalance obeys . This is the small-signal model of two cross-coupled inverters, with about the node capacitance divided by the transconductance. So .
- (M3) Threshold. The output is valid when .
- (M4) Uniform phase. The offset of each data transition from the nearest clock edge is uniform over one clock period, because the data is not synchronized to the clock.
Derivation. By (M2) and (M3), a latch that starts at settles after the time with , that is
and a latch with is valid at once. The function decreases in , so exactly when . By (M1) this is the condition
The set of offsets that fail is an interval of length , where is called the window. By (M4), as long as this length is at most , a single transition fails with probability
In a time there are on average transitions. By linearity of expectation the mean number of failures is , so the failure rate is
and the MTBF is , the formula of this page. Linearity needs no independence between transitions. If in addition the transitions form a Poisson process and their phases are independent, the failures are a thinned Poisson process of rate . Then the time between failures has the exponential distribution with mean , and the number of failures in time has the Poisson distribution with mean . A Monte Carlo run of the model with uniform offsets, ps, ns and ns gave a failure fraction of , against the predicted , a difference of about 1.1 standard errors, the standard error being about .
What is proved and what is measured. Given (M1) to (M4), the formula is exact. The constants are not derived. and are found by measurement: run the synchronizer with asynchronous data, count the outputs that are still not valid at several delays after the clock, and fit a straight line to . The slope gives and the intercept gives . Veendrick (1980) did this analysis and compared it with measurements on real flip-flops, and Ginosar (2011) describes the procedure. The assumptions are approximations that this page does not prove. (M1) and (M2) hold only near the balance point and once the latch is in its small-signal region, so the exponential law fits large well and small poorly. Real flip-flops have a master and a slave latch, and the measured depends on how the master hands an imbalance to the slave. grows at low supply voltage and changes with temperature and process corner, so the worst corner sets the MTBF.
Examples and non-examples
- A two-flip-flop synchronizer. Take ps, ps, GHz and transitions per second. The denominator is per second. Each 20 ps of extra resolution time multiplies the MTBF by .
| MTBF | ||
|---|---|---|
| 0.2 ns | 0.011 s | |
| 0.5 ns | s, about 10 hours | |
| 0.9 ns | s, about 550,000 years | |
| 1.8 ns | s |
With ns, nearly a full clock period for the first flip-flop to settle, one transition fails with probability . The row for 1.8 ns is about what a third stage adds. That a chain of flip-flops gives is a common approximation, since a later stage that samples a slowly settling input can itself become balanced. It is not a consequence of the model.
-
Many synchronizers. A chip with independent synchronizers fails at the sum of their rates, by linearity of expectation. Its MTBF is , so 1,000 synchronizers of the 10-hour row give an MTBF of 36 s.
-
Non-example: a synchronous path. If the data comes from the same clock and static timing analysis shows that the setup and hold constraints are met, the offset never falls near the balance point. (M4) fails, and the model predicts no failures. The formula does not apply.
-
Non-example: a fixed bad phase. Two clocks with the same frequency and a fixed but unknown phase also break (M4). If the phase happens to put each data change near the balance point, every transition is at risk, and the MTBF can be far shorter than the formula says. Such clocks need a scheme that measures or adjusts the phase.
-
Non-example: wear-out. The mean time to failure of a wire under electromigration, given by Black's equation, is a lifetime of a part that wears out. A synchronizer does not wear out. Its failures are random events at a constant rate.
Related definitions
- Setup and hold constraints define the window around the clock edge where the data must be stable. A metastable flip-flop is one whose data changed in this window. is usually much smaller than the setup time plus the hold time, because most changes inside that window still resolve quickly.
- Clock domain crossing verification checks that every crossing has a synchronizer and that the design is safe when the synchronizer adds one cycle of latency. The MTBF says how often the synchronizer itself breaks that assumption.
- The Poisson distribution gives the number of failures in a fixed time when transitions are independent.
- Chaney and Molnar (1973) showed that the time to leave the balanced state is not bounded. No synchronizer has an infinite MTBF. A design can only choose to make it long enough.
References
- H. J. M. Veendrick, The behavior of flip-flops used as synchronizers and prediction of their failure rate, IEEE Journal of Solid-State Circuits SC-15(2), 169 to 176, 1980, the small-signal analysis of the cross-coupled latch, in which the imbalance grows exponentially with a time constant set by the capacitance and the transconductance, and the resulting prediction of the failure rate of a synchronizer, compared with measurements
- T. J. Chaney and C. E. Molnar, Anomalous behavior of synchronizer and arbiter circuits, IEEE Transactions on Computers C-22(4), 421 to 422, 1973, the observation that a flip-flop driven by asynchronous inputs can stay in a metastable state for an unbounded time
- R. Ginosar, Metastability and synchronizers, a tutorial, IEEE Design and Test of Computers 28(5), 23 to 35, 2011, the derivation of the failure rate from the exponential resolution law, the parameters tau and T_W and their measurement, and the two-flip-flop synchronizer
- D. J. Kinniment, Synchronization and Arbitration in Digital Systems, Wiley, 2008, the chapters on metastability, its models and measurement, and synchronizer reliability
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag EVBTDW Edit this page History Report an error Markdown