3.4.14 · D3Sequential Circuits

Worked examples — Clock domain crossing

2,758 words13 min readBack to topic

Before we compute anything, the symbols must be crystal-clear (the parent earned them; we reuse them):

Recall What each symbol means (click)

::: the time we allow the flip-flop to settle before its value is used — usually one destination clock period. ::: the destination clock period — the time between two rising edges of the sampling clock; equals . ::: the regeneration time constant — how fast a metastable voltage grows; small = fast recovery. ::: the measured "aperture" fitting constant; how wide the danger window is per event. ::: how often the destination flop samples (sampling rate). ::: how often the incoming asynchronous signal changes.


The scenario matrix

Every CDC problem you will ever see falls into one of these case classes. Each row is a "cell"; the last column names the example that covers it.

# Case class What makes it special Covered by
A Baseline numeric MTBF plug-and-chug, single stage Ex 1
B Add a stage / more how scales MTBF Ex 2
C Limiting value degenerate: no settling time Ex 3
D Limiting value degenerate: input never changes Ex 3
E Sign/direction: faster vs slower clock which frequency hurts Ex 4
F Multi-bit wrong way data incoherence (a bus torn apart) Ex 5
G Multi-bit right way (Gray) one-bit-changes guarantee Ex 6
H Real-world word problem temperature-sensor across domains Ex 7
I Exam-style twist (solve for ) invert the formula to hit a target MTBF Ex 8

We now walk the cells top to bottom. Keep this table open — each example says which cell it hits.


Worked examples









Recall Matrix self-check (click)

Which cell has the worst finite MTBF and why? ::: Cell C (): no settling, MTBF s. Why does swapping clocks (Cell E) with equal still change safety? ::: Because = the destination period , and a slower destination clock buys a bigger exponent. For a 12-bit sensor word, why not Gray code? ::: Gray only guarantees one-bit changes for ±1 counters; arbitrary data jumps break that, so use a handshake. What single math tool inverts the MTBF formula for ? ::: the natural logarithm , which undoes .

See also: Flip-flops and setup-hold time, Synchronous vs asynchronous circuits, Metastability, and the Hinglish version.