RTL Design Flow — Orchestration Reference
Complete reference for orchestrating the RTL design pipeline. Use this when:
- Unsure which skill or agent to invoke for a given task
- Need the full routing table (natural language → skill mapping)
- Need the complete agent delegation matrix
- Want to review the design pipeline rules and principles
This skill is informational — it injects routing context, not an action workflow.
Skill Routing Table
When RTL/HDL/FPGA/ASIC related tasks are detected, route to Action Skills first.
Orchestrator agents are internal execution units spawned only by Action Skills.
Invocation types:
- Action Skill: user-facing entry point via
Skill(skill="rtl-agent-team:XXX")
- Convention: loaded by writer agents via their
skills: frontmatter, not user-invocable
- Internal Reference: non-user-facing skill used for routing/context export only
| Pattern Detected |
Route To |
Type |
| --- Full Pipeline --- |
|
|
| "RTL design", "verilog", "FPGA", "ASIC", "chip design", "rat-auto-design" |
/rtl-agent-team:rat-auto-design |
Action Skill |
| "setup tools", "install tools", "EDA setup", "check tools", "docker image", "EDA docker" |
/rtl-agent-team:rat-setup |
Action Skill |
| "init project", "initialize project", "new project", "project init" |
/rtl-agent-team:rat-init-project |
Action Skill |
| "debug", "diagnostics", "plugin status", "rat debug", "tool check" |
/rtl-agent-team:rat-plugin-debug |
Action Skill |
| "tutorial", "getting started", "how to use", "help me learn" |
/rtl-agent-team:rat-tutorial |
Action Skill |
| --- Phase 1: Research --- |
|
|
| "spec analysis", "requirements", "paper research", "research" |
/rtl-agent-team:p1-spec-research |
Action Skill |
| "codec consultation", "H.264", "H.265", "domain expert" |
/rtl-agent-team:domain-consult |
Action Skill |
| "intra prediction", "angular mode", "planar mode", "DC mode" |
/rtl-agent-team:domain-consult → vcodec-intra-pred-expert |
Action Skill |
| "motion estimation", "IME", "FME", "TZ search", "MV prediction", "AMVP" |
/rtl-agent-team:domain-consult → vcodec-me-expert |
Action Skill |
| "motion compensation", "sub-pel interpolation", "bi-prediction", "weighted prediction" |
/rtl-agent-team:domain-consult → vcodec-mc-expert |
Action Skill |
| --- Phase 2: Architecture --- |
|
|
| "architecture design" (RTL context) |
/rtl-agent-team:p2-arch-design |
Action Skill |
| "architecture review", "arch review" |
/rtl-agent-team:arch-review |
Action Skill |
| "reference model", "ref model", "C model" |
/rtl-agent-team:ref-model |
Action Skill |
| "BFM", "bus functional model", "SystemC model" |
/rtl-agent-team:bfm-develop |
Action Skill |
| --- Phase 3: μArch --- |
|
|
| "microarchitecture", "μArch", "uarch", "pipeline design" |
/rtl-agent-team:rtl-p3-uarch-design |
Action Skill |
| --- Pipeline Composition --- |
|
|
| "DSE", "design space exploration", "algorithm study", "architecture comparison", "iterative exploration" |
/rtl-agent-team:rat-dse |
Action Skill |
| "Phase 1 team", "research team", "parallel research" |
/rtl-agent-team:rtl-p1-research-team |
Action Skill |
| "Phase 2 team", "arch team", "parallel architecture" |
/rtl-agent-team:rtl-p2-arch-team |
Action Skill |
| "Phase 3 team", "uarch team", "parallel uarch" |
/rtl-agent-team:rtl-p3-uarch-team |
Action Skill |
| "spec to uarch team", "Phase 1-3 team", "parallel design pipeline" |
/rtl-agent-team:rat-p1p3-spec-uarch-team |
Action Skill |
| "spec to uarch", "design only", "Phase 1-3", "design documents only" |
/rtl-agent-team:rat-p1p3-spec-uarch |
Action Skill |
| "uarch to verify", "implement and verify", "Phase 4-5", "RTL from uarch" |
/rtl-agent-team:rat-p4p5-impl-verify |
Action Skill |
| "RD eval", "BD-PSNR", "BD-rate", "codec quality", "algorithm quality evaluation" |
/rtl-agent-team:codec-rd-eval |
Action Skill |
| "decoder conformance", "conformance stream", "conformance test", "decoder verify" |
/rtl-agent-team:codec-conformance-eval |
Action Skill |
--- Coding Conventions (loaded via writer-agent skills: frontmatter) --- |
|
|
.sv, .svh, .v, .vh RTL code generation |
systemverilog (agent-loaded: rtl-coder, testbench-dev, ppa-optimizer-dc) |
Convention |
.sv, .sva (SVA, assertion, bind), formal assertion |
systemverilog-assertion (agent-loaded: sva-extractor, protocol-checker, testbench-dev) |
Convention |
| UVM testbench, agent, sequence generation |
uvm (agent-loaded: testbench-dev) |
Convention |
.cpp, .h (SystemC/TLM), Phase 2/3 |
systemc (agent-loaded: bfm-dev) |
Convention |
| --- Phase 4: RTL --- |
|
|
| "rapid rtl", "P4 rapid", "sanity integration", "fast implementation loop" |
/rtl-agent-team:rtl-p4-rapid-impl |
Action Skill |
| "bug fix", "RTL fix", "RTL bug", "functional error" |
/rtl-agent-team:rtl-p4s-bugfix |
Action Skill |
| "RTL coding", "module implementation", "SV writing" |
/rtl-agent-team:rtl-p4-implement |
Action Skill |
| "Phase 4 team", "implement team", "parallel implement" |
/rtl-agent-team:rtl-p4-implement-team |
Action Skill |
| "block parallel", "worktree parallel", "6-block", "block-parallel Phase 4" |
/rtl-agent-team:rtl-p4-block-parallel |
Action Skill |
| "refactoring", "RTL refactoring", "code cleanup" (RTL context) |
/rtl-agent-team:rtl-p4s-refactor |
Action Skill |
| "SV unit test", "unit test" (RTL context) |
/rtl-agent-team:rtl-p4s-unit-test |
Action Skill |
| "IP instance", "IP integration", "submodule connection" |
/rtl-agent-team:rtl-ip-instantiate |
Action Skill |
| "lint", "lint check" (RTL context) |
/rtl-agent-team:rtl-lint-check |
Action Skill |
| "synthesis", "yosys", "SDC" |
/rtl-agent-team:rtl-synth-check |
Action Skill |
| "documentation", "RTL docs" |
/rtl-agent-team:rtl-document |
Action Skill |
| "IP-XACT", "ipxact", "register map generation" |
/rtl-agent-team:rtl-ipxact-gen |
Action Skill |
| --- Phase 5: Verify --- |
|
|
| "functional closure", "P5A", "deep functional verification", "hierarchical functional closure" |
/rtl-agent-team:rtl-p5a-functional-closure |
Action Skill |
| "silicon validation", "P5B", "signoff readiness", "timing signoff", "post-functional signoff" |
/rtl-agent-team:rtl-p5b-silicon-validation |
Action Skill |
| "Phase 5", "verification pipeline", "extensive verification" |
/rtl-agent-team:rtl-p5-verify |
Action Skill |
| "Phase 5 team", "verify team", "parallel verify" |
/rtl-agent-team:rtl-p5-verify-team |
Action Skill |
| "simulation", "functional verification", "testbench", "cocotb" |
/rtl-agent-team:rtl-p5s-func-verify |
Action Skill |
| "UVM", "UVM verification", "sequence", "agent" (UVM context) |
/rtl-agent-team:rtl-p5s-uvm-verify |
Action Skill |
| "performance verification", "throughput", "latency measurement" |
/rtl-agent-team:rtl-p5s-perf-verify |
Action Skill |
| "formal", "SVA", "assertion" |
/rtl-agent-team:rtl-p5s-sva-check |
Action Skill |
| "CDC", "clock domain" |
/rtl-agent-team:rtl-p5s-cdc-verify |
Action Skill |
| "AXI", "APB", "AHB", "protocol" (RTL context) |
/rtl-agent-team:rtl-p5s-protocol-verify |
Action Skill |
| "coverage" |
/rtl-agent-team:rtl-p5s-coverage-analyze |
Action Skill |
| PPA optimize, DC PPA, power/timing/area optimize |
/rtl-agent-team:rtl-ppa-optimize-dc |
Action Skill |
| PPA auto-loop, ultraloop PPA, converge PPA |
/rtl-agent-team:rat-ultraloop-ppa |
Action Skill |
| --- Phase 6: Design Note --- |
|
|
| "design review", "Phase 6", "design note", "code review documentation" |
/rtl-agent-team:rtl-p6-design-review |
Action Skill |
| --- Phase 7: Exploration (optional) --- |
|
|
| "free exploration", "exploration", "Phase 7", "improvement exploration" |
/rtl-agent-team:rtl-p7-exploration |
Action Skill |
| --- Autonomous Loops --- |
|
|
| "ultraloop", "autonomous loop", "unattended", "퇴근 모드" |
/rtl-agent-team:rat-ultraloop |
Action Skill |
| --- Other Verification --- |
|
|
| "LLM code review", "safe refactor", "review and refactor workflow" |
/rtl-agent-team:rtl-review-refactor |
Action Skill |
| "integration test", "cross-module test", "end-to-end test", "Tier 4" |
/rtl-agent-team:rtl-p5s-integration-test |
Action Skill |
| "regression", "multi-seed" |
/rtl-agent-team:rtl-p5s-func-verify (Tier 3) |
Action Skill |
| "RTL conformance", "RTL conformance test", "RTL golden comparison" |
/rtl-agent-team:rtl-conformance-test |
Action Skill |
| "bug reproduction", "bug repro", "waveform debug" |
/rtl-agent-team:rtl-bug-repro |
Action Skill |
| "model consistency", "RTL-model comparison" |
/rtl-agent-team:rtl-model-consistency |
Action Skill |
| "cross-phase", "contract validation", "spec consistency", "phase boundary check" |
/rtl-agent-team:cross-phase-contract-validator |
Action Skill |
| "cross-review", "codex review", "2nd reviewer", "second opinion", "cross check" |
/rtl-agent-team:codex-cross-review |
Action Skill |
| "routing help", "which skill to use", "routing reference" |
rtl-orchestrate (internal context only) |
Internal Reference |
Action Skill → Orchestrator Agent Mapping (internal)
Action Skills are user-facing. Each action delegates to one orchestrator agent, which loads one policy skill.
| Action Skill |
Orchestrator Agent |
Policy Skill |
rat-auto-design |
autopilot-orchestrator |
rat-auto-design-policy |
p1-spec-research |
p1-research-orchestrator |
p1-spec-research-policy |
p2-arch-design |
p2-arch-orchestrator |
p2-arch-design-policy |
rtl-p3-uarch-design |
p3-uarch-orchestrator |
rtl-p3-uarch-policy |
rtl-p4-implement |
p4-implement-orchestrator |
rtl-p4-implement-policy |
rtl-p4-implement-team |
p4-implement-team-orchestrator |
rtl-p4-implement-policy |
rtl-p4-rapid-impl |
p4-rtl-sanity-orchestrator |
rtl-p4-rapid-impl-policy |
rtl-p4s-bugfix |
p4s-bugfix-orchestrator |
rtl-p4s-bugfix-policy |
rtl-p4s-refactor |
p4s-refactor-orchestrator |
rtl-p4s-refactor-policy |
rtl-p4s-unit-test |
p4s-unit-test-orchestrator |
rtl-p4s-unit-test-policy |
rtl-p5-verify |
p5-verify-orchestrator |
rtl-p5-verify-policy |
rtl-p5-verify-team |
p5-verify-team-orchestrator |
rtl-p5-verify-policy |
rtl-p5a-functional-closure |
p5a-functional-closure-orchestrator |
rtl-p5a-functional-closure-policy |
rtl-p5b-silicon-validation |
p5b-silicon-validation-orchestrator |
rtl-silicon-validation-policy |
rtl-p5s-func-verify |
p5s-func-verify-orchestrator |
rtl-p5s-func-verify-policy |
rtl-p5s-sva-check |
p5s-sva-orchestrator |
rtl-p5s-sva-policy |
rtl-p5s-cdc-verify |
p5s-cdc-orchestrator |
rtl-p5s-cdc-policy |
rtl-p5s-protocol-verify |
p5s-protocol-orchestrator |
rtl-p5s-protocol-policy |
rtl-p5s-perf-verify |
p5s-perf-orchestrator |
rtl-p5s-perf-policy |
rtl-p5s-coverage-analyze |
p5s-coverage-orchestrator |
rtl-p5s-coverage-policy |
rtl-p5s-uvm-verify |
p5s-uvm-orchestrator |
rtl-p5s-uvm-policy |
rtl-p5s-integration-test |
p5s-integration-orchestrator |
rtl-p5s-integration-test-policy |
rtl-p6-design-review |
p6-review-orchestrator |
rtl-p6-design-review-policy |
rtl-p7-exploration |
p7-exploration-orchestrator |
rtl-p7-exploration-policy |
rtl-review-refactor |
review-refactor-orchestrator |
code-review-policy, refactor-classification-policy, verification-recheck-policy |
codex-cross-review |
codex-cross-reviewer |
— (self-contained) |
rat-dse |
dse-orchestrator |
rat-dse-policy |
rtl-p1-research-team |
p1-research-team-orchestrator |
p1-spec-research-policy |
rtl-p2-arch-team |
p2-arch-team-orchestrator |
p2-arch-design-policy |
rtl-p3-uarch-team |
p3-uarch-team-orchestrator |
rtl-p3-uarch-policy |
rat-p1p3-spec-uarch |
spec-to-uarch-orchestrator |
rat-p1p3-spec-uarch-policy |
rat-p1p3-spec-uarch-team |
spec-to-uarch-team-orchestrator |
rat-p1p3-spec-uarch-policy |
rat-p4p5-impl-verify |
uarch-to-verify-orchestrator |
rat-p4p5-impl-verify-policy |
rtl-p4-block-parallel |
p4-block-parallel-coordinator |
rtl-block-interface-policy, rtl-block-contract-test-policy |
rat-ultraloop |
— (skill-driven, dispatches ultraloop-reviewer for review cycles) |
— |
Cross-cutting policy skills (referenced by specialist agents, not tied to a single orchestrator):
| Policy Skill |
Referenced By |
Purpose |
test-design-policy |
testbench-dev, test-plan-writer |
Systematic test case design methodology (ECP, BVA, state transition, decision table) |
Specialist agents (spawned by orchestrators, not user-invocable):
| Agent |
Purpose |
Spawned By |
test-plan-writer |
Test plan generation from uarch spec (ECP/BVA/STT/DT) |
Spawned by P4 orchestrators in Wave 0 Step 0b |
Agent Delegation Table
RTL tasks must be delegated to specialized agents. This applies to tasks handling .sv, .svh, .v, .vh files or using EDA tools.
Design Agents
| Task Type |
Agent |
Model |
| Specification analysis |
spec-analyst |
Opus |
| Architecture design |
arch-designer |
Opus |
| Architecture review |
rtl-architect |
Opus |
| μArch design |
uarch-designer |
Opus |
| RTL coding |
rtl-coder |
Opus |
| RTL review |
rtl-critic |
Opus |
| Design planning |
rtl-planner |
Opus |
| Codebase exploration |
rtl-explorer |
Opus |
Verification Agents
| Task Type |
Agent |
Model |
| Testbench development |
testbench-dev |
Opus |
| Functional verification |
func-verifier |
Opus |
| Performance verification |
perf-verifier |
Opus |
| SVA extraction/writing |
sva-extractor |
Opus |
| Protocol compliance |
protocol-checker |
Opus |
| Coverage analysis |
coverage-analyst |
Opus |
| Waveform analysis |
waveform-analyzer |
Opus |
Expert Review Agents (spawn directly or through skills)
| Task Type |
Agent |
Model |
| CDC design review |
cdc-reviewer |
Opus |
| Protocol design review |
protocol-reviewer |
Opus |
| Formal quality review |
formal-reviewer |
Opus |
| Power analysis |
power-analyzer |
Opus |
| Synthesis results review |
synthesis-reviewer |
Opus |
| UVM TB quality review |
uvm-reviewer |
Opus |
| Requirement traceability |
requirement-tracer |
Opus |
| cocotb TB quality review |
cocotb-reviewer |
Opus |
| Reference model review |
ref-model-reviewer |
Opus |
| Regression analysis |
regression-analyzer |
Opus |
| Equivalence checking |
equivalence-checker |
Opus |
| Integration verification |
integration-verifier |
Opus |
| Hardware security review |
security-reviewer |
Opus |
| DFT/scan chain/BIST/JTAG |
dft-designer |
Opus |
| Clock architecture/PLL review |
clock-architect |
Opus |
Phase 6 Agents
| Task Type |
Agent |
Model |
| Code quality review |
code-quality-reviewer |
Opus |
| Design quality review |
design-quality-reviewer |
Opus |
| Design document writing |
design-note-writer |
Opus |
| Improvement analysis |
improvement-analyst |
Opus |
Orchestrator Agents (pipeline coordinators)
| Pipeline |
Agent |
Policy Skill |
| Full pipeline (P1→P6) |
autopilot-orchestrator |
rat-auto-design-policy |
| Phase 1: Research |
p1-research-orchestrator |
p1-spec-research-policy |
| Phase 2: Architecture |
p2-arch-orchestrator |
p2-arch-design-policy |
| Phase 3: μArch |
p3-uarch-orchestrator |
rtl-p3-uarch-policy |
| Phase 4: RTL Implementation |
p4-implement-orchestrator |
rtl-p4-implement-policy |
| Phase 1: Research (Team) |
p1-research-team-orchestrator |
p1-spec-research-policy |
| Phase 2: Architecture (Team) |
p2-arch-team-orchestrator |
p2-arch-design-policy |
| Phase 3: μArch (Team) |
p3-uarch-team-orchestrator |
rtl-p3-uarch-policy |
| Phase 4: RTL Implementation (Team) |
p4-implement-team-orchestrator |
rtl-p4-implement-policy |
| Phase 4: Rapid RTL + Sanity |
p4-rtl-sanity-orchestrator |
rtl-p4-rapid-impl-policy |
| Phase 4: Bug Fix |
p4s-bugfix-orchestrator |
rtl-p4s-bugfix-policy |
| Phase 4: Unit Test |
p4s-unit-test-orchestrator |
rtl-p4s-unit-test-policy |
| Phase 5: Verification |
p5-verify-orchestrator |
rtl-p5-verify-policy |
| Phase 5: Verification (Team) |
p5-verify-team-orchestrator |
rtl-p5-verify-policy |
| Phase 5A: Functional Closure |
p5a-functional-closure-orchestrator |
rtl-p5a-functional-closure-policy |
| Phase 5B: Silicon Validation |
p5b-silicon-validation-orchestrator |
rtl-silicon-validation-policy |
| Phase 5: Func Verify |
p5s-func-verify-orchestrator |
rtl-p5s-func-verify-policy |
| Phase 5: Integration |
p5s-integration-orchestrator |
rtl-p5s-integration-test-policy |
| Phase 5: SVA/Formal |
p5s-sva-orchestrator |
rtl-p5s-sva-policy |
| Phase 5: CDC |
p5s-cdc-orchestrator |
rtl-p5s-cdc-policy |
| Phase 5: Protocol |
p5s-protocol-orchestrator |
rtl-p5s-protocol-policy |
| Phase 5: Performance |
p5s-perf-orchestrator |
rtl-p5s-perf-policy |
| Phase 5: Coverage |
p5s-coverage-orchestrator |
rtl-p5s-coverage-policy |
| Phase 5: UVM |
p5s-uvm-orchestrator |
rtl-p5s-uvm-policy |
| Phase 6: Design Review |
p6-review-orchestrator |
rtl-p6-design-review-policy |
| LLM Review + Refactor |
review-refactor-orchestrator |
code-review-policy + refactor-classification-policy + verification-recheck-policy |
| DSE |
dse-orchestrator |
rat-dse-policy |
| Spec→μArch (P1-3) |
spec-to-uarch-orchestrator |
rat-p1p3-spec-uarch-policy |
| Spec→μArch (P1-3 Team) |
spec-to-uarch-team-orchestrator |
rat-p1p3-spec-uarch-policy |
| μArch→Verify (P4-5) |
uarch-to-verify-orchestrator |
rat-p4p5-impl-verify-policy |
| Phase 4: Block-Parallel |
p4-block-parallel-coordinator |
rtl-block-interface-policy, rtl-block-contract-test-policy |
| Phase 4: Block Worker |
p4-block-worker |
rtl-p4-implement-policy |
| Autonomous Review Loop |
ultraloop-reviewer |
— (READ-ONLY reviewer) |
EDA/Infrastructure Agents
| Task Type |
Agent |
Model |
| EDA tool execution |
eda-runner |
Opus |
| Synthesis metrics |
synthesis-reporter |
Opus |
| Lint checking |
lint-checker |
Opus |
| SDC constraint generation |
constraint-writer |
Opus |
| Timing analysis (STA) |
timing-advisor |
Opus |
| CDC static analysis |
cdc-checker |
Opus |
| Clock architecture review |
clock-architect |
Opus |
| DFT design |
dft-designer |
Opus |
| IP-XACT generation |
ipxact-generator |
Opus |
| BFM development |
bfm-dev |
Opus |
| Reference model development |
ref-model-dev |
Opus |
Domain Expert Agents
| Task Type |
Agent |
Model |
| Codec chief expert |
vcodec-chief-standard-expert |
Opus |
| Syntax/entropy expert |
vcodec-syntax-entropy-expert |
Opus |
| Intra prediction expert |
vcodec-intra-pred-expert |
Opus |
| Motion estimation expert |
vcodec-me-expert |
Opus |
| Motion compensation expert |
vcodec-mc-expert |
Opus |
| Transform/quantization expert |
vcodec-transform-quant-expert |
Opus |
| Filter/reconstruction expert |
vcodec-filter-recon-expert |
Opus |
| Codec architecture expert |
vcodec-architecture-expert |
Opus |
| Codec performance expert |
video-processing-expert |
Opus |
| Color format expert |
vproc-color-format-expert |
Opus |
| Denoise expert |
vproc-denoise-expert |
Opus |
| Image processing expert |
vproc-image-processing-expert |
Opus |
Pipeline Rules (policy + enforcement map)
These rules define the canonical pipeline order. Rule 5 is hook-enforced
(hard gate); rules 1-4, 6-8 and 10-11 are policy declarations carried through
skill-entry warnings (asymmetric phase gate design — exit strict, entry
flexible). See CLAUDE.md "Pipeline Rules" section for the enforcement
column.
- No RTL without Spec (policy): Do not start RTL coding without a specification (spec-analyst first)
- No TB without Ref Model (policy): Do not write a Testbench without a Reference Model
- No Synthesis without RTL (policy): Do not run synthesis without RTL code
- No Formal without Lint (policy — skill warning): Do not run Formal verification without passing Lint
- Verification Required (HARD —
rtl-verify-stop-gate.sh): Do not declare completion after RTL modification without functional verification (lint alone is insufficient)
- Unit Tests for Phase Gate (policy — skill warning): Do not proceed to Phase 5 without per-module unit tests upon Phase 4 completion + Stream B early verification artifacts (SVA skeletons, CDC preliminary, TB skeletons)
- Feedback Loop Limit (policy — orchestrator counter): When Phase 5 FAILs, allow a maximum of 2 Phase 4 feedback loops; escalate to user if exceeded
- Phase 5 PASS Required (policy — skill warning): Do not proceed to Phase 6 without Phase 5 PASS (final-compliance.md verdict=PASS required)
- Phase 7 Exempt: Phase 7 is exempt from pipeline rules — free exploration allowed without pipeline Gate
- PPA-Opt Needs Phase 5 PASS (policy — skill warning): Do not start DC-based PPA optimization without Phase 5 PASS
- PPA-Opt Iteration Gate (policy — orchestrator/skill internal guard): Every PPA-Opt iteration must pass equivalence + smoke before the patch is accepted; on failure, roll back
Core Design Principles
Hierarchical Spec Compliance
Lower stages must never violate the spec of upper stages.
Requirements(Spec) → Architecture → μArch → RTL → Verification
↑ Each stage must comply with the decisions of the stage to its left
- Architecture must implement all required functions from the Spec
- μArch must comply with Architecture's block boundaries and interfaces
- RTL must faithfully implement the μArch design
- Verification must validate against the original Spec requirements
- If functional changes needed → return to the upstream stage and obtain user approval
Design priorities (RTL quality criteria):
- Functional Correctness (highest)
- Interface Compliance
- Timing/Performance
- Area/Power
Cascading Quality
Higher abstraction levels require MORE iterative refinement.
| Phase |
Mandatory Review Iterations |
| Phase 1: Research |
3 mandatory rounds (chief-coordinated) |
| Phase 2: Architecture |
Dynamic convergence (min 2, max 5 rounds; memory, performance, ref model) |
| Phase 3: μArch |
Dynamic convergence (min 2, max 5 rounds; performance, interface, memory) |
| Phase 4: RTL |
10-Wave pipeline (write→lint→review→fix→test→CDC→protocol→refactor→gate) |
| Phase 5: Verify |
Sub-phase parallel |
Phase 2-3 converge when finding_delta < 0.1 and all critical issues are resolved.
Time is NOT a constraint at upper levels. Spend extra review rounds perfecting architecture and μArch.
Asymmetric Phase Gate Design
Exit gates are strict, entry gates are flexible.
- Exit gates enforce artifact existence (e.g., Stream B files for P4→P5, iron-requirements.json for P1→P2). Missing artifacts → FAIL with specific file list.
- Entry gates scan upstream artifacts and emit WARNING for missing items, but proceed with adaptive scope reduction. Only
rat-init-project is a hard entry block. Note: orchestrator "Context Preload" checks (verifying physical existence of input files a phase MUST read) use STOP, not WARNING — phases cannot function without their input data. This is distinct from entry gates which assess quality/completeness.
- Feedback loops are capped (max 2 iterations for P5→P4), then escalate to user via AskUserQuestion.
This ensures downstream phases never receive incomplete inputs, while allowing upstream-incomplete work to proceed with reduced scope.
Document-as-Memory
Design artifacts serve as persistent memory across phases and agents.
iron-requirements.json + open-requirements.json → arch-designer → architecture.md → uarch-designer → docs/phase-3-uarch/*.md → rtl-coder
reviews/phase-N/ → Quality Gate → next phase proceeds or fails
- Each phase reads upstream documents as input context and writes downstream documents as output
- No agent needs to "remember" another agent's output — it reads the document
- Enables resumability: any phase can restart by re-reading its input documents
- Each phase generates
phase-N-summary.md on completion for downstream context efficiency
Cross-Phase Artifact Functional Consistency
Verification artifacts MUST be functionally validated against their upstream reference —
not merely checked for existence and compilation. Phase 1 (Research) and Phase 6 (Design Note)
are excluded as they produce no executable verification artifacts.
Phase 2 refC ──compare──→ external golden C model (if provided, e.g., vendor_ref/) OR Phase 1 requirements
Phase 3 BFM ──compare──→ Phase 2 refC (shared test vectors, per-block output match) [enforced: G4b gate]
Phase 4 unit ──compare──→ Phase 2 refC golden output [enforced: DPI-C/file; gap: BFM I/O logs]
Phase 5 TB ──compare──→ Phase 1 requirements via Phase 2 refC as oracle [enforced]
- Validation gates must verify functional correctness (output comparison), not just
structural correctness (file exists + compiles)
- If external golden C model is provided (e.g., JM/HM, vendor model): Phase 2 refC AND Phase 3 BFM must both match it
- If no external golden: each phase builds on Phase 1 requirements with progressively more detail
- A verification artifact that compiles but produces wrong output is worse than no artifact —
it provides false confidence and propagates errors downstream
- BFM validation gate (P3 G4b) must run both models with shared test vectors, compare per-block
outputs against refC, and FAIL on mismatch before proceeding to review
- P3 G4b is the most explicit gate; P4/P5 enforce refC comparison via existing policies; gap: P4 does not yet consume BFM I/O logs
Phase-Aware Invocation Cues (Dynamic Spawn Basis)
Use these cues to justify dynamic spawning of the four high-value specialists:
| Agent |
Primary Phases |
Invoke When |
rtl-planner |
P3 (μArch), P3→P4 handoff |
Task dependency is unclear, repeated rework loops appear, or critical-path ordering blocks convergence |
clock-architect |
P3 (μArch), P4 (CDC fix loop), P5 (CDC/top signoff) |
Multi-clock/generated-clock/PLL/MMCM/mux/gating strategy needs design review or CDC root cause points to clock architecture |
ref-model-reviewer |
P2 (ref model build/review) |
C reference model is newly created/updated and must be validated for algorithm fidelity, numerical precision, and UB safety before oracle use. P5 oracle confidence is inherited from P2 validation — no separate P5 trigger unless ref model is modified during P5 |
equivalence-checker |
P4 (refactor), review-refactor workflow, P5B (silicon validation) |
Change is declared behavior-preserving, or synthesis/ECO/refactor introduces semantic drift risk requiring RTL-vs-RTL or RTL-vs-netlist proof |
Phase 1 Proactive Requirement Clarification
If the user's request is ambiguous or incomplete in Phase 1, proactively use AskUserQuestion to clarify.
When to use AskUserQuestion:
- Target resolution/frame rate/codec not specified
- Interface protocol (AXI/APB/custom) not specified
- Clock frequency or timing constraints unclear
- Functional scope ambiguous (encoder/decoder/both, profiles/levels)
- spec-analyst flags
[AMBIGUITY] or [CONFLICT]
When NOT to use:
- User provided a detailed spec document
- Standard has only one valid interpretation
- Matter decided by design convention (e.g., active-low reset)
Mandatory Verification After RTL Changes
This rule applies to ALL tasks that modify .sv/.svh/.v/.vh files.
| Step |
Description |
Required |
| 1. Modify |
Change RTL code |
Required |
| 2. Lint |
Pass verilator --lint-only -Wall |
Required |
| 3. TB |
Create or update testbench for modified module |
Required |
| 4. Sim |
Run cocotb/verilator simulation and PASS |
Required |
Anti-pattern (prohibited): RTL modify → lint pass → "done"
Correct flow: RTL modify → lint pass → TB create/update → simulation PASS → "done"
Gate signals:
- Verification done:
touch .rat/state/rtl-verify-done
- Waiver (non-functional changes):
touch .rat/state/rtl-verify-waiver
Phase 4 Parallel Streams:
- Stream A: RTL coding (wave-based) → lint → unit TB → unit sim
- Stream B: SVA skeletons + CDC topology + TB skeletons (from uarch, parallel with Stream A)
6+1 Phase Design Pipeline (+Phase 7 Optional)
Phase 1: Research → docs/phase-1-research/ (spec, domain knowledge)
Phase 2: Arch/Ref → docs/phase-2-architecture/ + refc/ (C golden)
Phase 3: μArch/TLM → docs/phase-3-uarch/ + BFM
Phase 4: RTL+Unit → rtl/{module}/ + sim/{module}/ + docs/phase-4-rtl/
Phase 5: Verify → formal/ + docs/phase-5-verify/
Phase 6: Design Note → reviews/phase-6-review/
Phase 7: Exploration → docs/phase-7-exploration/ (optional, no pipeline rules)
Artifact separation:
docs/phase-N-*/ = Design artifacts (guides for next phase)
reviews/phase-N-*/ = Verdict documents (upper spec compliance check)
4-Tier Testing Hierarchy
| Tier |
Name |
Skill |
Prerequisite |
| 1 |
Smoke Test |
rtl-p4-implement Wave 4 |
Lint pass |
| 2 |
Unit Test |
rtl-p4s-unit-test |
Tier 1 pass |
| 3 |
Module Regression |
rtl-p5s-func-verify |
Tier 2 pass |
| 4 |
Integration |
rtl-p5s-integration-test |
Tier 3 pass or PARTIAL_PASS |
Coverage targets (Tier 3): line ≥ 90%, toggle ≥ 80%, FSM ≥ 70%
Coding Conventions (Core Overrides)
- Port prefix:
i_, o_, io_ required (NOT suffix _i, _o). Clock/reset are exceptions (no prefix)
- Clock:
clk (single) or {domain}_clk (multiple). Reset: rst_n or {domain}_rst_n. Active-low async
- No CamelCase: Parameters →
ALL_CAPS. Localparam → L_ prefix. Enum values → ALL_CAPS. All identifiers snake_case or ALL_CAPS
- Language Standards: SV RTL IEEE 1800-2009, SV Verification IEEE 1800-2012, C ref model C11, C++ BFM C++17
- Convention skills are loaded by writer agents via their
skills: frontmatter (rtl-coder→systemverilog, bfm-dev→systemc, testbench-dev/sva-extractor/protocol-checker→systemverilog-assertion/uvm); naming basics also enforced by the deployed .claude/rules file on .sv access
Full coding rules: .claude/rules/rtl-coding-conventions.md
Verification gate rules: .claude/rules/rtl-verification-gate.md
Diagram rules: <markdown_diagram_rule> in CLAUDE.md (or .claude/rules/diagram-rules.md fallback)
Domain Packages
Domain packages provide pre-built knowledge bases. Active packages:
| Package |
Path |
Manifest |
Status |
| video-codec |
domain-packages/video-codec/ |
domain-packages/video-codec/manifest.json |
stable |
| video-processing |
domain-packages/video-processing/ |
domain-packages/video-processing/manifest.json |
active |
Domain expert agents MUST read relevant knowledge files from domain-packages/{domain}/knowledge/ BEFORE producing analysis.
Each agent's prompt lists the specific files to read in its "Before analysis, read domain knowledge files:" section.
Hook-Based Enforcement
| Hook |
Event |
Purpose |
rtl-orchestrator-inject.sh |
SessionStart |
Inject routing rules and pipeline rules |
rtl-edit-tracker.sh |
PostToolUse:Edit/Write/Bash |
Track RTL file modifications |
rtl-skill-activation.sh |
PreToolUse:Skill |
Activate skill completion loop + same-skill re-invocation counter reset |
stop-gate.sh |
Stop |
Autopilot escalation ladder enforcement + dynamic prompt injection |
rtl-verify-stop-gate.sh |
Stop |
RTL verification gate |
rtl-p6-cascade-gate.sh |
Stop |
Phase 6 cascade enforcement + document mtime verification |
rtl-skill-completion-gate.sh |
Stop |
Skill completion escalation ladder enforcement (N→2N→last-chance→user escalation) |
rtl-coverage-exclusion-gate.sh |
Stop |
Coverage exclusion approval enforcement (non-standard bins require user confirmation) |
Stop hook order (current): rtl-verify-stop-gate → rtl-p6-cascade-gate → rtl-skill-completion-gate → rtl-coverage-exclusion-gate → stop-gate.
(Authoritative registration + order: hooks/hooks.json. Full 14-hook inventory: CLAUDE.md Hook-Based Enforcement table.)
State Files
Hook-enforced (quality gates):
.rat/state/rat-auto-design-state.json — Full pipeline progress (stop-gate)
.rat/state/rat-auto-design-state.json::orchestration_control — Active gate counters/strategy (N→2N→last-chance) and dynamic prompt payload
.rat/state/rtl-verify-done — RTL verification completion gate (rtl-verify-stop-gate)
.rat/state/rtl-verify-waiver — Verification waiver (rtl-verify-stop-gate)
.rat/state/skill-active.json — Skill completion loop state (rtl-skill-activation, rtl-skill-completion-gate)
.rat/state/phase6-stale — Phase 6 cascade marker (rtl-edit-tracker, rtl-p6-cascade-gate)
.rat/state/phase6-cascade-done — Phase 6 cascade completion (rtl-p6-cascade-gate)
.rat/state/rtl-modified-files.txt — Modified RTL file tracking (rtl-edit-tracker, rtl-verify-stop-gate)
Agent-managed (orchestrator resumability):
.rat/state/rat-p1p3-spec-uarch-state.json — Spec-to-μArch pipeline progress
.rat/state/rat-p4p5-impl-verify-state.json — μArch-to-Verify pipeline progress
.rat/state/rat-dse-state.json — DSE pipeline progress
.rat/state/feedback-loop-state.json — Phase 5→4 feedback loop tracking
.rat/state/{module}-phase-3-complete.json — Per-module Phase 3 completion marker
Templates:
${CLAUDE_PLUGIN_ROOT}/skills/rat-auto-design/templates/autopilot-state.json (or skills/rat-auto-design/templates/autopilot-state.json in repo context) — v3.0 state schema with orchestration_control
${CLAUDE_PLUGIN_ROOT}/skills/rat-auto-design/templates/escalation-prompts.json (or skills/rat-auto-design/templates/escalation-prompts.json in repo context) — fallback prompt templates for ladder transitions
SessionStart Hook Export (SSOT)
This block is the single source for SessionStart routing injection.
scripts/sync_orchestrator_inject.sh copies it into hooks/rtl-orchestrator-inject.sh.
RTL Agent Team — Active Project Rules
Pipeline Rules (Rule 5 hard-enforced; others advisory)
- No RTL coding without specification (run spec-analyst first) — policy
- No Testbench without Reference Model — policy
- No synthesis without RTL code — policy
- No Formal verification without passing Lint — policy (skill warning)
- No completion after RTL modification without functional verification (lint alone is insufficient) — HARD (rtl-verify-stop-gate.sh)
- No Phase 5 without per-module unit tests upon Phase 4 completion + Stream B early verification artifacts — policy (skill warning)
- Phase 5 FAIL → max 2 Phase 4 feedback loops; escalate to user if exceeded — policy (orchestrator counter)
- No Phase 6 without Phase 5 PASS (final-compliance.md verdict=PASS required) — policy (skill warning)
- Phase 7 is exempt — free exploration allowed without pipeline Gate
- No DC-based PPA optimization without Phase 5 PASS — policy (skill warning)
- Every PPA-Opt iteration must pass equivalence + smoke before the patch is accepted; on failure, roll back — policy (orchestrator guard)
Iron Requirements Protocol
- Each phase produces iron-requirements.json (binding constraints for downstream) and open-requirements.json (homework for next phase)
- Iron requirements from upper phases MUST NOT be violated
- Authority hierarchy: P1(functional) > P2(architecture) > P3(micro-arch)
- Violation triggers graduated escalation; infeasibility triggers Upstream Challenge with quantitative PPA evidence
- Phase exit requires compliance-checker PASS against all upstream iron
Routing (key patterns → Action Skill)
Always route user intent to Action Skills first. Orchestrators are internal and spawned by skills.
| Pattern |
Route To |
| RTL design, chip design, full pipeline |
/rtl-agent-team:rat-auto-design |
| setup tools, EDA setup, install tools |
/rtl-agent-team:rat-setup |
| init project, initialize project, new project |
/rtl-agent-team:rat-init-project |
| debug, diagnostics, plugin status |
/rtl-agent-team:rat-plugin-debug |
| tutorial, getting started, how to use |
/rtl-agent-team:rat-tutorial |
| spec analysis, requirements, research |
/rtl-agent-team:p1-spec-research |
| codec, H.264, H.265, domain expert |
/rtl-agent-team:domain-consult |
| architecture design (RTL context) |
/rtl-agent-team:p2-arch-design |
| architecture review |
/rtl-agent-team:arch-review |
| reference model, C model |
/rtl-agent-team:ref-model |
| BFM, bus functional model, SystemC |
/rtl-agent-team:bfm-develop |
| microarchitecture, uarch |
/rtl-agent-team:rtl-p3-uarch-design |
| DSE, design space exploration |
/rtl-agent-team:rat-dse |
| Phase 1 team, research team, parallel research |
/rtl-agent-team:rtl-p1-research-team |
| Phase 2 team, arch team, parallel architecture |
/rtl-agent-team:rtl-p2-arch-team |
| Phase 3 team, uarch team, parallel uarch |
/rtl-agent-team:rtl-p3-uarch-team |
| spec to uarch team, Phase 1-3 team |
/rtl-agent-team:rat-p1p3-spec-uarch-team |
| spec to uarch, Phase 1-3, design only |
/rtl-agent-team:rat-p1p3-spec-uarch |
| uarch to verify, Phase 4-5, RTL from uarch |
/rtl-agent-team:rat-p4p5-impl-verify |
| RD eval, BD-PSNR, codec quality |
/rtl-agent-team:codec-rd-eval |
| decoder conformance, conformance stream |
/rtl-agent-team:codec-conformance-eval |
| rapid rtl, P4 rapid, sanity integration, fast implementation loop |
/rtl-agent-team:rtl-p4-rapid-impl |
| bug fix, RTL fix, RTL bug |
/rtl-agent-team:rtl-p4s-bugfix |
| RTL coding, module implementation |
/rtl-agent-team:rtl-p4-implement |
| Phase 4 team, implement team, parallel implement |
/rtl-agent-team:rtl-p4-implement-team |
| block parallel, worktree parallel, 6-block |
/rtl-agent-team:rtl-p4-block-parallel |
| refactoring (RTL context) |
/rtl-agent-team:rtl-p4s-refactor |
| unit test (RTL context) |
/rtl-agent-team:rtl-p4s-unit-test |
| IP instance, IP integration |
/rtl-agent-team:rtl-ip-instantiate |
| lint, lint check |
/rtl-agent-team:rtl-lint-check |
| synthesis, yosys, SDC |
/rtl-agent-team:rtl-synth-check |
| RTL documentation |
/rtl-agent-team:rtl-document |
| IP-XACT, register map |
/rtl-agent-team:rtl-ipxact-gen |
| functional closure, P5A, deep functional verification, hierarchical functional closure |
/rtl-agent-team:rtl-p5a-functional-closure |
| silicon validation, P5B, signoff readiness, timing signoff, post-functional signoff |
/rtl-agent-team:rtl-p5b-silicon-validation |
| Phase 5, verification pipeline |
/rtl-agent-team:rtl-p5-verify |
| Phase 5 team, verify team, parallel verify |
/rtl-agent-team:rtl-p5-verify-team |
| simulation, testbench, cocotb |
/rtl-agent-team:rtl-p5s-func-verify |
| UVM verification, sequence, agent |
/rtl-agent-team:rtl-p5s-uvm-verify |
| performance verification, throughput |
/rtl-agent-team:rtl-p5s-perf-verify |
| formal, SVA, assertion |
/rtl-agent-team:rtl-p5s-sva-check |
| CDC, clock domain |
/rtl-agent-team:rtl-p5s-cdc-verify |
| AXI, APB, AHB, protocol |
/rtl-agent-team:rtl-p5s-protocol-verify |
| coverage |
/rtl-agent-team:rtl-p5s-coverage-analyze |
| PPA optimize, DC PPA, power/timing/area op |
|
…(truncated)
1---2name: rtl-orchestrate3description: Internal maintainer SSOT for routing + hook export. Not loadable at runtime.4---56# RTL Design Flow — Orchestration Reference78Complete reference for orchestrating the RTL design pipeline. Use this when:9- Unsure which skill or agent to invoke for a given task10- Need the full routing table (natural language → skill mapping)11- Need the complete agent delegation matrix12- Want to review the design pipeline rules and principles1314**This skill is informational — it injects routing context, not an action workflow.**1516---1718## Skill Routing Table1920When RTL/HDL/FPGA/ASIC related tasks are detected, route to **Action Skills first**.21Orchestrator agents are internal execution units spawned only by Action Skills.2223**Invocation types:**24- **Action Skill**: user-facing entry point via `Skill(skill="rtl-agent-team:XXX")`25- **Convention**: loaded by writer agents via their `skills:` frontmatter, not user-invocable26- **Internal Reference**: non-user-facing skill used for routing/context export only2728| Pattern Detected | Route To | Type |29|-----------|------------|------|30| **--- Full Pipeline ---** | | |31| "RTL design", "verilog", "FPGA", "ASIC", "chip design", "rat-auto-design" | `/rtl-agent-team:rat-auto-design` | Action Skill |32| "setup tools", "install tools", "EDA setup", "check tools", "docker image", "EDA docker" | `/rtl-agent-team:rat-setup` | Action Skill |33| "init project", "initialize project", "new project", "project init" | `/rtl-agent-team:rat-init-project` | Action Skill |34| "debug", "diagnostics", "plugin status", "rat debug", "tool check" | `/rtl-agent-team:rat-plugin-debug` | Action Skill |35| "tutorial", "getting started", "how to use", "help me learn" | `/rtl-agent-team:rat-tutorial` | Action Skill |36| **--- Phase 1: Research ---** | | |37| "spec analysis", "requirements", "paper research", "research" | `/rtl-agent-team:p1-spec-research` | Action Skill |38| "codec consultation", "H.264", "H.265", "domain expert" | `/rtl-agent-team:domain-consult` | Action Skill |39| "intra prediction", "angular mode", "planar mode", "DC mode" | `/rtl-agent-team:domain-consult` → `vcodec-intra-pred-expert` | Action Skill |40| "motion estimation", "IME", "FME", "TZ search", "MV prediction", "AMVP" | `/rtl-agent-team:domain-consult` → `vcodec-me-expert` | Action Skill |41| "motion compensation", "sub-pel interpolation", "bi-prediction", "weighted prediction" | `/rtl-agent-team:domain-consult` → `vcodec-mc-expert` | Action Skill |42| **--- Phase 2: Architecture ---** | | |43| "architecture design" (RTL context) | `/rtl-agent-team:p2-arch-design` | Action Skill |44| "architecture review", "arch review" | `/rtl-agent-team:arch-review` | Action Skill |45| "reference model", "ref model", "C model" | `/rtl-agent-team:ref-model` | Action Skill |46| "BFM", "bus functional model", "SystemC model" | `/rtl-agent-team:bfm-develop` | Action Skill |47| **--- Phase 3: μArch ---** | | |48| "microarchitecture", "μArch", "uarch", "pipeline design" | `/rtl-agent-team:rtl-p3-uarch-design` | Action Skill |49| **--- Pipeline Composition ---** | | |50| "DSE", "design space exploration", "algorithm study", "architecture comparison", "iterative exploration" | `/rtl-agent-team:rat-dse` | Action Skill |51| "Phase 1 team", "research team", "parallel research" | `/rtl-agent-team:rtl-p1-research-team` | Action Skill |52| "Phase 2 team", "arch team", "parallel architecture" | `/rtl-agent-team:rtl-p2-arch-team` | Action Skill |53| "Phase 3 team", "uarch team", "parallel uarch" | `/rtl-agent-team:rtl-p3-uarch-team` | Action Skill |54| "spec to uarch team", "Phase 1-3 team", "parallel design pipeline" | `/rtl-agent-team:rat-p1p3-spec-uarch-team` | Action Skill |55| "spec to uarch", "design only", "Phase 1-3", "design documents only" | `/rtl-agent-team:rat-p1p3-spec-uarch` | Action Skill |56| "uarch to verify", "implement and verify", "Phase 4-5", "RTL from uarch" | `/rtl-agent-team:rat-p4p5-impl-verify` | Action Skill |57| "RD eval", "BD-PSNR", "BD-rate", "codec quality", "algorithm quality evaluation" | `/rtl-agent-team:codec-rd-eval` | Action Skill |58| "decoder conformance", "conformance stream", "conformance test", "decoder verify" | `/rtl-agent-team:codec-conformance-eval` | Action Skill |59| **--- Coding Conventions (loaded via writer-agent `skills:` frontmatter) ---** | | |60| `.sv`, `.svh`, `.v`, `.vh` RTL code generation | `systemverilog` (agent-loaded: rtl-coder, testbench-dev, ppa-optimizer-dc) | Convention |61| `.sv`, `.sva` (SVA, assertion, bind), formal assertion | `systemverilog-assertion` (agent-loaded: sva-extractor, protocol-checker, testbench-dev) | Convention |62| UVM testbench, agent, sequence generation | `uvm` (agent-loaded: testbench-dev) | Convention |63| `.cpp`, `.h` (SystemC/TLM), Phase 2/3 | `systemc` (agent-loaded: bfm-dev) | Convention |64| **--- Phase 4: RTL ---** | | |65| "rapid rtl", "P4 rapid", "sanity integration", "fast implementation loop" | `/rtl-agent-team:rtl-p4-rapid-impl` | Action Skill |66| "bug fix", "RTL fix", "RTL bug", "functional error" | `/rtl-agent-team:rtl-p4s-bugfix` | Action Skill |67| "RTL coding", "module implementation", "SV writing" | `/rtl-agent-team:rtl-p4-implement` | Action Skill |68| "Phase 4 team", "implement team", "parallel implement" | `/rtl-agent-team:rtl-p4-implement-team` | Action Skill |69| "block parallel", "worktree parallel", "6-block", "block-parallel Phase 4" | `/rtl-agent-team:rtl-p4-block-parallel` | Action Skill |70| "refactoring", "RTL refactoring", "code cleanup" (RTL context) | `/rtl-agent-team:rtl-p4s-refactor` | Action Skill |71| "SV unit test", "unit test" (RTL context) | `/rtl-agent-team:rtl-p4s-unit-test` | Action Skill |72| "IP instance", "IP integration", "submodule connection" | `/rtl-agent-team:rtl-ip-instantiate` | Action Skill |73| "lint", "lint check" (RTL context) | `/rtl-agent-team:rtl-lint-check` | Action Skill |74| "synthesis", "yosys", "SDC" | `/rtl-agent-team:rtl-synth-check` | Action Skill |75| "documentation", "RTL docs" | `/rtl-agent-team:rtl-document` | Action Skill |76| "IP-XACT", "ipxact", "register map generation" | `/rtl-agent-team:rtl-ipxact-gen` | Action Skill |77| **--- Phase 5: Verify ---** | | |78| "functional closure", "P5A", "deep functional verification", "hierarchical functional closure" | `/rtl-agent-team:rtl-p5a-functional-closure` | Action Skill |79| "silicon validation", "P5B", "signoff readiness", "timing signoff", "post-functional signoff" | `/rtl-agent-team:rtl-p5b-silicon-validation` | Action Skill |80| "Phase 5", "verification pipeline", "extensive verification" | `/rtl-agent-team:rtl-p5-verify` | Action Skill |81| "Phase 5 team", "verify team", "parallel verify" | `/rtl-agent-team:rtl-p5-verify-team` | Action Skill |82| "simulation", "functional verification", "testbench", "cocotb" | `/rtl-agent-team:rtl-p5s-func-verify` | Action Skill |83| "UVM", "UVM verification", "sequence", "agent" (UVM context) | `/rtl-agent-team:rtl-p5s-uvm-verify` | Action Skill |84| "performance verification", "throughput", "latency measurement" | `/rtl-agent-team:rtl-p5s-perf-verify` | Action Skill |85| "formal", "SVA", "assertion" | `/rtl-agent-team:rtl-p5s-sva-check` | Action Skill |86| "CDC", "clock domain" | `/rtl-agent-team:rtl-p5s-cdc-verify` | Action Skill |87| "AXI", "APB", "AHB", "protocol" (RTL context) | `/rtl-agent-team:rtl-p5s-protocol-verify` | Action Skill |88| "coverage" | `/rtl-agent-team:rtl-p5s-coverage-analyze` | Action Skill |89| PPA optimize, DC PPA, power/timing/area optimize | `/rtl-agent-team:rtl-ppa-optimize-dc` | Action Skill |90| PPA auto-loop, ultraloop PPA, converge PPA | `/rtl-agent-team:rat-ultraloop-ppa` | Action Skill |91| **--- Phase 6: Design Note ---** | | |92| "design review", "Phase 6", "design note", "code review documentation" | `/rtl-agent-team:rtl-p6-design-review` | Action Skill |93| **--- Phase 7: Exploration (optional) ---** | | |94| "free exploration", "exploration", "Phase 7", "improvement exploration" | `/rtl-agent-team:rtl-p7-exploration` | Action Skill |95| **--- Autonomous Loops ---** | | |96| "ultraloop", "autonomous loop", "unattended", "퇴근 모드" | `/rtl-agent-team:rat-ultraloop` | Action Skill |97| **--- Other Verification ---** | | |98| "LLM code review", "safe refactor", "review and refactor workflow" | `/rtl-agent-team:rtl-review-refactor` | Action Skill |99| "integration test", "cross-module test", "end-to-end test", "Tier 4" | `/rtl-agent-team:rtl-p5s-integration-test` | Action Skill |100| "regression", "multi-seed" | `/rtl-agent-team:rtl-p5s-func-verify` (Tier 3) | Action Skill |101| "RTL conformance", "RTL conformance test", "RTL golden comparison" | `/rtl-agent-team:rtl-conformance-test` | Action Skill |102| "bug reproduction", "bug repro", "waveform debug" | `/rtl-agent-team:rtl-bug-repro` | Action Skill |103| "model consistency", "RTL-model comparison" | `/rtl-agent-team:rtl-model-consistency` | Action Skill |104| "cross-phase", "contract validation", "spec consistency", "phase boundary check" | `/rtl-agent-team:cross-phase-contract-validator` | Action Skill |105| "cross-review", "codex review", "2nd reviewer", "second opinion", "cross check" | `/rtl-agent-team:codex-cross-review` | Action Skill |106| "routing help", "which skill to use", "routing reference" | `rtl-orchestrate` (internal context only) | Internal Reference |107108### Action Skill → Orchestrator Agent Mapping (internal)109110Action Skills are user-facing. Each action delegates to one orchestrator agent, which loads one policy skill.111112| Action Skill | Orchestrator Agent | Policy Skill |113|--------------|--------------------|-------------|114| `rat-auto-design` | `autopilot-orchestrator` | `rat-auto-design-policy` |115| `p1-spec-research` | `p1-research-orchestrator` | `p1-spec-research-policy` |116| `p2-arch-design` | `p2-arch-orchestrator` | `p2-arch-design-policy` |117| `rtl-p3-uarch-design` | `p3-uarch-orchestrator` | `rtl-p3-uarch-policy` |118| `rtl-p4-implement` | `p4-implement-orchestrator` | `rtl-p4-implement-policy` |119| `rtl-p4-implement-team` | `p4-implement-team-orchestrator` | `rtl-p4-implement-policy` |120| `rtl-p4-rapid-impl` | `p4-rtl-sanity-orchestrator` | `rtl-p4-rapid-impl-policy` |121| `rtl-p4s-bugfix` | `p4s-bugfix-orchestrator` | `rtl-p4s-bugfix-policy` |122| `rtl-p4s-refactor` | `p4s-refactor-orchestrator` | `rtl-p4s-refactor-policy` |123| `rtl-p4s-unit-test` | `p4s-unit-test-orchestrator` | `rtl-p4s-unit-test-policy` |124| `rtl-p5-verify` | `p5-verify-orchestrator` | `rtl-p5-verify-policy` |125| `rtl-p5-verify-team` | `p5-verify-team-orchestrator` | `rtl-p5-verify-policy` |126| `rtl-p5a-functional-closure` | `p5a-functional-closure-orchestrator` | `rtl-p5a-functional-closure-policy` |127| `rtl-p5b-silicon-validation` | `p5b-silicon-validation-orchestrator` | `rtl-silicon-validation-policy` |128| `rtl-p5s-func-verify` | `p5s-func-verify-orchestrator` | `rtl-p5s-func-verify-policy` |129| `rtl-p5s-sva-check` | `p5s-sva-orchestrator` | `rtl-p5s-sva-policy` |130| `rtl-p5s-cdc-verify` | `p5s-cdc-orchestrator` | `rtl-p5s-cdc-policy` |131| `rtl-p5s-protocol-verify` | `p5s-protocol-orchestrator` | `rtl-p5s-protocol-policy` |132| `rtl-p5s-perf-verify` | `p5s-perf-orchestrator` | `rtl-p5s-perf-policy` |133| `rtl-p5s-coverage-analyze` | `p5s-coverage-orchestrator` | `rtl-p5s-coverage-policy` |134| `rtl-p5s-uvm-verify` | `p5s-uvm-orchestrator` | `rtl-p5s-uvm-policy` |135| `rtl-p5s-integration-test` | `p5s-integration-orchestrator` | `rtl-p5s-integration-test-policy` |136| `rtl-p6-design-review` | `p6-review-orchestrator` | `rtl-p6-design-review-policy` |137| `rtl-p7-exploration` | `p7-exploration-orchestrator` | `rtl-p7-exploration-policy` |138| `rtl-review-refactor` | `review-refactor-orchestrator` | `code-review-policy`, `refactor-classification-policy`, `verification-recheck-policy` |139| `codex-cross-review` | `codex-cross-reviewer` | — (self-contained) |140| `rat-dse` | `dse-orchestrator` | `rat-dse-policy` |141| `rtl-p1-research-team` | `p1-research-team-orchestrator` | `p1-spec-research-policy` |142| `rtl-p2-arch-team` | `p2-arch-team-orchestrator` | `p2-arch-design-policy` |143| `rtl-p3-uarch-team` | `p3-uarch-team-orchestrator` | `rtl-p3-uarch-policy` |144| `rat-p1p3-spec-uarch` | `spec-to-uarch-orchestrator` | `rat-p1p3-spec-uarch-policy` |145| `rat-p1p3-spec-uarch-team` | `spec-to-uarch-team-orchestrator` | `rat-p1p3-spec-uarch-policy` |146| `rat-p4p5-impl-verify` | `uarch-to-verify-orchestrator` | `rat-p4p5-impl-verify-policy` |147| `rtl-p4-block-parallel` | `p4-block-parallel-coordinator` | `rtl-block-interface-policy`, `rtl-block-contract-test-policy` |148| `rat-ultraloop` | — (skill-driven, dispatches `ultraloop-reviewer` for review cycles) | — |149150**Cross-cutting policy skills** (referenced by specialist agents, not tied to a single orchestrator):151152| Policy Skill | Referenced By | Purpose |153|-------------|---------------|---------|154| `test-design-policy` | `testbench-dev`, `test-plan-writer` | Systematic test case design methodology (ECP, BVA, state transition, decision table) |155156**Specialist agents (spawned by orchestrators, not user-invocable):**157158| Agent | Purpose | Spawned By |159|-------|---------|-----------|160| `test-plan-writer` | Test plan generation from uarch spec (ECP/BVA/STT/DT) | Spawned by P4 orchestrators in Wave 0 Step 0b |161162---163164## Agent Delegation Table165166RTL tasks must be delegated to specialized agents. This applies to tasks handling `.sv`, `.svh`, `.v`, `.vh` files or using EDA tools.167168### Design Agents169| Task Type | Agent | Model |170|----------|-------|-------|171| Specification analysis | `spec-analyst` | Opus |172| Architecture design | `arch-designer` | Opus |173| Architecture review | `rtl-architect` | Opus |174| μArch design | `uarch-designer` | Opus |175| RTL coding | `rtl-coder` | Opus |176| RTL review | `rtl-critic` | Opus |177| Design planning | `rtl-planner` | Opus |178| Codebase exploration | `rtl-explorer` | Opus |179180### Verification Agents181| Task Type | Agent | Model |182|----------|-------|-------|183| Testbench development | `testbench-dev` | Opus |184| Functional verification | `func-verifier` | Opus |185| Performance verification | `perf-verifier` | Opus |186| SVA extraction/writing | `sva-extractor` | Opus |187| Protocol compliance | `protocol-checker` | Opus |188| Coverage analysis | `coverage-analyst` | Opus |189| Waveform analysis | `waveform-analyzer` | Opus |190191### Expert Review Agents (spawn directly or through skills)192| Task Type | Agent | Model |193|----------|-------|-------|194| CDC design review | `cdc-reviewer` | Opus |195| Protocol design review | `protocol-reviewer` | Opus |196| Formal quality review | `formal-reviewer` | Opus |197| Power analysis | `power-analyzer` | Opus |198| Synthesis results review | `synthesis-reviewer` | Opus |199| UVM TB quality review | `uvm-reviewer` | Opus |200| Requirement traceability | `requirement-tracer` | Opus |201| cocotb TB quality review | `cocotb-reviewer` | Opus |202| Reference model review | `ref-model-reviewer` | Opus |203| Regression analysis | `regression-analyzer` | Opus |204| Equivalence checking | `equivalence-checker` | Opus |205| Integration verification | `integration-verifier` | Opus |206| Hardware security review | `security-reviewer` | Opus |207| DFT/scan chain/BIST/JTAG | `dft-designer` | Opus |208| Clock architecture/PLL review | `clock-architect` | Opus |209210### Phase 6 Agents211| Task Type | Agent | Model |212|----------|-------|-------|213| Code quality review | `code-quality-reviewer` | Opus |214| Design quality review | `design-quality-reviewer` | Opus |215| Design document writing | `design-note-writer` | Opus |216| Improvement analysis | `improvement-analyst` | Opus |217218### Orchestrator Agents (pipeline coordinators)219| Pipeline | Agent | Policy Skill |220|----------|-------|-------------|221| Full pipeline (P1→P6) | `autopilot-orchestrator` | `rat-auto-design-policy` |222| Phase 1: Research | `p1-research-orchestrator` | `p1-spec-research-policy` |223| Phase 2: Architecture | `p2-arch-orchestrator` | `p2-arch-design-policy` |224| Phase 3: μArch | `p3-uarch-orchestrator` | `rtl-p3-uarch-policy` |225| Phase 4: RTL Implementation | `p4-implement-orchestrator` | `rtl-p4-implement-policy` |226| Phase 1: Research (Team) | `p1-research-team-orchestrator` | `p1-spec-research-policy` |227| Phase 2: Architecture (Team) | `p2-arch-team-orchestrator` | `p2-arch-design-policy` |228| Phase 3: μArch (Team) | `p3-uarch-team-orchestrator` | `rtl-p3-uarch-policy` |229| Phase 4: RTL Implementation (Team) | `p4-implement-team-orchestrator` | `rtl-p4-implement-policy` |230| Phase 4: Rapid RTL + Sanity | `p4-rtl-sanity-orchestrator` | `rtl-p4-rapid-impl-policy` |231| Phase 4: Bug Fix | `p4s-bugfix-orchestrator` | `rtl-p4s-bugfix-policy` |232| Phase 4: Unit Test | `p4s-unit-test-orchestrator` | `rtl-p4s-unit-test-policy` |233| Phase 5: Verification | `p5-verify-orchestrator` | `rtl-p5-verify-policy` |234| Phase 5: Verification (Team) | `p5-verify-team-orchestrator` | `rtl-p5-verify-policy` |235| Phase 5A: Functional Closure | `p5a-functional-closure-orchestrator` | `rtl-p5a-functional-closure-policy` |236| Phase 5B: Silicon Validation | `p5b-silicon-validation-orchestrator` | `rtl-silicon-validation-policy` |237| Phase 5: Func Verify | `p5s-func-verify-orchestrator` | `rtl-p5s-func-verify-policy` |238| Phase 5: Integration | `p5s-integration-orchestrator` | `rtl-p5s-integration-test-policy` |239| Phase 5: SVA/Formal | `p5s-sva-orchestrator` | `rtl-p5s-sva-policy` |240| Phase 5: CDC | `p5s-cdc-orchestrator` | `rtl-p5s-cdc-policy` |241| Phase 5: Protocol | `p5s-protocol-orchestrator` | `rtl-p5s-protocol-policy` |242| Phase 5: Performance | `p5s-perf-orchestrator` | `rtl-p5s-perf-policy` |243| Phase 5: Coverage | `p5s-coverage-orchestrator` | `rtl-p5s-coverage-policy` |244| Phase 5: UVM | `p5s-uvm-orchestrator` | `rtl-p5s-uvm-policy` |245| Phase 6: Design Review | `p6-review-orchestrator` | `rtl-p6-design-review-policy` |246| LLM Review + Refactor | `review-refactor-orchestrator` | `code-review-policy` + `refactor-classification-policy` + `verification-recheck-policy` |247| DSE | `dse-orchestrator` | `rat-dse-policy` |248| Spec→μArch (P1-3) | `spec-to-uarch-orchestrator` | `rat-p1p3-spec-uarch-policy` |249| Spec→μArch (P1-3 Team) | `spec-to-uarch-team-orchestrator` | `rat-p1p3-spec-uarch-policy` |250| μArch→Verify (P4-5) | `uarch-to-verify-orchestrator` | `rat-p4p5-impl-verify-policy` |251| Phase 4: Block-Parallel | `p4-block-parallel-coordinator` | `rtl-block-interface-policy`, `rtl-block-contract-test-policy` |252| Phase 4: Block Worker | `p4-block-worker` | `rtl-p4-implement-policy` |253| Autonomous Review Loop | `ultraloop-reviewer` | — (READ-ONLY reviewer) |254255### EDA/Infrastructure Agents256| Task Type | Agent | Model |257|----------|-------|-------|258| EDA tool execution | `eda-runner` | Opus |259| Synthesis metrics | `synthesis-reporter` | Opus |260| Lint checking | `lint-checker` | Opus |261| SDC constraint generation | `constraint-writer` | Opus |262| Timing analysis (STA) | `timing-advisor` | Opus |263| CDC static analysis | `cdc-checker` | Opus |264| Clock architecture review | `clock-architect` | Opus |265| DFT design | `dft-designer` | Opus |266| IP-XACT generation | `ipxact-generator` | Opus |267| BFM development | `bfm-dev` | Opus |268| Reference model development | `ref-model-dev` | Opus |269270### Domain Expert Agents271| Task Type | Agent | Model |272|----------|-------|-------|273| Codec chief expert | `vcodec-chief-standard-expert` | Opus |274| Syntax/entropy expert | `vcodec-syntax-entropy-expert` | Opus |275| Intra prediction expert | `vcodec-intra-pred-expert` | Opus |276| Motion estimation expert | `vcodec-me-expert` | Opus |277| Motion compensation expert | `vcodec-mc-expert` | Opus |278| Transform/quantization expert | `vcodec-transform-quant-expert` | Opus |279| Filter/reconstruction expert | `vcodec-filter-recon-expert` | Opus |280| Codec architecture expert | `vcodec-architecture-expert` | Opus |281| Codec performance expert | `video-processing-expert` | Opus |282| Color format expert | `vproc-color-format-expert` | Opus |283| Denoise expert | `vproc-denoise-expert` | Opus |284| Image processing expert | `vproc-image-processing-expert` | Opus |285286---287288## Pipeline Rules (policy + enforcement map)289290These rules define the canonical pipeline order. Rule 5 is hook-enforced291(hard gate); rules 1-4, 6-8 and 10-11 are policy declarations carried through292skill-entry warnings (asymmetric phase gate design — exit strict, entry293flexible). See `CLAUDE.md` "Pipeline Rules" section for the enforcement294column.2952961. **No RTL without Spec** (policy): Do not start RTL coding without a specification (spec-analyst first)2972. **No TB without Ref Model** (policy): Do not write a Testbench without a Reference Model2983. **No Synthesis without RTL** (policy): Do not run synthesis without RTL code2994. **No Formal without Lint** (policy — skill warning): Do not run Formal verification without passing Lint3005. **Verification Required** (HARD — `rtl-verify-stop-gate.sh`): Do not declare completion after RTL modification without functional verification (lint alone is insufficient)3016. **Unit Tests for Phase Gate** (policy — skill warning): Do not proceed to Phase 5 without per-module unit tests upon Phase 4 completion + Stream B early verification artifacts (SVA skeletons, CDC preliminary, TB skeletons)3027. **Feedback Loop Limit** (policy — orchestrator counter): When Phase 5 FAILs, allow a maximum of 2 Phase 4 feedback loops; escalate to user if exceeded3038. **Phase 5 PASS Required** (policy — skill warning): Do not proceed to Phase 6 without Phase 5 PASS (final-compliance.md verdict=PASS required)3049. **Phase 7 Exempt**: Phase 7 is exempt from pipeline rules — free exploration allowed without pipeline Gate30510. **PPA-Opt Needs Phase 5 PASS** (policy — skill warning): Do not start DC-based PPA optimization without Phase 5 PASS30611. **PPA-Opt Iteration Gate** (policy — orchestrator/skill internal guard): Every PPA-Opt iteration must pass equivalence + smoke before the patch is accepted; on failure, roll back307308---309310## Core Design Principles311312### Hierarchical Spec Compliance313Lower stages must never violate the spec of upper stages.314315```316Requirements(Spec) → Architecture → μArch → RTL → Verification317 ↑ Each stage must comply with the decisions of the stage to its left318```319320- Architecture must implement all required functions from the Spec321- μArch must comply with Architecture's block boundaries and interfaces322- RTL must faithfully implement the μArch design323- Verification must validate against the original Spec requirements324- If functional changes needed → return to the upstream stage and obtain user approval325326**Design priorities (RTL quality criteria):**3271. Functional Correctness (highest)3282. Interface Compliance3293. Timing/Performance3304. Area/Power331332### Cascading Quality333Higher abstraction levels require MORE iterative refinement.334335| Phase | Mandatory Review Iterations |336|-------|---------------------------|337| Phase 1: Research | 3 mandatory rounds (chief-coordinated) |338| Phase 2: Architecture | Dynamic convergence (min 2, max 5 rounds; memory, performance, ref model) |339| Phase 3: μArch | Dynamic convergence (min 2, max 5 rounds; performance, interface, memory) |340| Phase 4: RTL | 10-Wave pipeline (write→lint→review→fix→test→CDC→protocol→refactor→gate) |341| Phase 5: Verify | Sub-phase parallel |342343Phase 2-3 converge when finding_delta < 0.1 and all critical issues are resolved.344Time is NOT a constraint at upper levels. Spend extra review rounds perfecting architecture and μArch.345346### Asymmetric Phase Gate Design347Exit gates are strict, entry gates are flexible.348349- **Exit gates** enforce artifact existence (e.g., Stream B files for P4→P5, iron-requirements.json for P1→P2). Missing artifacts → FAIL with specific file list.350- **Entry gates** scan upstream artifacts and emit WARNING for missing items, but proceed with adaptive scope reduction. Only `rat-init-project` is a hard entry block. Note: orchestrator "Context Preload" checks (verifying physical existence of input files a phase MUST read) use STOP, not WARNING — phases cannot function without their input data. This is distinct from entry gates which assess quality/completeness.351- **Feedback loops** are capped (max 2 iterations for P5→P4), then escalate to user via AskUserQuestion.352353This ensures downstream phases never receive incomplete inputs, while allowing upstream-incomplete work to proceed with reduced scope.354355### Document-as-Memory356Design artifacts serve as persistent memory across phases and agents.357358```359iron-requirements.json + open-requirements.json → arch-designer → architecture.md → uarch-designer → docs/phase-3-uarch/*.md → rtl-coder360reviews/phase-N/ → Quality Gate → next phase proceeds or fails361```362363- Each phase reads upstream documents as input context and writes downstream documents as output364- No agent needs to "remember" another agent's output — it reads the document365- Enables resumability: any phase can restart by re-reading its input documents366- Each phase generates `phase-N-summary.md` on completion for downstream context efficiency367368### Cross-Phase Artifact Functional Consistency369Verification artifacts MUST be functionally validated against their upstream reference —370not merely checked for existence and compilation. Phase 1 (Research) and Phase 6 (Design Note)371are excluded as they produce no executable verification artifacts.372373```374Phase 2 refC ──compare──→ external golden C model (if provided, e.g., vendor_ref/) OR Phase 1 requirements375Phase 3 BFM ──compare──→ Phase 2 refC (shared test vectors, per-block output match) [enforced: G4b gate]376Phase 4 unit ──compare──→ Phase 2 refC golden output [enforced: DPI-C/file; gap: BFM I/O logs]377Phase 5 TB ──compare──→ Phase 1 requirements via Phase 2 refC as oracle [enforced]378```379380- **Validation gates must verify functional correctness** (output comparison), not just381 structural correctness (file exists + compiles)382- If external golden C model is provided (e.g., JM/HM, vendor model): Phase 2 refC AND Phase 3 BFM must both match it383- If no external golden: each phase builds on Phase 1 requirements with progressively more detail384- A verification artifact that compiles but produces wrong output is worse than no artifact —385 it provides false confidence and propagates errors downstream386- BFM validation gate (P3 G4b) must run both models with shared test vectors, compare per-block387 outputs against refC, and FAIL on mismatch before proceeding to review388- P3 G4b is the most explicit gate; P4/P5 enforce refC comparison via existing policies; gap: P4 does not yet consume BFM I/O logs389390## Phase-Aware Invocation Cues (Dynamic Spawn Basis)391392Use these cues to justify dynamic spawning of the four high-value specialists:393394| Agent | Primary Phases | Invoke When |395|---|---|---|396| `rtl-planner` | P3 (μArch), P3→P4 handoff | Task dependency is unclear, repeated rework loops appear, or critical-path ordering blocks convergence |397| `clock-architect` | P3 (μArch), P4 (CDC fix loop), P5 (CDC/top signoff) | Multi-clock/generated-clock/PLL/MMCM/mux/gating strategy needs design review or CDC root cause points to clock architecture |398| `ref-model-reviewer` | P2 (ref model build/review) | C reference model is newly created/updated and must be validated for algorithm fidelity, numerical precision, and UB safety before oracle use. P5 oracle confidence is inherited from P2 validation — no separate P5 trigger unless ref model is modified during P5 |399| `equivalence-checker` | P4 (refactor), review-refactor workflow, P5B (silicon validation) | Change is declared behavior-preserving, or synthesis/ECO/refactor introduces semantic drift risk requiring RTL-vs-RTL or RTL-vs-netlist proof |400401---402403## Phase 1 Proactive Requirement Clarification404405If the user's request is ambiguous or incomplete in Phase 1, proactively use AskUserQuestion to clarify.406407**When to use AskUserQuestion:**408- Target resolution/frame rate/codec not specified409- Interface protocol (AXI/APB/custom) not specified410- Clock frequency or timing constraints unclear411- Functional scope ambiguous (encoder/decoder/both, profiles/levels)412- spec-analyst flags `[AMBIGUITY]` or `[CONFLICT]`413414**When NOT to use:**415- User provided a detailed spec document416- Standard has only one valid interpretation417- Matter decided by design convention (e.g., active-low reset)418419---420421## Mandatory Verification After RTL Changes422423This rule applies to ALL tasks that modify `.sv/.svh/.v/.vh` files.424425| Step | Description | Required |426|------|-------------|----------|427| 1. Modify | Change RTL code | Required |428| 2. Lint | Pass `verilator --lint-only -Wall` | Required |429| 3. TB | Create or update testbench for modified module | **Required** |430| 4. Sim | Run cocotb/verilator simulation and PASS | **Required** |431432**Anti-pattern (prohibited):** RTL modify → lint pass → "done"433**Correct flow:** RTL modify → lint pass → TB create/update → simulation PASS → "done"434435**Gate signals:**436- Verification done: `touch .rat/state/rtl-verify-done`437- Waiver (non-functional changes): `touch .rat/state/rtl-verify-waiver`438439**Phase 4 Parallel Streams:**440- Stream A: RTL coding (wave-based) → lint → unit TB → unit sim441- Stream B: SVA skeletons + CDC topology + TB skeletons (from uarch, parallel with Stream A)442443---444445## 6+1 Phase Design Pipeline (+Phase 7 Optional)446447```448Phase 1: Research → docs/phase-1-research/ (spec, domain knowledge)449Phase 2: Arch/Ref → docs/phase-2-architecture/ + refc/ (C golden)450Phase 3: μArch/TLM → docs/phase-3-uarch/ + BFM451Phase 4: RTL+Unit → rtl/{module}/ + sim/{module}/ + docs/phase-4-rtl/452Phase 5: Verify → formal/ + docs/phase-5-verify/453Phase 6: Design Note → reviews/phase-6-review/454Phase 7: Exploration → docs/phase-7-exploration/ (optional, no pipeline rules)455```456457**Artifact separation:**458- `docs/phase-N-*/` = Design artifacts (guides for next phase)459- `reviews/phase-N-*/` = Verdict documents (upper spec compliance check)460461---462463## 4-Tier Testing Hierarchy464465| Tier | Name | Skill | Prerequisite |466|------|------|-------|-------------|467| 1 | Smoke Test | `rtl-p4-implement` Wave 4 | Lint pass |468| 2 | Unit Test | `rtl-p4s-unit-test` | Tier 1 pass |469| 3 | Module Regression | `rtl-p5s-func-verify` | Tier 2 pass |470| 4 | Integration | `rtl-p5s-integration-test` | Tier 3 pass or PARTIAL_PASS |471472Coverage targets (Tier 3): line ≥ 90%, toggle ≥ 80%, FSM ≥ 70%473474---475476## Coding Conventions (Core Overrides)4774781. **Port prefix**: `i_`, `o_`, `io_` required (NOT suffix `_i`, `_o`). Clock/reset are exceptions (no prefix)4792. **Clock**: `clk` (single) or `{domain}_clk` (multiple). **Reset**: `rst_n` or `{domain}_rst_n`. Active-low async4803. **No CamelCase**: Parameters → `ALL_CAPS`. Localparam → `L_` prefix. Enum values → `ALL_CAPS`. All identifiers `snake_case` or `ALL_CAPS`4814. **Language Standards**: SV RTL IEEE 1800-2009, SV Verification IEEE 1800-2012, C ref model C11, C++ BFM C++174825. **Convention skills are loaded by writer agents via their `skills:` frontmatter** (rtl-coder→systemverilog, bfm-dev→systemc, testbench-dev/sva-extractor/protocol-checker→systemverilog-assertion/uvm); naming basics also enforced by the deployed `.claude/rules` file on .sv access483484Full coding rules: `.claude/rules/rtl-coding-conventions.md`485Verification gate rules: `.claude/rules/rtl-verification-gate.md`486Diagram rules: `<markdown_diagram_rule>` in CLAUDE.md (or `.claude/rules/diagram-rules.md` fallback)487488---489490## Domain Packages491492Domain packages provide pre-built knowledge bases. Active packages:493494| Package | Path | Manifest | Status |495|---------|------|----------|--------|496| video-codec | `domain-packages/video-codec/` | `domain-packages/video-codec/manifest.json` | stable |497| video-processing | `domain-packages/video-processing/` | `domain-packages/video-processing/manifest.json` | active |498499Domain expert agents MUST read relevant knowledge files from `domain-packages/{domain}/knowledge/` BEFORE producing analysis.500Each agent's prompt lists the specific files to read in its "Before analysis, read domain knowledge files:" section.501502---503504## Hook-Based Enforcement505506| Hook | Event | Purpose |507|------|-------|---------|508| `rtl-orchestrator-inject.sh` | SessionStart | Inject routing rules and pipeline rules |509| `rtl-edit-tracker.sh` | PostToolUse:Edit/Write/Bash | Track RTL file modifications |510| `rtl-skill-activation.sh` | PreToolUse:Skill | Activate skill completion loop + same-skill re-invocation counter reset |511| `stop-gate.sh` | Stop | Autopilot escalation ladder enforcement + dynamic prompt injection |512| `rtl-verify-stop-gate.sh` | Stop | RTL verification gate |513| `rtl-p6-cascade-gate.sh` | Stop | Phase 6 cascade enforcement + document mtime verification |514| `rtl-skill-completion-gate.sh` | Stop | Skill completion escalation ladder enforcement (`N→2N→last-chance→user escalation`) |515| `rtl-coverage-exclusion-gate.sh` | Stop | Coverage exclusion approval enforcement (non-standard bins require user confirmation) |516517Stop hook order (current): `rtl-verify-stop-gate` → `rtl-p6-cascade-gate` → `rtl-skill-completion-gate` → `rtl-coverage-exclusion-gate` → `stop-gate`.518(Authoritative registration + order: `hooks/hooks.json`. Full 14-hook inventory: CLAUDE.md Hook-Based Enforcement table.)519520## State Files521522Hook-enforced (quality gates):523- `.rat/state/rat-auto-design-state.json` — Full pipeline progress (stop-gate)524- `.rat/state/rat-auto-design-state.json::orchestration_control` — Active gate counters/strategy (`N→2N→last-chance`) and dynamic prompt payload525- `.rat/state/rtl-verify-done` — RTL verification completion gate (rtl-verify-stop-gate)526- `.rat/state/rtl-verify-waiver` — Verification waiver (rtl-verify-stop-gate)527- `.rat/state/skill-active.json` — Skill completion loop state (rtl-skill-activation, rtl-skill-completion-gate)528- `.rat/state/phase6-stale` — Phase 6 cascade marker (rtl-edit-tracker, rtl-p6-cascade-gate)529- `.rat/state/phase6-cascade-done` — Phase 6 cascade completion (rtl-p6-cascade-gate)530- `.rat/state/rtl-modified-files.txt` — Modified RTL file tracking (rtl-edit-tracker, rtl-verify-stop-gate)531532Agent-managed (orchestrator resumability):533- `.rat/state/rat-p1p3-spec-uarch-state.json` — Spec-to-μArch pipeline progress534- `.rat/state/rat-p4p5-impl-verify-state.json` — μArch-to-Verify pipeline progress535- `.rat/state/rat-dse-state.json` — DSE pipeline progress536- `.rat/state/feedback-loop-state.json` — Phase 5→4 feedback loop tracking537- `.rat/state/{module}-phase-3-complete.json` — Per-module Phase 3 completion marker538539Templates:540- `${CLAUDE_PLUGIN_ROOT}/skills/rat-auto-design/templates/autopilot-state.json` (or `skills/rat-auto-design/templates/autopilot-state.json` in repo context) — v3.0 state schema with `orchestration_control`541- `${CLAUDE_PLUGIN_ROOT}/skills/rat-auto-design/templates/escalation-prompts.json` (or `skills/rat-auto-design/templates/escalation-prompts.json` in repo context) — fallback prompt templates for ladder transitions542543---544545## SessionStart Hook Export (SSOT)546547This block is the single source for SessionStart routing injection.548`scripts/sync_orchestrator_inject.sh` copies it into `hooks/rtl-orchestrator-inject.sh`.549550<!-- SESSIONSTART_HOOK_EXPORT_START -->551# RTL Agent Team — Active Project Rules552553## Pipeline Rules (Rule 5 hard-enforced; others advisory)5541. No RTL coding without specification (run spec-analyst first) — policy5552. No Testbench without Reference Model — policy5563. No synthesis without RTL code — policy5574. No Formal verification without passing Lint — policy (skill warning)5585. **No completion after RTL modification without functional verification** (lint alone is insufficient) — HARD (rtl-verify-stop-gate.sh)5596. No Phase 5 without per-module unit tests upon Phase 4 completion + Stream B early verification artifacts — policy (skill warning)5607. Phase 5 FAIL → max 2 Phase 4 feedback loops; escalate to user if exceeded — policy (orchestrator counter)5618. No Phase 6 without Phase 5 PASS (final-compliance.md verdict=PASS required) — policy (skill warning)5629. Phase 7 is exempt — free exploration allowed without pipeline Gate56310. No DC-based PPA optimization without Phase 5 PASS — policy (skill warning)56411. Every PPA-Opt iteration must pass equivalence + smoke before the patch is accepted; on failure, roll back — policy (orchestrator guard)565566## Iron Requirements Protocol567- Each phase produces iron-requirements.json (binding constraints for downstream) and open-requirements.json (homework for next phase)568- Iron requirements from upper phases MUST NOT be violated569- Authority hierarchy: P1(functional) > P2(architecture) > P3(micro-arch)570- Violation triggers graduated escalation; infeasibility triggers Upstream Challenge with quantitative PPA evidence571- Phase exit requires compliance-checker PASS against all upstream iron572573## Routing (key patterns → Action Skill)574Always route user intent to Action Skills first. Orchestrators are internal and spawned by skills.575| Pattern | Route To |576|---|---|577| RTL design, chip design, full pipeline | `/rtl-agent-team:rat-auto-design` |578| setup tools, EDA setup, install tools | `/rtl-agent-team:rat-setup` |579| init project, initialize project, new project | `/rtl-agent-team:rat-init-project` |580| debug, diagnostics, plugin status | `/rtl-agent-team:rat-plugin-debug` |581| tutorial, getting started, how to use | `/rtl-agent-team:rat-tutorial` |582| spec analysis, requirements, research | `/rtl-agent-team:p1-spec-research` |583| codec, H.264, H.265, domain expert | `/rtl-agent-team:domain-consult` |584| architecture design (RTL context) | `/rtl-agent-team:p2-arch-design` |585| architecture review | `/rtl-agent-team:arch-review` |586| reference model, C model | `/rtl-agent-team:ref-model` |587| BFM, bus functional model, SystemC | `/rtl-agent-team:bfm-develop` |588| microarchitecture, uarch | `/rtl-agent-team:rtl-p3-uarch-design` |589| DSE, design space exploration | `/rtl-agent-team:rat-dse` |590| Phase 1 team, research team, parallel research | `/rtl-agent-team:rtl-p1-research-team` |591| Phase 2 team, arch team, parallel architecture | `/rtl-agent-team:rtl-p2-arch-team` |592| Phase 3 team, uarch team, parallel uarch | `/rtl-agent-team:rtl-p3-uarch-team` |593| spec to uarch team, Phase 1-3 team | `/rtl-agent-team:rat-p1p3-spec-uarch-team` |594| spec to uarch, Phase 1-3, design only | `/rtl-agent-team:rat-p1p3-spec-uarch` |595| uarch to verify, Phase 4-5, RTL from uarch | `/rtl-agent-team:rat-p4p5-impl-verify` |596| RD eval, BD-PSNR, codec quality | `/rtl-agent-team:codec-rd-eval` |597| decoder conformance, conformance stream | `/rtl-agent-team:codec-conformance-eval` |598| rapid rtl, P4 rapid, sanity integration, fast implementation loop | `/rtl-agent-team:rtl-p4-rapid-impl` |599| bug fix, RTL fix, RTL bug | `/rtl-agent-team:rtl-p4s-bugfix` |600| RTL coding, module implementation | `/rtl-agent-team:rtl-p4-implement` |601| Phase 4 team, implement team, parallel implement | `/rtl-agent-team:rtl-p4-implement-team` |602| block parallel, worktree parallel, 6-block | `/rtl-agent-team:rtl-p4-block-parallel` |603| refactoring (RTL context) | `/rtl-agent-team:rtl-p4s-refactor` |604| unit test (RTL context) | `/rtl-agent-team:rtl-p4s-unit-test` |605| IP instance, IP integration | `/rtl-agent-team:rtl-ip-instantiate` |606| lint, lint check | `/rtl-agent-team:rtl-lint-check` |607| synthesis, yosys, SDC | `/rtl-agent-team:rtl-synth-check` |608| RTL documentation | `/rtl-agent-team:rtl-document` |609| IP-XACT, register map | `/rtl-agent-team:rtl-ipxact-gen` |610| functional closure, P5A, deep functional verification, hierarchical functional closure | `/rtl-agent-team:rtl-p5a-functional-closure` |611| silicon validation, P5B, signoff readiness, timing signoff, post-functional signoff | `/rtl-agent-team:rtl-p5b-silicon-validation` |612| Phase 5, verification pipeline | `/rtl-agent-team:rtl-p5-verify` |613| Phase 5 team, verify team, parallel verify | `/rtl-agent-team:rtl-p5-verify-team` |614| simulation, testbench, cocotb | `/rtl-agent-team:rtl-p5s-func-verify` |615| UVM verification, sequence, agent | `/rtl-agent-team:rtl-p5s-uvm-verify` |616| performance verification, throughput | `/rtl-agent-team:rtl-p5s-perf-verify` |617| formal, SVA, assertion | `/rtl-agent-team:rtl-p5s-sva-check` |618| CDC, clock domain | `/rtl-agent-team:rtl-p5s-cdc-verify` |619| AXI, APB, AHB, protocol | `/rtl-agent-team:rtl-p5s-protocol-verify` |620| coverage | `/rtl-agent-team:rtl-p5s-coverage-analyze` |621| PPA optimize, DC PPA, power/timing/area op622623…(truncated)