Rtl p5s cdc policy

From babyworm/rtl-agent-team · View interactive version

Rtl p5s cdc policy is an AI agent skill from the GitHub repository babyworm/rtl-agent-team. Internal reference: rtl p5s cdc policy (agent-loaded; do not invoke).

How to use this skill

Skill file

CDC Verification Policy

CDC Coding Conventions

CDC analysis MUST recognize the project clock/reset naming conventions (CLAUDE.md):

If RTL uses non-conformant clock/reset names, flag as a CONVENTION VIOLATION in the report

in addition to any CDC violations.

Escalation & Stop Conditions

Final Checklist

Synchronizer Type Selection Guide

| Crossing Type | Recommended Synchronizer |

|---------------|-------------------------|

| Single-bit control | 2-FF synchronizer (3-FF for high-freq) |

| Multi-bit counter | Gray code FIFO |

| Multi-bit data bus | Handshake (REQ/ACK) or MUX synchronizer |

| Single-cycle pulse | Pulse synchronizer (toggle-based) |

| Bulk data (cross-domain R+W) | Dual-port SRAM (sram_dp with wclk/rclk) |

| Reset signal | Async assert, sync deassert reset synchronizer |

Dual-Port SRAM as CDC Boundary

sram_dp from rtl/common/ is inherently a CDC element — write port on wclk, read port on rclk.

For comprehensive CDC analysis, commercial tools (SpyGlass CDC, Conformal CDC, Questa CDC)

provide formal proof of synchronizer correctness beyond structural analysis.

See {plugin_root}/skills/rtl-p5s-cdc-verify/references/cdc-patterns.md for SDC constraint templates, violation checklist,

and detailed synchronizer implementation guidance.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.