Home Knowledge Base Metastability

Metastability is the unstable equilibrium condition in bistable circuits (flip-flops, latches) that occurs when setup or hold time is violated — causing the output to linger at an intermediate voltage between logic 0 and 1 for an unpredictable duration before resolving to a valid state, where this resolution time can exceed a clock period and propagate corrupt data through the design, making metastability management through proper synchronizer design the critical reliability mechanism for every clock domain crossing.

What Causes Metastability

Resolution Time Model

$P(t_{resolve} > t) = T_0 \cdot f_{clk} \cdot f_{data} \cdot e^{-t/\tau}$

MTBF (Mean Time Between Failures)

$MTBF = \frac{e^{t_{resolve}/\tau}}{T_0 \cdot f_{clk} \cdot f_{data}}$

Two-Stage Synchronizer

  Async Input → [FF1] → [FF2] → Synchronized Output
                 ↑        ↑
              clk_dst   clk_dst

Clock Domain Crossing (CDC) Synchronization

Crossing TypeSynchronizerLatency
Single bit2-FF synchronizer2 dest clocks
Multi-bit grayGray code + 2-FF per bit2 dest clocks
Multi-bit busHandshake protocol3-4 clocks
FIFOAsync FIFO (gray pointers)Pipeline depth
PulsePulse synchronizer (toggle + 2-FF)2-3 dest clocks

Common CDC Bugs

BugCauseConsequence
Missing synchronizerDirect connection across domainsRandom metastability failures
Binary counter crossingMulti-bit changes asynchronouslyIncorrect count sampled
Reconvergent pathsSynced signals rejoin laterData coherence lost
Glitch on async resetReset deasserts near clock edgeMetastable reset

CDC Verification

Metastability is the fundamental reliability hazard at every clock domain boundary — while a two-flip-flop synchronizer seems trivially simple, the mathematical analysis behind it and the systematic CDC verification needed to ensure every asynchronous crossing is properly handled represent one of the most critical aspects of digital design correctness, where a single missed synchronizer can cause random, unreproducible field failures that are nearly impossible to debug.

metastabilityflip flop metastabilitymtbf metastabilitysynchronizer designclock domain crossing setup

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.