CDC Lint and the Mistakes It Catches
Standard digital logic simulators cannot detect Clock Domain Crossing (CDC) bugs. Defective designs containing un-synchronized signals pass functional simulations cleanly. Understanding the limitations of discrete-event simulators clarifies why design teams require automated static CDC linting tools.
Why RTL Simulators Cannot Detect Metastability
RTL simulators use discrete digital abstractions.
Signals exist only as discrete states (0, 1, x, or z) that transition instantaneously at discrete simulation timestamps.
Simulators do not model analog transistor voltage levels settling over continuous physical time.
Because an RTL simulator cannot model the physics of metastability, cross-domain signals evaluate atomically and cleanly on every clock edge.
Physical hardware failures occur when asynchronous transitions violate real setup and hold times. In silicon, these violations cause intermittent metastability or multi-bit race conditions. Because ideal digital simulations omit physical timing skew, dangerous CDC defects remain completely invisible during standard testbench verification.
Static CDC Lint Analysis
A CDC lint tool does not execute time-based simulations. Instead, it performs static structural analysis across the synthesized netlist:
The tool parses clock domain specifications to identify which registers belong to each clock tree. It traces all inter-domain paths and flags violations that fail established topological design rules.
Primary CDC Lint Verification Checklist
Automated lint tools verify five critical structural design rules:
- Unsynchronized Single-Bit Crossings: Flags signals generated in one clock domain that connect directly to registers in another domain without intermediate synchronizers.
- Combinational Logic Between Synchronizer Stages: Confirms that the output of the first synchronizer flip-flop connects directly to the second flip-flop without intervening logic gates or multiplexers. Intervening gates introduce glitches that corrupt metastability resolution.
- Unguarded Multi-Bit Bus Crossings: Flags multi-bit data buses crossing between domains without verified Gray code encoding or request/acknowledge handshake controllers.
- Missing Toolchain Attributes: Verifies that every synchronizer flip-flop pair includes vendor-specific synthesis attributes (such as
ASYNC_REG) to prevent automated compiler retiming. - Signal Reconvergence: Detects when a single source signal is synchronized through multiple independent synchronizers and recombined in destination logic. Differing resolution latencies cause momentary logical inconsistencies.
Verification Versus Signoff
Functional verification and CDC lint analysis validate independent design characteristics. A testbench confirms protocol functionality, arithmetic correctness, and state machine transitions. A CDC lint tool confirms structural isolation across asynchronous clock boundaries. Achieving silicon tapeout signoff requires both verification methodologies.
Verification Exercise
An engineer claims: “Our functional simulation ran for one million cycles with random stimulus without errors; therefore, our clock domain crossings are safe.” Explain why this argument is technically invalid.
View Solution
RTL simulators evaluate signal transitions atomically. Simulators do not model analog voltage states, interconnect delays, or setup-and-hold violations. Running a simulation for millions of cycles never models physical metastability or multi-bit skew. A testbench cannot trigger the physical failure mechanisms that static CDC lint tools are designed to catch.
Static CDC linting proves that digital circuits isolate asynchronous clock boundaries safely. This concludes Section 7.5. Section 7.6 examines low-power RTL techniques, including safe clock gating and power gating architectures.