Rtl p5s protocol policy

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

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

How to use this skill

Skill file

Protocol Verification Policy

Protocol Signal Naming Conventions

Protocol SVA assertions MUST use the project port naming conventions (CLAUDE.md):

AXI signal naming (with i_/o_ prefix based on slave perspective):

AHB signal naming (slave perspective):

APB signal naming (slave perspective):

Clock/Reset: {domain}_clk (e.g., axi_clk or sys_clk), {domain}_rst_n

NOT: ACLK, ARESETn, clk_i, rst_ni

Note: For master-perspective modules, i_/o_ directions are reversed.

Escalation & Stop Conditions

Final Checklist

AXI4 Full Rules and Key Protocol Rules

For AXI4 full (not Lite), also check: burst length/size consistency, wrap alignment, exclusive access.

For multi-clock designs, use axi_clk/axi_rst_n in assertion clock instead of sys_clk.

Protocol assertions can also be run with SymbiYosys formal (via rtl-p5s-sva-check skill) for exhaustive coverage.

Key AXI protocol rules to verify:

  1. VALID must not depend on READY — xVALID must assert independently
  2. VALID must hold until handshake — cannot drop VALID before READY
  3. Data/control stable while waiting — no changes while VALID && !READY
  4. Write response after last data — BVALID only after WLAST accepted
  5. Read data ordering — RDATA returned in address request order (per ID)

See {plugin_root}/skills/rtl-p5s-protocol-verify/references/axi-protocol-rules.md for complete SVA assertion templates per channel,

ordering rules, AXI4 vs AXI4-Lite differences, and common violations found in practice.

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.