CDC / RDC · All levels
Gray Code Crossing
Reconvergence & Gray Coding: Gray encoding limits transitions to one bit per step, reducing sampled ambiguity when pointers cross asynchronous boundaries.
What this topic teaches
Gray Code Crossing focuses on closing CDC/RDC risk with mechanism-level reasoning. Gray encoding limits transitions to one bit per step, reducing sampled ambiguity when pointers cross asynchronous boundaries. Senior signoff depends on proving behavior with targeted evidence, not just clearing tool warnings.
The senior-engineer question
When single-bit transition compliance, pointer decode correctness, CDC flag integrity regresses, can you classify the hazard, identify accountable owners, and choose the smallest fix or waiver backed by evidence?
CDC/RDC SIGNOFF FLOW — Gray Code Crossing
crossing inventory + reset map
|
v
crossing classification (level/pulse/bus/reset)
|
v
structure + protocol + reset checks
|
v
critical issues + waiver review
|
v
fix / validate / regress / signoffPicture the crossing behavior
Draw the behavior before touching tools. These visuals are the expected whiteboard baseline for reviews and interviews.
Gray transition property
binary: 0111 -> 1000 (4 bit changes)
gray: 0100 -> 1100 (1 bit change)
One-bit transition reduces sampled ambiguity in crossing.Crossing sequence
CROSSING FLOW — Gray Code Crossing
source clock domain -> launch signal -> crossing structure -> destination sample
| | | |
source FF protocol sync / fifo destination FF
Key metric: single-bit transition compliance, pointer decode correctness, CDC flag integrityOwnership layers
CDC/RDC OWNERSHIP LAYERS — Gray Code Crossing
layer owns common failure
------------------ ----------------------------- -----------------------------
design intent crossing architecture wrong topology selected
protocol semantics req/ack, fifo, ordering liveness/deadlock bugs
reset behavior assert/deassert sequencing boot instability
analysis setup tool rules + waivers false confidence
signoff governance risk acceptance + dashboard stale critical waiversEvidence to collect
Primary metric: single-bit transition compliance, pointer decode correctness, CDC flag integrity.
Primary artifact: gray encode/decode checks, pointer transition proof, FIFO status tests.
Owners to involve: RTL owner, CDC owner, formal owner.
At least one reproducer tied to mode/reset/traffic context.
Decision record: fix, waive, or escalate with rationale.
Ownership map
OWNERSHIP MAP — Gray Code Crossing
artifact owner
---------------------- -------------------------
design intent RTL owner
verification evidence CDC owner
signoff decision formal owner
Every open CDC/RDC issue needs one accountable owner before waiver or fix.Subpages in this topic
Each topic includes mechanism, I/O contract, metrics, debug, worked example, pitfalls, interview drills, checklist, theory, design tradeoffs, expanded case study, walkthrough, comparison matrix, software view, and silicon impact.
Key takeaways
Classify crossing/reset hazards before proposing fixes.
Pair structural results with protocol/reset behavioral proof.
Treat waivers as bounded risk contracts, not cleanup shortcuts.
Common pitfalls
Mass-waiving warnings near tapeout.
Assuming local IP cleanliness guarantees SoC behavior.
Skipping reconvergence and reset stress after CDC fixes.
CDC/RDC deep dive
Reconvergence failures are timing + logic coupling hazards.
Concept diagram
RECONVERGENCE
branch A sync -- -> merge logic -> illegal combination window
branch B sync --/Metric graph
HAZARD REPRODUCTION RATE
before fix: 1/2000 runs
after fix: 0/100000 runsReports and artifacts
reconvergence warnings
gray transition checks
hazard replay traces
multi-bit strategy map
Mini case study
Gray pointer was legal, but downstream merge decoded mixed-era values during burst stress.
Debug branches
Trace fanin cones
align event windows
verify decode assumptions
Senior review question
Ask: what evidence proves this risk is closed for silicon, not just tool-clean?
Key takeaways
State crossing class, assumptions, and owner with every issue.
Run structural and dynamic regressions after each fix.
Common pitfalls
Treating all warnings as equivalent risk.
Waiving issues without containment evidence.
Skipping reset and reconvergence stress after CDC fixes.