3.4.13 · D1Sequential Circuits

Foundations — Metastability and synchronizers

3,566 words16 min readBack to topic

This page assumes you have seen nothing. We build each symbol from a picture, in an order where each one depends only on the ones before it. Then the parent topic becomes readable line by line.


0. The map of what we must build

Voltage as height

Two valid levels 0 and 1

Thresholds V_L and V_H

Clock a repeating tick

Clock edge the sampling instant

Setup and hold window

Metastable knife-edge state

Time constant tau

Exponential resolution v equals v0 e to t over tau

Rates f_clk f_data and window T0

Resolution budget t_r

MTBF

Read it top to bottom: heights → levels → the danger middle, and separately ticks → edges → windows. Those two streams meet at the knife-edge; we then name its speed , watch it grow exponentially, and finally the exponential, the rates, and the time budget all feed the final quantity, MTBF.


1. Voltage — a number drawn as a height

Everything digital is really analog underneath. A wire carries a voltage: an amount of electrical "push", measured in volts (symbol ).

Figure — Metastability and synchronizers

In the figure, look at the two tanks: the left one is nearly empty and the purple double-arrow measuring its water height is short — that short arrow is a low voltage. The right tank is nearly full, so its purple arrow is long — a high voltage. The key thing to notice is that the water could sit at any height between empty and full, not just those two extremes.

Why the topic needs it: metastability is defined by a voltage being stuck in between two allowed heights. You cannot understand "in between" until you can see voltage as a height that can take any value, not just two.


2. Two valid levels — what "logic 0" and "logic 1" mean

Digital circuits agree to only read two ranges of that height:


3. The thresholds — the forbidden middle

Between the low range and the high range is a middle band. A downstream gate reading a voltage in this band cannot honestly say "0" or "1". We need a symbol for the top of the low range and the bottom of the high range.

Figure — Metastability and synchronizers

In the figure, notice the two dashed lines: the lower dashed line is and the upper dashed line is . The coral band below is the safe "logic 0" zone, the mint band above is the safe "logic 1" zone, and the butter-yellow band between the two dashed lines is the undecided strip. Watch that middle strip — a metastable output is a voltage trapped inside it.

Why the topic needs it: the deviation must grow until the output crosses out of that middle strip and reaches a valid level (up to for a 1, or down to for a 0). The thresholds are the two finish lines of the race to resolve.


4. The clock — a heartbeat that says "look now"

Circuits don't read wires continuously; they read on a beat.


5. The clock edge — the single instant of decision

A flip-flop doesn't sample during the whole beat — only at the edge, the instant the clock jumps from 0 to 1 (a rising edge).

Why the topic needs it: metastability is caused by data moving at the same instant as this shutter click. No edge, no snapshot, no danger.


6. Setup and hold — the "hold still for the photo" window

A camera needs the subject to hold still slightly before and after the click, or you get a blur.

Figure — Metastability and synchronizers

In the figure, the purple stair-step is the clock, and the dashed vertical line marks the edge at time . Look at the coral shaded band straddling that line: the left coral arrow spans (before the edge) and the right coral arrow spans (after it). The whole shaded band is the "hold still for the photo" window — if the data wire changes anywhere inside that band, the snapshot is blurred.

Why the topic needs it: this window is the trigger condition for the whole topic. See Setup and Hold Time for the full treatment.


7. The metastable state — the knife-edge itself

Now the two streams meet. A blurred photo can leave the output stuck in the middle band (Section 3), balanced between valleys (Section 2).

Recall Why "unbounded" and not "some fixed delay"?

Because how close to the exact hilltop the nudge left the marble is random — a marble a hair from the top rolls off fast; one truly balanced could sit far longer. There is no worst case you can promise. ::: The resolution time has no guaranteed upper limit; only a probability of still being stuck after a given wait.


8. The imbalance — measuring lean from the hilltop

Before any growth formula we must name the quantity that grows and fix its coordinate.


9. The time constant — how fast the lean grows

Why does the lean grow at all? A flip-flop's guts are a loop that amplifies its own imbalance — see Positive Feedback and Regeneration. Any tiny lean gets fed back and made bigger, again and again. We need one number for the speed of that feedback.

