Rtl p5s integration test policy

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

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

How to use this skill

Skill file

Tier 4 Integration Test Policy

Coding Convention Requirements

Integration testbenches MUST follow project conventions:

Integration Test Ordering (mandatory sequence)

  1. Static connectivity checks first (fast, catches wiring bugs)
  2. Simple data flow (single transaction end-to-end)
  3. Sustained throughput (back-to-back transactions)
  4. Backpressure and stall scenarios
  5. Error injection and recovery

Result JSON Schema

{
  "top_module": "{top}",
  "tier": 4,
  "connectivity": {
    "reset_propagation": "PASS",
    "clock_connectivity": "PASS",
    "port_width_match": "PASS"
  },
  "data_flow": [
    {"scenario": "basic_forward", "status": "PASS", "req_ids": ["REQ-U-001"]},
    {"scenario": "max_throughput", "status": "PASS", "req_ids": ["REQ-U-007", "REQ-P-003"]}
  ],
  "handshake": [
    {"test": "backpressure_propagation", "status": "PASS", "req_ids": ["REQ-U-012"]},
    {"test": "pipeline_flush", "status": "PASS", "req_ids": ["REQ-U-015"]}
  ],
  "e2e_reference": "PASS",
  "verdict": "PASS"
}

Simulation Commands

SV TB:

scripts/run_sim.sh --sim verilator --top tb_{top}_integration \
  --filelist rtl/filelist_top.f --outdir sim/top --trace \
  sim/top/tb_{top}_integration.sv

cocotb:

make -C sim/top sim SIM=verilator TOPLEVEL={top} MODULE=test_{top}_integration

Fallback (iverilog):

scripts/run_sim.sh --sim iverilog --top tb_{top}_integration \
  --filelist rtl/filelist_top.f --outdir sim/top --trace \
  sim/top/tb_{top}_integration.sv

Multi-Clock Domain Integration

Acceptance Criteria Traceability (Optional at Tier 4)

Integration test results may optionally include ac_ids for AC-level traceability.

When structured acceptance_criteria (with ac_id fields) exist on a requirement in

iron-requirements.json:

When no structured AC exists (absent or plain string-array format): use req_ids only (existing behavior).

Tier Transition Rules

Escalation & Stop Conditions

Final Checklist

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.