CDC / RDC · All levels
Gray Code Crossing: Expanded Case Study
Expanded Case Study for Gray Code Crossing.
Extended case study
Milestone review flags single-bit transition compliance, pointer decode correctness, CDC flag integrity around Gray Code Crossing.
Background
Team believed crossings were stable until stress mode exposed intermittent anomalies.
Symptoms observed
single-bit transition compliance, pointer decode correctness, CDC flag integrity regression
Mismatch between structural report and dynamic behavior
Waiver debate under schedule pressure
Investigation timeline
Freeze design, reset, and tool configuration tags.
Reproduce failing scenario with minimized stimulus.
Map path/protocol/reset dependencies.
Classify root cause and containment options.
Execute minimal safe fix.
Run stress regression and review board.
Root cause
Root cause links to Gray Code Crossing: Gray encoding limits transitions to one bit per step, reducing sampled ambiguity when pointers cross asynchronous boundaries.
Fix and validation
Targeted RTL/protocol/reset correction
Evidence refresh
Signoff board decision
Lessons learned
Treat waivers as temporary risk contracts
Track owner and expiry
Regression before closure
CASE STUDY — Gray Code Crossing
critical issues before / after / signoffCrossing sequence under stress
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 integrityCDC/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.
Principal CDC/RDC review addendum
Gray encoding limits transitions to one bit per step, reducing sampled ambiguity when pointers cross asynchronous boundaries.
Metric: single-bit transition compliance, pointer decode correctness, CDC flag integrity