Now that is defined we may write the growth law.


10. The exponential — the shape of the escape

Figure — Metastability and synchronizers

In the figure, follow the two rising curves: both start almost flat near the bottom (a tiny ) and then sweep upward faster and faster. The coral curve starts from a smaller than the purple one, so it reaches the mint dashed line () later — a smaller starting lean means a longer wait to resolve. Notice how the steepness itself grows as the curve rises: that ever-increasing slope is the visual signature of "growth proportional to current size".


11. The rates — and why events must coincide


12. The window constant — where it comes from

is not a fudge factor; it is a width of time rooted in the same setup/hold window you already met.


13. The resolution budget and assembling MTBF

Now the last symbol, then every letter is earned and we can derive MTBF.

Step A — rate of getting knocked onto the hill. From Sections 11–12 the number of dangerous near-coincidences per second is the product of the danger-window width and both event rates:

Step B — the distribution of the starting lean (stated and justified). Where does the data change lands inside the danger window is out of our control and evenly likely anywhere in it — the async signal has no knowledge of the clock, so no landing spot is preferred. That is a uniform distribution of the landing time across the window. Because the starting lean is proportional to how far from the exact centre the change landed ( landing offset), a uniform landing time makes itself uniformly distributed over a tiny interval around . This is the one modelling assumption of the whole topic, and it is justified purely by "the async signal cannot favour any instant".

Step C — chance a knock is still unresolved after waiting . A knock survives past our budget only if it needs . From Section 10, rearranges to So "still stuck after " means the starting lean landed in a sub-interval of width . Under the uniform of Step B, the probability of landing in that sub-interval is just its fraction of the whole window:

Step D — failure rate, then flip it. A knock becomes a real failure only if it both happens and is still unresolved when sampled, so "Mean Time Between Failures" is the average wait between failures = the reciprocal of that rate, which sends the exponent positive:

The real cause of asynchronous signals is Clock Domain Crossing (CDC), and a common structure that carries data safely across domains is a FIFO Design with synchronized pointers — both build directly on these foundations.


Equipment checklist

Test yourself — you are ready for the parent page when you can answer every line without peeking.

What does voltage represent in our water-tank picture?
The height of water = how much electrical push is on a wire.
What makes a device "bistable"?
It is happy resting at only two levels (0 or 1), like a marble in one of two valleys.
What do and mark?
= highest voltage still read as a clean 0; = lowest voltage still read as a clean 1; between them is the undecided band.
Relate period and frequency .
They are reciprocals: (beats per second vs seconds per beat).
What is a clock edge, in camera terms?
The shutter-click instant when the flip-flop snapshots the data wire.
What are and ?
Setup = steady time required before the edge; hold = steady time required after the edge; changing inside makes a "blurred" photo.
What is the imbalance and its zero point?
The output voltage measured from the perfect balance point (hilltop); is dead-centre, sign says which valley, is the starting lean.
What is ?
The distance in the -coordinate from the hilltop out to a threshold ( toward 1, toward 0); resolution happens when .
Why does the case need no separate analysis?
The ridge is symmetric; timing depends on not its sign, so falling toward 0 or toward 1 uses the identical exponential.
Why is resolution modelled with and not a straight line?
Positive feedback grows the lean in proportion to its current size, and only an exponential fits "growth rate proportional to current value".
What does control?
The speed of resolution — each of waiting multiplies the lean by .
What distribution is assumed for , and why?
Uniform, because an asynchronous data change cannot favour any instant in the danger window, so its landing time (and hence ) is evenly likely.
Where does physically come from?
The dangerous sub-slice of the setup/hold window that yields a lean too small to resolve in one clock; set by the same gain/capacitance that set .
Why do exponential rise in and exponential decay in survival share the same ?
Each extra lets the loop rescue leans times smaller, so the "still stuck" interval shrinks by per — the mirror of the rise.
What is ?
The resolution time budget — the waiting slack you grant before the next stage samples (nearly a clock period in a 2-FF synchronizer).
Why do we multiply ?
All three must line up for a knock (independent coinciding conditions), so their chances multiply.
Why does MTBF have on top?
Failure rate is knock rate times survival fraction ; MTBF is one over that rate, flipping the sign positive.