3.4.13 · D3Sequential Circuits

Worked examples — Metastability and synchronizers

2,905 words13 min readBack to topic

This page is a drill. The parent note built the physics; here we hammer every kind of number the topic can throw at you. Before the examples, we lay out a scenario matrix — a checklist of every case-class — then work examples until every cell is covered.

Everything on this page uses one master formula. Let us re-state it so no symbol is unexplained.

Figure — Metastability and synchronizers

The figure above is the mental model for the whole page: MTBF plotted against slack on a log vertical axis. Because is linear in , the curve is a straight line — every nanosecond of you add climbs a fixed number of decades. Steeper line = smaller = a faster-resolving flip-flop.


The scenario matrix

# Case class What makes it tricky Covered by
A Baseline single-number MTBF plug-and-chug, get units right Ex 1
B Add one flip-flop (2→3 FF) gains a whole clock period Ex 2
C Change by a small amount exponential sensitivity Ex 3
D Double the clock frequency up and down — two effects Ex 4
E Solve backwards for given a required MTBF invert the exponential with a logarithm Ex 5
F Degenerate: (no slack) limiting value, worst case Ex 6
G Degenerate: (signal never changes) zero input → infinite MTBF Ex 6
H Real-world word problem (button press) translate English → symbols Ex 7
I Exam twist: compare two designs fast-slow-FF trade-off, ratio Ex 8

Every cell A–I gets hit below. Let us go.


Tool check: why a logarithm shows up

Several examples must undo the exponential — given an MTBF target, find the that produces it. The exponential answers "start at 1, grow by factor each unit of — where do I land?". Its inverse, the natural logarithm , answers the reverse question: "I landed here — how many units of growth did that take?". So whenever is the unknown hiding inside , we take of both sides. That is the only new tool on this page; the rest is multiply/divide.


Ex 1 — Cell A: Baseline MTBF


Ex 2 — Cell B: Adding a third flip-flop


Ex 3 — Cell C: Small change in , big change in MTBF


Ex 4 — Cell D: Doubling the clock frequency


Ex 5 — Cell E: Solve backwards for the required slack


Ex 6 — Cells F & G: The degenerate limits


Ex 7 — Cell H: Real-world word problem (a button)


Ex 8 — Cell I: Exam twist — fast FF vs slow FF, the ratio decides

Figure — Metastability and synchronizers

The figure above plots MTBF vs on a log axis for both designs — notice both are straight lines (log of an exponential is linear), and Q's operating point sits far higher than P's despite Q's gentler slope, because Q's larger carries it up the line.


Recall Quick self-test

A design gains 2 ns of slack; ns. MTBF multiplies by? ::: . You double and lose 6 ns of with ns. Dominant effect? ::: The exponential: , swamping the factor-of-2 from . gives MTBF = ? ::: Infinite — a never-changing signal can't be caught mid-transition. Two designs, same prefactor: which wins? ::: The one with the larger ratio . What is in terms of ? ::: — the gap between clock ticks.


Connections