/chip-design-verification:functional-verificationfrom chip-design-verification
Guides UVM-based functional verification including testbench architecture, constrained-random stimulus, coverage closure, and regression sign-off. Use when building UVM testbenches or managing verification regressions.
Ships in chip-design-verification. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When this skill is loaded and a user presents a verification task, do not
execute stages directly. Immediately spawn the
digital-chip-design-agents:verification-orchestrator agent and pass the full
user request and any available context to it. The orchestrator enforces the stage
sequence, loop-back rules, and sign-off criteria defined below.
Use the domain rules in this file only when the orchestrator reads this skill mid-flow for stage-specific guidance, or when the user asks a targeted reference question rather than requesting a full flow execution.
<MEM> below is the resolved memory root, never the literal memory/ directory: an
explicit --memory-root, else $CHIP_DESIGN_MEMORY_ROOT, else the central default, else
the in-repo seed (python3 plugins/infrastructure/skills/memory-keeper/memory_root.py
prints it; the orchestrator's ## Memory section is authoritative).
Before executing or advising on any stage, read the following files if they exist:
<MEM>/verification/knowledge.md — known failure patterns, successful tool flags, PDK/tool quirks.
Incorporate its guidance into every stage decision. If absent, proceed without it.<MEM>/verification/run_state.md — current run identity (run_id, design_name, tool,
last_stage). Use this to resume correctly after interruption. If absent, a new run
is starting; the orchestrator will create this file before the first stage.This pre-run read applies whether this skill is loaded by a user or called by the orchestrator mid-flow. It ensures the fix database is consulted before any diagnosis step.
Guide the complete UVM functional verification flow from testbench architecture
through coverage-closed regression sign-off. Produces a verified RTL package
with documented coverage and a clean regression. Also guides port mode: bringing an
existing, passing testbench up on another simulator (simulator_portability), and reviewing
coverage holes without closing them (coverage_analysis report-only mode).
verilator) — fast cycle-accurate simulator; UVM support via verilator+UVMiverilog) — event-driven simulation for quick testbench checkspip install cocotb)vcs, dialect synopsys) — industry-standard SV/UVM simulatorxrun, dialect cadence) — multi-language simulator with coverage enginevsim / vlog / vcom, dialect siemens) — mixed-language simulation with UVM supporturg, dialect synopsys) — merges and reports VCS .vdb coverage; wrapper wrap-urg.shimc, dialect cadence) — merges and reports Xcelium cov_work coverage; wrapper wrap-imc.sh. Often off PATH, or not installed with Xcelium at allcocotb runs on any of these through SIM= (see simulator_portability). Its makefile's exit code
is not a verdict on any simulator; wrap-cocotb-results.sh reads results.xml.
Entered only in port mode — an existing, passing testbench (cocotb or UVM) is brought up on a
simulator it has not run on (for example a Verilator-only cocotb regression moved to VCS and
Xcelium). The testbench and its checks are inputs, not artifacts this stage designs: the
tb_architecture → constrained_random stages do not run. The simulator the regression already
passes on is the reference simulator; its results are the baseline every new simulator is
compared against.
cocotb selects the simulator by SIM: verilator, icarus, vcs, xcelium, questa
(the value is the makefile name under cocotb's share/makefiles/simulators/, so check
cocotb-config --makefiles for the installed version). Pass flags through cocotb's own
variables, never by editing cocotb's makefiles:
| Variable | Reaches | Use for |
|---|---|---|
COMPILE_ARGS | the compile/elaborate command | defines, include dirs, parameter overrides, timescale, access flags |
EXTRA_ARGS | compile and, on some simulators, elaborate | options the reference simulator already passes here (Verilator's -G, -Wno-*) — translate, do not copy |
SIM_ARGS | the run command | run-time options (-licqueue, coverage run flags) |
PLUSARGS | the run command, as +arg | test plusargs (+SEED=, +UVM_TESTNAME=) |
SIM_BUILD | build directory (default sim_build) | one directory per simulator, rule 6 |
cocotb 2.x renamed MODULE/TOPLEVEL to COCOTB_TEST_MODULES/COCOTB_TOPLEVEL; read the
names from the installed version rather than assuming either
Read the COMPILE_ARGS/EXTRA_ARGS that cocotb's Makefile.<sim> already supplies
(make -n SIM=<sim>) before adding any: cocotb passes its own VPI-load and debug flags, and a
duplicate is at best noise. Never set EXTRA_ARGS on the make command line for
SIM=xcelium: a command-line variable overrides every makefile assignment, so it silently
discards cocotb's own EXTRA_ARGS += in Makefile.xcelium, which carries -top,
-xmlibdirpath and -licqueue (observed). Translate the reference value inside the shared
include into a separate variable (or override undefine EXTRA_ARGS there, then append), and
confirm with make -n that cocotb's own flags are still present
Translate every reference-simulator flag through this table. A flag with no row is investigated and added to the table in the stage output, never passed through untranslated:
| Verilator | VCS | Xcelium (xrun) |
|---|---|---|
-G<P>=<v> (top-level parameter) | -pvalue+<top>.<P>=<v> | -defparam <top>.<P>=<v> |
-G<P>='"str"' (string parameter) | -pvalue+<top>.<P>=\"str\", escaped once more for the recipe's sh (else Warning-[PRM_ILLG] and the value is ignored) | not -defparam — xrun ignores it for a string parameter (*W,BDDSTR ... ignored, observed); generate an extra top module holding defparam <top>.<P> = "str"; and add it as a second -top |
+define+X=1, -DX=1 | +define+X=1 | +define+X=1 (or -define X=1) |
-I<dir>, +incdir+<dir> | +incdir+<dir> and -y <dir> +libext+.sv+.v | +incdir+<dir> (or -incdir <dir>) and -y <dir> +libext+.sv+.v |
--timescale 1ns/1ps | -timescale=1ns/1ps | -timescale 1ns/1ps |
--timescale-override ... | -override_timescale=1ns/1ps | -override_timescale 1ns/1ps |
VPI signal access (implicit with --public-flat-rw / --vpi) | -debug_access+all (or +acc) | -access +rwc |
-Wno-*, -Wall, -Wno-fatal, --lint-only | drop | drop |
--trace, --trace-fst, --trace-structs | drop (waves via -debug_access + UCLI/FSDB only when asked) | drop (-access +r + SHM probe only when asked) |
--x-assign, --x-initial | drop — changes semantics, rule 10 | drop — changes semantics, rule 10 |
--coverage, --coverage-line, --coverage-toggle | replace with -cm ... (coverage_analysis) | replace with -coverage ... (coverage_analysis) |
-O0..-O3, --threads N, -j N, --build, --exe | drop | drop |
Quoting a string parameter goes through make and the shell; prove each override took effect
by reading the parameter back in the smoke run (dut.<P>.value in cocotb, or a $display)
and comparing it with the reference simulator's value — a mis-quoted string silently becomes
the default. Any parameter-override warning (PRM_ILLG, BDDSTR, "parameter not found",
"ignored") is a FAIL of the translation, not noise: the run that follows simulated the
default value. Verilator's -I also resolves modules by file name, so a filelist can omit a
module and still build on Verilator; map -I to the library search (-y/+libext+) as well
as +incdir+, or — better — add the missing file to the filelist and record which modules
were found only by search. Add a VPI access flag only when a test fails to find a signal (cocotb
AttributeError on a handle) under cocotb's own default, and record which signal needed it
One shared make include, not per-target edits. Put the whole translation in one file
(e.g. sim_portability.mk) that every test makefile includes, with every rule guarded on
SIM (ifeq ($(SIM),vcs) … else ifeq ($(SIM),xcelium) …). A per-target copy drifts: the
tenth makefile edited is the one that misses a define
The reference simulator's command lines stay byte-identical. Before the include is added,
capture make -n SIM=<reference> <target> for every target into before/<target>.txt; after,
capture the same into after/, and compare with cmp -s (exit 0 per file). Any difference is a
FAIL of this stage until explained and accepted by the user — not diff output read by eye,
and not a filtered diff, which can report changed files as identical. Where the reference
simulator is not installed on the porting host, use make -n -i with a stub executable of the
same name first on PATH (Verilator's build recipe runs make -C even under -n), and
normalise make's own Makefile:NNN: line numbers in its warnings (sed -E 's/(Makefile[^:]*):[0-9]+:/\1:N:/') in both captures before cmp; say in the output that the
proof used a stub. Parity of the command lines is not parity of the result: before handing a
port back, run the reference simulator's lint and regression at the version CI executes (read it
from the CI log or lockfile, not a comment). A testbench or model edit made for the new simulator
can fail a lint rule that only a newer reference release has (PROCASSINIT in Verilator 5.048)
One SIM_BUILD per simulator (sim_build_vcs, sim_build_xcelium), set inside the
SIM-guarded branches so the reference simulator keeps its existing directory (rule 5). A
shared directory lets one simulator's stale objects or results.xml be read as the other's
A verilator --lint-only prerequisite is skipped or replaced, never counted. Where a make
target runs Verilator lint before simulating, guard it on SIM=verilator, or replace it with
the target simulator's compile as the gate. Report lint as NOT RUN for that simulator — a lint
step that ran under another simulator's name is not evidence that the RTL compiles clean there.
The same holds for every Verilator-only test: elaboration-guard checks (a parameter value
that must fail to elaborate), *_neg targets and lint-based tests inside suites. List each one
by name as NOT RUN for the commercial simulator, and account for them explicitly against any
pass floor (expected = reference_passed − not_run_verilator_only). Never drop them silently,
and never count them as passed
Resolve the simulator from a non-interactive shell. A user alias (alias vcs 'vcs -full64'
was observed) does not exist inside make; write -full64 into the VCS compile arguments
explicitly, and record the binary path command -v vcs resolved to
always_ff variable also written elsewhere, a missing automatic on a
recursive function, an implicit net). Cite the LRM clause. Write a fix_request
(failure_class: functional) routed to RTL and escalate per Behaviour Rule 4 — never a
testbench, define or flag workaround (+define+ hack, -error=noFOO, +lint=none,
-nowarn/-ignore on an error) that makes the RTL compile. "Verilator accepts, the LRM
rejects" is this class, not a dialect: observed cases are use before declaration (an
implicit net later re-declared, an always_ff reading a logic declared further down) and
a variable written by always_ff that also has a declaration initialiser or an initial
write — LRM 9.2.2.4, VCS error ICPD. The compiler message names file and line, so the
fix_request carries suspected_rtl.basis: traceddirected_tests rule 9)sim_differences (test, per-simulator result, mechanism, class, owner). Look first at:
--x-assign/--x-initial
zero or randomise unknowns; VCS and Xcelium start uninitialised variables at X. A
register read before reset, or a missing reset, passes on Verilator only. A missing reset
the spec requires is an RTL defect (rule 9); a testbench reading before reset is a TB defectReadOnly()/NextTimeStep(); a race inside the RTL is an RTL defect$random/$urandom and Python random sequences differ per
simulator and per seed handling; record the seed (RANDOM_SEED, +ntb_random_seed,
-svseed) for every failing test so it reproduces0 on Verilator and X
on VCS/Xcelium; int(handle.value) then raises. Stimulus that relied on the 0 is a
testbench defect: drive every DUT input to a defined value during reset/setup, and treat
a Verilator pass that depends on an X reading as 0 as non-portable, not as passing.
Observed: an instruction encoding whose immediate overlapped the rs2 field selected a
register the test never wrote. Fix the cause of the X; never resolve it away
(COCOTB_RESOLVE_X, masking with & mask) to make the test pass — that is weakening the
check (Behaviour Rule 11)ERROR gpi ... Unable to register a callback handle ... cbStartOfSimulation / cbEndOfSimulation with Warning-[VPI-CT-NS]
(from cocotb's compile-time -load), DEBUG_DEP and DBGACC_DBG/DBGACC_CMB (cocotb passes
both -debug and -debug_access), and the VCS_SAVE_RESTORE_INFO ASLR note are expected.
Never grep a simulation log for ERROR to decide pass/fail — results.xml is the verdict
(rule 12)results.xml, never from make's exit code. cocotb 1.9.2's makefile
was observed exiting 0 with failing tests on both VCS and Xcelium. Delete stale results.xml
before each run (or pass --newer-than a stamp file), then read every run through
wrap-cocotb-results.sh <results.xml|SIM_BUILD dir>...: it counts testcases, failures, errors
and skipped, and reports FAIL for any failure or error, for zero testcases, and for a missing,
empty or unparsable results.xmlassert False, "negative control" test, or one deliberately wrong expected
value — run it, and confirm wrap-cocotb-results.sh reports FAIL with exactly that test in
errors. Remove it and confirm the count returns. A simulator whose pipeline cannot report
a FAIL has not demonstrated any PASSregression_signoff rules 1–3; they apply to
the smoke and full runs of this stageresults.xml, so only the last
module's results survive; concurrent jobs sharing a directory clobber results.xml,
ucli.key and xrun.log. Give each target its own results file (COCOTB_RESULTS_FILE, or
SIM_RESULTS_IN_BUILD where the installed cocotb supports it) and its own SIM_BUILD;
anything that cannot be relocated runs serially. Check the summed testcase count of every
results.xml against the reference's — a shortfall is a collision until shown otherwise"g_aes.u_aes" as one
child) and a packed-struct port as a scope of members with no .value; Xcelium differs from
both and from Verilator. Put every lookup a test makes below the toplevel through one helper
that tries the dotted path, then the flattened name, then the parent signal with a slice,
and records which form each simulator needed. A per-test try/except hides which form
worked and diverges between testsUnicodeEncodeError on a non-ASCII
test docstring unless the environment has a UTF-8 locale; export LANG/LC_ALL as
C.UTF-8 (or en_US.UTF-8) in the run environment, not only in an interactive shellreference_cmdlines_identical: true — every target's make -n SIM=<reference> output
byte-identical before/after (cmp -s exit 0)compile_errors_per_sim: 0 for every simulatornegative_control_detected: true for every simulatorsmoke_pass_pct: 100 % per simulator, or every failure classified in sim_differencestestcase_count_delta: 0 — same testcase names collected on every simulatorskip_set_match: true per simulator (rule 15)unexplained_sim_differences: 0lint_counted_as_compile: 0 — no Verilator lint step reported as another simulator's compileparam_override_warnings: 0 per simulator (rule 3)verilator_only_not_run: listed by name and subtracted from the pass floor, never counted as passed (rule 7)| Issue | Fix |
|---|---|
make exits 0, tests failed | Read results.xml with wrap-cocotb-results.sh (rule 12) |
| String parameter becomes its default | Fix quoting through make and the shell; read the value back (rule 3) |
| Signal handle not found on VCS/Xcelium only | Add -debug_access+all / -access +rwc for that scope, record it |
Test passes on Verilator, X on VCS/Xcelium | Missing reset or read-before-reset: rule 10, RTL or TB defect |
| Xcelium job hangs at start | -licqueue waiting for a seat: run under timeout, check lmstat |
vcs: command not found inside make, works by hand | User alias; call the binary and add -full64 (rule 8) |
*W,BDDSTR ... ignored on xrun | String parameter: generated defparam top module, not -defparam (rule 3) |
Warning-[PRM_ILLG] on VCS | -pvalue+ string mis-escaped for the recipe shell (rule 3) |
Xcelium loses -top / -licqueue | EXTRA_ARGS given on the make command line (rule 2) |
| Module not found on VCS/Xcelium, builds on Verilator | Missing from the filelist, found by Verilator's -I search (rule 3) |
ICPD error on VCS | always_ff variable also initialised or written in initial: RTL defect (rule 9) |
| Fewer testcases than the reference | results.xml overwritten by a rollup or a concurrent job (rule 17) |
UnicodeEncodeError in cocotb logging | No UTF-8 locale (rule 19) |
sim_portability.mk or equivalent) and the translation table it implementsbefore/ and after/ make -n captures with the cmp -s result per targetwrap-cocotb-results.sh JSON for the negative control, the smoke subset and the full runsim_differences record: one entry per test whose result differs between simulatorsuvm_test
└─ uvm_env
├─ agent_A (active) driver + monitor + sequencer
├─ agent_B (passive) monitor only
├─ scoreboard
├─ coverage_collector
└─ virtual_sequencer
ready low for many cycles) and maximum-rate input with no gapsWIDTH=1,
DEPTH=1 and 2, N=1, and a non-power-of-two value. A value the RTL is meant to
reject gets a test that it refuses to elaboratedesign_state.rtl.unverified[] (claims
the RTL flow concluded without a tool run) gets a test or is marked as assigned to formal.
cdc and reset entries cannot be closed by functional simulation — record them as
needing a CDC/RDC tool run rather than as coveredfeature_id: F001
description: AXI write burst handling
tests: [direct_single_write, burst_len_256, narrow_transfer]
assertions: [axi_valid_stable, axi_handshake_check]
covergroups: [burst_len_cg, burst_type_cg]
priority: P0
Testbench code is exempt from the RTL synthesis rules — initial, #delay and blocking
assignments are correct here — but it is still SystemVerilog that has to elaborate the same
way in every simulator.
`default_nettype none at the top of every testbench, interface and bind file, restored
with `default_nettype wire at the end so library code compiled after it is unaffected;
a typo in a DUT connection must be an error, not an implicit one-bit net#(.WIDTH(8))), never positional — a positional connection mis-wires silently when a
port list is reorderedint unsigned, logic [W-1:0]). An untyped parameter
and a size-cast bare literal (WIDTH'(1)) are signed; in a scoreboard comparison that
yields a false pass or a false mismatch on values with the top bit set!== so
an X or Z on the DUT output is a mismatch, not a silent passvalid without
waiting for ready, then hold valid and the payload stable until the beat is accepted. As
a sink: ready may depend on valid. A driver that waits for ready before asserting
valid deadlocks against a DUT that waits for valid, and hides DUT bugs that only appear
under back-pressurevalid && ready; valid not retracted before the beat is accepted; payload stable while
valid && !ready; valid and ready deasserted (not X) in resetImplement one directed test per V-plan entry — tests must be deterministic
Each test: verify the exact functional requirement it targets (no catch-all tests)
Error/exception paths: explicit stimulus to trigger each one
Corner cases: boundary values, max/min, overflow, underflow — one test each
Reset during active transaction: at least one test per interface
P0 tests must all pass before constrained-random phase begins
DUT bug found during directed test: write a fix_request entry to design_state.fix_requests[] per the schema in the verification-orchestrator Design State section; terminate with decision=escalate. The pipeline-orchestrator (chip-design-meta) handles RTL re-invocation — do not loop locally or wait for user confirmation.
Before filing, classify the failure as DUT bug or testbench bug, and name the mechanism,
not just the location — the reported symptom is not necessarily the bug. Set
suspected_rtl.basis to traced only when you followed the mismatch back to that signal
in the waveform; otherwise hypothesis. Start from the symptom:
| Symptom | Look first at |
|---|---|
| Intermittent, rate scales with clock ratio | Clock-domain crossing |
| Fails at bring-up, fine once running | Reset release and reset values |
| Hangs until reset | FSM state with no exit, protocol wait-for cycle |
| Wrong only for large values | Width truncation, arithmetic overflow |
| Wrong only for negative values | Signed/unsigned mix |
| Fails only under sustained load | Arbitration fairness, retracted valid, unstable payload |
| Passes in RTL sim, fails in gate sim | Blocking assignment in clocked block, incomplete sensitivity list, X-optimism |
| Degrades slowly over a long run | Leaked credit or token |
Never make a failing test pass by weakening the check: do not loosen the scoreboard comparison, disable or waive an assertion, or constrain stimulus away from the failing case unless that stimulus was illegal per the spec. A fix to the testbench must leave every other test's checking at least as strict as before
directed_tests rule 8| Type | Target | Priority |
|---|---|---|
| Functional (V-plan) | design_state.constraints.coverage.functional_pct% (default: 100%) | P0 |
| Code Line | ≥ design_state.constraints.coverage.line_pct% (default: 95%) | P1 |
| Code Branch | ≥ design_state.constraints.coverage.branch_pct% (default: 90%) | P1 |
| Code Toggle | ≥ design_state.constraints.coverage.toggle_pct% (default: 85%) | P2 |
| FSM State | design_state.constraints.coverage.fsm_state_pct% (default: 100%) | P0 |
| FSM Transition | ≥ design_state.constraints.coverage.fsm_transition_pct% (default: 95%) | P0 |
| Assertion triggered | design_state.constraints.coverage.assertion_pct% (default: 100%) | P1 |
| Simulator | Compile | Run | Scope | Merge + report | Exclusions |
|---|---|---|---|---|---|
| VCS | -cm line+cond+fsm+tgl+branch+assert -cm_dir <db>.vdb | same -cm metrics, -cm_dir <db>.vdb -cm_name <test>_<seed> | -cm_hier <file>: +tree <dut_top> / -tree <tb_wrapper> / -module <model>, or a leading +filelist <rtl.f> when there are many testbench tops (rule 5) | one top: wrap-urg.sh -dir a.vdb b.vdb ... -dbname merged -report <dir> -format both; databases from different testbench tops: add -lca -flex_merge modules (rule 6) | urg -elfile <file>.el |
| Xcelium | -coverage all (or -coverage b:e:f:t:u) | -covworkdir <dir> -covscope <scope> -covtest <test>_<seed> -covoverwrite | -covfile <file>.ccf (select_coverage -all -instance <dut_top>..., deselect_coverage for TB/models) | wrap-imc.sh -execcmd "merge <dir>/<scope>/* -out merged; load -run merged; report -summary -metrics overall" | vRefine file (.vRefine) loaded in IMC before the report |
| Verilator | --coverage-line --coverage-toggle (and --coverage-user for SVA cover) | writes coverage.dat per run (+verilator+coverage+file+<test>.dat) | /*verilator coverage_off*/ … coverage_on or --coverage-max-width | verilator_coverage --write-info merged.info a.dat b.dat ... (lcov), --annotate <dir> | --write after filtering in the .info; record each filter |
wrap-urg.sh parses dashboard.txt, so pass -format text (or both). wrap-imc.sh parses
IMC's stdout, so the report command carries no -out. Where imc is absent (recorded as a
coverage-reporting gap by infrastructure tool_discovery), Xcelium coverage can still be
collected into cov_work/**/*.ucd but not merged or reported: record the metric as NOT RUN
for that simulator, never as 0 % and never as a coverage FAIL.
-cm_hier / -covfile), not by filtering the report afterwards. Including them
inflates the denominator with code no test is meant to cover and hides real holes-cm_name <test>_<seed>, -covtest <test>_<seed>, +verilator+coverage+file+<test>_<seed>.dat).
Two jobs writing the same name overwrite silently: the merged report then counts one of
them and the run shows no errorurg prints Number of tests:)+tree <dut_top> has to be repeated per build and still lets the
wrapper of every other build in. Give each build a -cm_hier file whose first rule is
+filelist <the design files this build compiles>: the first + rule turns the file into an
include list, so everything not listed (testbench wrappers, cocotb glue, simulation models) is
excluded at compile time. Generate the list from the build's own source list, not by handurg -lca ... -flex_merge modules.
Plain urg -dir a.vdb b.vdb ... keeps the design of the first database as the base and
silently drops design that only the others contain; measured on VCS Y-2026.03, a two-database
merge lost a whole module from the report with no error or warning. -flex_merge modules
merges by module definition and is a limited-availability feature, so it needs -lca. Report
coverage per module definition from such a merge; the instance-hierarchy view is per
testbench and cannot be summed across tops-- summary is not a result. When the scope file excludes everything, or the
-cm flags did not reach the compile, urg still exits 0 and writes a dashboard whose every
metric is --. Treat that as NOT RUN and fix the instrumentation; wrap-urg.sh reports it as
an unverified WARN. Also check that the merged Number of tests: equals the number of
simulations that ran. Note that urg -f <file> does not accept -dir inside the file: pass
the databases on the command line or with -dir repeated/*verilator coverage_off*/ pragmas nor a Verilator-side waiver file: every arm waived there
reappears as a hole. Before comparing numbers or ranking holes, translate the existing waivers
into the simulator's exclusion format (urg -elfile, IMC vRefine), or list the re-surfaced
items separately as "waived on " instead of as new holesWhen the user asks to review coverage holes rather than close them (coverage_mode: report_only, set by the orchestrator per its Behaviour Rule 14):
coverage_analysis loop-backs (line < 95 % → directed_tests, functional < 100 % →
constrained_random) — the stage result is the reportdefault and
illegal-state branches; reset, flush and abort paths; CDC and synchroniser paths; then other
branches, conditions, toggles and lines. Within a class, rank by the size of the uncovered blockfailure_class: coverage_gap, not
FAIL, and never sets sign-off-cm_hier / -covfile) and exclusion files used| Tier | Trigger | Duration | Contents |
|---|---|---|---|
| Smoke | Every RTL commit | < 30 min | P0 directed tests |
| Nightly | Every night | < 8 hr | All directed + 100 random seeds |
| Weekly | Weekly gate | < 48 hr | Full suite, 1000 seeds |
| Sign-off | Tape-out gate | Unlimited | Full suite, 10,000 seeds |
timeout 300 immediately before launching
— vcs -ID and xrun -version check out nothing, and VCS takes a separate runtime feature
when simv starts. Xcelium launched by cocotb passes -licqueue, so a missing seat hangs
instead of failing: a timeout expiry is a license problem, not a slow test. Reuse the
infrastructure environment_validation smoke result only if it ran in this sessionmin(cores, floor(free_RAM / per-job peak RSS), free license seats)
and record the value and its limiting term in the regression report and run_state.md. Take
the terms from infrastructure tool-manifest.json regression_resources when present, else
measure them (nproc, MemAvailable, peak RSS of the smoke run, lmstat free seats). A
job count above the seat count queues or fails jobs that then look like test failuresSIM_BUILD and coverage databases on a filesystem with room. Check df -P on the
target directory before launch; require free space ≥ jobs × per-job build size from the smoke
run (du -s). Route builds to a scratch filesystem when the project disk is shortresults.xml. Every run's pass/fail is wrap-cocotb-results.sh over that
run's results.xml files (cocotb) or the simulator's own test report (UVM) — never make's
exit code and never a grep for ERROR in a simulation log. A missing or empty results.xml
is a FAIL of that shard, not a skip. Run the negative control (simulator_portability rule 13)
on any simulator whose pipeline has not demonstrated a FAIL in this sessionSIM_BUILD and
log, launch in the background, and after each shard completes record in
<MEM>/verification/run_state.md (see Memory below) the shard id, simulator, command,
results.xml path, and the wrap-cocotb-results.sh counts. A resumed session reads
run_state.md, skips shards marked complete and re-launches only pending or failed ones —
it never restarts a regression from the beginning. Waiting costs turns: launch each shard
with the agent runtime's background-job facility and act on its completion notification; where
there is none, wait with one bounded blocking command per turn
(timeout 1800 bash -c 'while ! test -s <results.xml>; do sleep 30; done'), never repeated
short status polls. A ~24-suite smoke exhausted an 80-turn budget through pollingcoverage_analysis targets; driven by design_state.constraints.coverage.*)regression_failures: 0 (sum of failures + errors from wrap-cocotb-results.sh across all shards)shards_complete: equal to shards_totalmax_parallel_jobs: recorded with its limiting term (cores / RAM / license seats)license_smoke_passed: true per proprietary simulator usedresults.xml)See plugins/meta/skills/pipeline-orchestration/SKILL.md §Constraints Schema for the authoritative schema and stage-entry validation rule.
No required keys for functional verification — all constraints in this domain are optional with schema defaults.
Optional (schema defaults apply when absent):
constraints.coverage.functional_pct (default: 100) — functional/V-plan coverage target %constraints.coverage.line_pct (default: 95) — code line coverage target %constraints.coverage.branch_pct (default: 90) — code branch coverage target %constraints.coverage.toggle_pct (default: 85) — toggle coverage target %constraints.coverage.fsm_state_pct (default: 100) — FSM state coverage target %constraints.coverage.fsm_transition_pct (default: 95) — FSM transition coverage target %constraints.coverage.assertion_pct (default: 100) — assertion trigger coverage target %Tag constraint_ref in history entries when evaluating QoR against these values (e.g. "coverage.functional_pct").
After each stage completes (regardless of whether an orchestrator session is active),
write or overwrite one JSON record in <MEM>/verification/experiences.jsonl keyed by
run_id. This ensures data is persisted even if the flow is interrupted or called
without full orchestrator context.
Use run_id = verification_<YYYYMMDD>_<HHMMSS> (set once at flow start; reuse on each
stage update). Set signoff_achieved: false until the final sign-off stage completes.
This applies to every task invocation, including a scoped single-stage task (for example "only
run the coverage report"): the end of the task is the end of a run, and it gets a record. When a
later result in the same task invalidates one already recorded, the upsert replaces the record and
its notes say what was superseded and why; when the invalidated result belongs to an earlier
run, write this run's record with supersedes: <earlier run_id> and leave the earlier record
untouched.
Write <MEM>/verification/run_state.md as the first action before launching any tool:
run_id: verification_<YYYYMMDD>_<HHMMSS>
design_name: <design>
tool: <primary tool>
start_time: <ISO-8601>
last_stage: <first stage name>
mode: full | port | report_only_coverage
simulators: <reference>, <new sim>, ...
job_bound: <N> (limited by cores | ram | license_seats)
shards:
- id: <sim>_<nn> status: pending | running | complete | failed
cmd: <launch command> log: <path> results: <results.xml path or dir>
counts: tests=<n> failures=<n> errors=<n> skipped=<n>
Update last_stage after each stage completes, and the shard entry each time a shard is
launched or finishes. This file lets wakeup-loop prompts
and resumed sessions identify the correct run without relying on in-memory state.
Create the file and parent directories if they do not exist.
If mcp__plugin_ecc_memory__add_observations is available in this session, emit each
applied fix as an observation to entity chip-design-verification-fixes after writing to
experiences.jsonl. Skip silently if the tool is absent — JSONL is the canonical record.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
uvm, functional-verification, testbench, coverage-closure, regression
npx claudepluginhub hdl-tools/digital-chip-design-agents --plugin chip-design-verificationOther plugins' skills for the same job