/vibe-ic:formal-verifyfrom vibe-ic
Runs formal property verification (FPV) on RTL using SymbiYosys, Jasper, or VC Formal. Drives model-checkers to prove or bounded-check SVA assertions.
Ships in vibe-ic. 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.
Read when SKILL.md points to them.
Doctrine (v0.1.50): 把修法寫進工具,而非寫進 prompt. Programs first; AI is the backstop on cex narrative.
formal_harness_gen.py authors the construction-safe floor and writes
property_contract.json. This skill owns BOTH the expert property-authoring
fallback for unresolved L3/L6/L8 obligation IDs and the independent review of
model-checker evidence. Without a runner, SVA files are documentation; without
denominator closure, a passing subset is INCOMPLETE rather than Step 5.
# MCP tool call — drives SymbiYosys / Jasper / VC Formal:
eda_formal({
rtl_files: ["<dut>.v"],
sva_files: ["<assertions>.sva"],
top_module: "<top>",
mode: "prove", // or "bmc" with --bmc-depth N
})
The tool returns property_count, proven, failed, plus
counterexample_paths[] when failures appear. Treat the JSON output
as ground truth. When a property is FAILED, narrate the CEX trace;
when UNDETERMINED at the bound, recommend deeper BMC. Never claim a
property "obviously holds" without the tool's PROVEN verdict.
formal_property_run) — author the harness, the program provesThe canonical flow Step 5 starts with PROGRAM formal_harness_gen.py. When it
writes formal_authoring_request.json, invocation of this skill is mandatory:
property_contract.json and the request. Preserve every obligation ID.phase2/stage1/formal/formal_expert_properties.svh,
the fragment the generated harness formal_<top>.sv includes — the harness
is rewritten by every formal_harness_gen run, the fragment never is. Only
when no harness could be generated, author formal_<top>.sv itself. Each
obligation is closed by the program's read-back only when its named
assertion exists. The Step-5 signed judgement
(reports/audit/ai_judgements/5.json) binds the fragment AND the harness,
so rerun the producers before signing, and re-sign after any change.formal_expert_review.json with invocation_status: INVOKED,
fallback_skill: formal-verify, request_sha256 (the SHA-256 of the
formal_authoring_request.json bytes this run wrote; a receipt without it,
or for another request, closes nothing), and a dispositions list with one
AUTHORED, DECLARATION_MISSING, or UNANSWERABLE row for every request
ID, never omitted. Every AUTHORED row names the exact property and its
native_assertion binding: {"deck": "<project-relative .sby>", "task": "<SBY task>", "name": "<SBY HDL name>"}. The deck is the one the
formal_verification row runs. That is the harness's own
phase2/stage1/formal/formal_<top>.sby, or an authored deck in that folder.
The task is the prove task that elaborates the assertion, such as the
fragment's own // @task name or the default prove. Use "" when the deck
has no [tasks]. Copy the name exactly as SBY reports it for that task
(the hdlname of the assertion in the task's status.sqlite, the same name
formal_accounting.json lists under that task's properties), for example
formal_spm.a_spec_product_bit. Do not build it from the deck top and the
label: an assertion inside a named or generate block or a submodule carries
that hierarchy in its name. Its last component is the row's property; a
binding to any other assertion is not credited. Requirement accounting credits
only that exact native result. A row without the binding stays
NOT_MEASURED, even when its label is unique. UNANSWERABLE keeps the row
INCOMPLETE and names what declaration/property is missing.formal_property_run.py, then formal_proof_evidence_check.py.Document requirements (L22.* obligation IDs). Phase 1 lifts every
statement in which the documents require a proof into L22
formal_properties with its document and line, and the request carries each
as an L22.<name> obligation. For each one:
plugin_output/declaration.json and the RTL; never read it off a
testbench, golden model or harness. Guard on the stated preconditions
(e.g. "x must not change") instead of assuming them.cover of its guard, and of the last point it
checks, so a vacuous property shows as a cover not reached.source and line of the requirement in the disposition row; step 22
traces the property to the requirement by them. The step credits the
requirement only through the row's native_assertion (step 4).// @task prove prove depth=<n>, // @task bmc bmc depth=<n>). Do NOT
declare a timeout=: a clock sized on one host reads TIMEOUT on a slower or
busier one (SPM spec_prove proved in ~454 s on one run and was cut at
timeout=900 on a host at 100 % CPU). The pragma's timeout= is read and
not written into the deck; sby runs under progress supervision (_watchdog,
vibe-ic#2051) and is stopped only when it stops making progress. A run
budget exists only when the user's project declares one by writing sby's
own timeout N into its deck; when that fires the row is NOT_MEASURED,
never PASS or FAIL. A prove that does not finish leaves the requirement
NOT_MEASURED; a refuted property is a finding and is never rewritten to
pass. A // comment that starts with @task or @observe is a pragma, and
a malformed one is refused; the token anywhere else (later in a comment, in
a block comment, behind a second //) is not read.The PROGRAM formal_property_run.py emits the .sby, runs sby in the
container, parses the transcript, and writes formal/results.json plus the
report that formal_proof_evidence_check verifies (all_proved:true ONLY when
every task shows DONE (PASS)). A completed result must cite the elaborated
.sby, proof transcript, positive property denominator, and bounded/unbounded
scope. Without a sound harness the request remains INCOMPLETE; it is never a
skip.
When the engine cannot be REACHED (#216). "The proof engine was never
reached" and "the proof ran and was inconclusive" are different facts and are
reported differently. If sby is unreachable (container not running, Docker
down, sby not on PATH) the program writes
phase2/stage1/formal/formal_env_unavailable.json + .md with
verdict: ENV_UNAVAILABLE and an env_gap block naming what capability is
missing, where the flow looked for it, and what to install or stage —
and it writes NO results.json, so nothing that looks like a proof enters the
record. It never reports INCONCLUSIVE, which is a claim about solver
convergence that a run with no transcript cannot support.
Before waiving Step 5, CHECK THE CLAIM: our SymbiYosys fork ships inside the
vibeic-eda image at /usr/local/bin/sby, so on a provisioned host there is
usually nothing to waive — verify with
docker exec <container> command -v sby. Passing the wrong --container name
is a DISCOVERY bug, not an environment gap, and the fix is to point at a
running container (docker ps), not to file a waiver.
A genuine gap is waived through waivers.json with
step: "formal", verdict_tier: "ENV_UNAVAILABLE", a ticket,
review_required: true, non-empty evidence, and a rationale that names the
capability, the search location and the remedy. An entry missing any of those,
or naming an unknown step role, is REJECTED and reported as an advisory in the
compliance output — it is never silently dropped, and the step stays unwaived.
A waiver is open work: it never counts as a pass, and it defers only the steps
that genuinely declare a blocks_on dependency on formal results.
Engines on the image (the one place this is stated). vibeic-eda 0.5.3
ships yices, bitwuzla and z3 (probed on the image); boolector is not shipped, so
do not name it. On 0.5.2 and 0.5.3, smtbmc bitwuzla proved SPM L7:33 by
k-induction and smtbmc yices ran the enable covers. SBY's built-in ABC engines need no solver
(aigsmt none): abc pdr proves safety properties UNBOUNDED; abc bmc3 runs
functional BMC to a DISCLOSED depth. Split the harness into a [safety] prove
task and a [bmc] task so each engine does what it is good at. Word-level
arithmetic proved by k-induction uses smtbmc bitwuzla.
Harness-authoring craft (blind, §4.05-clean) — distilled from the spm proof:
assert (p_acc == x * y_low)),
never a TB/oracle/harness read. Universally quantify inputs with
(* anyseq *) wires; pin the contract's stability assumptions explicitly
(e.g. assume (x == $past(x)) when the datasheet says x is held).assume (rst) at t0,
assume (!rst) after) beats leaving reset free — a free-running reset makes
every property vacuously provable or spuriously refutable.| Mode | What it proves | When to use | Limitation |
|---|---|---|---|
k-induction (mode prove) | Property holds for ALL reachable states | Small modules (<100 FFs, no deep counters) | Fails on large state spaces |
BMC (mode bmc) | No bug exists within N cycles | Large/complex modules | Not a complete proof |
cover (mode cover) | A given state IS reachable | Checking liveness, debug | — |
k-induction requires depth ≥ longest counter/timer path; deep counters, large memory arrays, and many-FF state spaces all defeat unbounded proof — the state explosion problem, fundamental to model checking.
Use the native elaborated design and solver behavior to choose prove or bounded model checking. Deep counters, memories and long traces affect proof cost. Report the actual engine, bound, assumptions and timeout. A bounded result is not an unbounded proof.
Don't pursue complete proof. BMC to depth 50-200 catches most bugs:
[options]
mode bmc
depth 50
result: All 4 complex modules pass BMC at depth 50.
ifdef FORMAL)Replace long counters with short ones for formal:
`ifdef FORMAL
localparam logic [11:0] EPROG_CYCLES = 4; // formal: 4 cycles
`else
localparam logic [11:0] EPROG_CYCLES = 1650; // real: 1650 cycles
`endif
Logic structure unchanged, but solver finishes in seconds.
Reference: Tom Verbeure — Under the Hood of Formal Verification
Use assume() to restrict inputs to legal behavior:
// cmd_processor: break only in valid states
always @(posedge clk)
assume (!break_detected || state_r == IDLE || state_r == COMM_ERROR);
// byte_rx_valid never two consecutive cycles
always @(posedge clk)
if (!init) assume (!byte_rx_valid || !$past(byte_rx_valid));
Massively reduces state space — solver ignores unreachable scenarios.
Reference: ZipCPU — Swapping Assumptions and Assertions
Help solver know which state combinations are impossible:
// otp_controller: prog_timer nonzero only in PROG states
always @(posedge clk)
if (!init && rst_n)
assert (prog_timer_r != 0 |->
(prog_state_r == PROG_ACTIVE || prog_state_r == PROG_WAIT));
Reference: ZipCPU — An Exercise in Formal Induction
For cmd_processor with 8 commands — split into 8 formal tasks:
[tasks]
verify_cmd_id
verify_cmd_set_state
verify_cmd_get_state
...
[options]
verify_cmd_id: mode bmc
verify_cmd_id: depth 30
Each task assumes cmd_byte_r is one specific value. 8 small problems >> 1 huge problem.
Reference: SymbiYosys Tasks
For otp_controller's 47-byte array:
(Array (_ BitVec 6) (_ BitVec 8)) — more efficient than 47×8 bitsassume properties).sby config with appropriate mode and depthsby -f module.sby/rtl-repairformal/<module>.sbyformal/<module>_formal.sv — assertionsformal/<module>_report.md with per-property status tableSymbiYosys is the canonical open-source FPV driver on top of Yosys. K-induction and IC3/PDR are the dominant engines. SMT solvers (Yices, Z3) handle the underlying satisfiability.
References:
/rtl-repair/coverage-closure/assertion-genList [files] relative to the .sby and read the basenames that SymbiYosys
copies into its src/ directory. An absolute container path such as
/work/ip/phase2/stage1/rtl/spm.v breaks every copy of the project that is
mounted elsewhere. Measured 2026-11-08: the PPA spool mounted the SPM project at
/work/project, and all 48 SPM Level 2 trials (IC and IP) ended
formal_verification NOT_MEASURED ("native formal model is absent") and failed
signoff. After the fix the IP trials returned 44/44 PASS.
formal_property_run.emit_sby and emit_invariant_sby write relocatable decks
from v1.40.51. An existing .sby is used as is, so regenerate a deck written by
an older version or by hand before reusing the project.
A copied project's authored .sby can still name its creator's absolute
phase2/, phase3/ or input/ paths. sby --dumptasks can succeed even when
all proof tasks then fail while copying those files. Read the native traceback;
that is an input-binding failure, not a proof or a counterexample.
Rebind only a creator root established by a [files] entry whose complete
project-relative suffix exists inside the active project. Use the same root
mapping for frontend/include references. Never choose a file by basename,
substitute an unrelated same-named module, or rewrite properties, assumptions,
engines, depth or timeouts to make relocation pass. Keep the original deck and
the actual rebound native input in the ordinary reports.
On AES/image 0.4.76 this restored the supplied security_shadow prove/BMC and
both native reachability covers from missing-file errors to PASS at depth 40
and the original 300-second task limits. Other supplied AES decks still hit
unsupported temporal-SVA frontend constructs. Keep those tasks unmeasured;
never disable assertions or claim whole-AES/security closure from a successful
shadow-register proof.
When read_verilog and sv2v cannot read a deck, the native runner retries with
read_slang --single-unit --no-synthesis-define --ignore-timing -DFORMAL.
--ignore-timing matches read_verilog, which also ignores delays (OpenTitan's
ASSERT_INIT_NET waits #1ps in an initial block). A deck that passes
-DYOSYS makes vendor headers pick the bodies written for read_verilog:
OpenTitan's prim_assert then turns every concurrent property into an
immediate assert, and slang rejects it as soon as the property is temporal.
The runner first retries with the deck's own defines
(slang_frontend.sby). If that gives no model and the deck defined YOSYS, it
retries once more without only that define (slang_frontend_standard.sby) so
the standard concurrent bodies are read. Both decks stay in the reports.
Never remove assertions, rewrite properties or change engines, depth or
timeouts to get a model.
Standard bodies only help if the frontend can lower temporal properties. On
AES/image 0.4.76 the shipped sv-elab rejects them (encountered unsupported SVA feature: 4 on the selector deck, 6 on the register deck). With the fork's
temporal lowering (vibeic/sv-elab PR #5, not yet in the image), measured
2026-11-10 at the deck engines, depth 40 and 300-second limits:
u_prim_reg_we_check.u_prim_onehot_check.AssertConnected_A,
whose trigger is only driven by an alert check that this register harness
does not instantiate. That is a genuine verdict of the supplied harness,
not a lowering error. Report it; do not waive or remove it;$isunknown in ASSERT_KNOWN, and enum
.next() in prim_sparse_fsm_flop).
A false temporal control property is refuted by both prove and BMC. Keep
FAIL and NOT_MEASURED verdicts as they are; never claim whole-AES closure
from the selector or shadow proofs.SymbiYosys must use the same Yosys executable that the native adapter resolves
from PATH. Pass its native --yosys option; an SBY executable packaged in a
fixed tool environment can otherwise invoke its packaged Yosys while the
adapter's model and cover readers use a different build. Preserve an explicit
--yosys selection. Do not put a shell wrapper in front of SBY to select a
frontend. The command record must show the executable actually selected.
Frontend regression controls state the property's expected truth: a supported model must prove the true property and refute the false one. If the frontend explicitly refuses a construct before producing a model, preserve NOT_MEASURED and the named native diagnostic, with no proof metric. Do not make an expected "unsupported SVA" error the success condition of a test; adding native support must exercise the proof instead. Bind the staged source bytes rather than assuming the deck still contains an absolute creator path.
A primitive's AssertConnected_A can require the containing harness to install
an error-propagation assertion. Read the vendor contract and the connected RTL
output, then use its assertion macro at the boundary this harness verifies.
Keep the connectivity assertion and add the actual error-to-output assertion;
do not disable its parameter, assume away the error, or set the connectivity
marker by hand. The vendor macro is the executable program; the native
connectivity and propagation assertions are its existing program gate.
For a register-block miter whose intg_err_o is connected to integrity0, the
RTL assignment intg_err_o = err_q | intg_err | reg_we_err establishes the
register-error endpoint. The vendor form is:
`ASSERT_PRIM_REG_WE_ONEHOT_ERROR_TRIGGER_ERR(RegWeToIntegrity, dut, integrity0)
Include the vendor assertion headers. This ERR form adds the propagation assertion and its required connectivity binding without adding an assumption. The ALERT form models a different boundary and adds an alert-initialization assumption; do not use it for a register error bit. Preserve the vendor gate, clock, reset and latency defaults and the deck's engines, bounds and timeouts. Prove every original assertion and each new propagation assertion. Disclose assertions the native optimizer proves constant, and keep register-block scope separate from end-to-end alert transmission. Native results remain required; this rule does not turn a supplied harness into a proof of the declared IC.
When a required connectivity assertion fails after installing its real error
check, inspect the native model as well as the RTL. A continuously driven marker
of one paired with a constant-zero assertion input exposes an initial-read
lowering defect. Preserve the assertion and repair the frontend's treatment of
settled continuous drivers under --ignore-timing. Keep procedural initial
variable snapshots and initial-only sampling intact. Native controls must prove
valid bindings in either declaration order and refute missing or wrong bindings.
Run the repaired frontend with the image's embedded Python and Tcl capabilities
preserved. The normal public consumer uses Yosys -y for LibreLane's JSON-header
step; standalone formal tests do not verify that build profile. Bind native tool
tests, the selected binary and the full public entry to the same source head.
Decode the native counterexample's initial state and input samples before changing an operational property. A request-to-output-rise assertion can fail when an unconstrained power-up state starts with an idle FSM and an already high output. Compare that state with the RTL reset assignments and the design's documented startup sequence; do not classify it as a tool defect from FAIL alone.
When the declared operational domain starts with reset, author only that startup
condition in formal_expert_properties.svh. The existing generator includes and
preserves this fragment. Constrain the first sample using the declared polarity,
then leave reset and traffic free. Keep the generic reset-safety floor free of
automatic assumptions, especially for reset-polarity and synchrony proofs.
Retain every DUT assertion, engine and bound. Cover a request after reset release followed by the asserted response, and refute a broken post-reset response under the same startup condition. A source assumption and a passing safety proof alone do not establish that the operational antecedent is reachable.
When a multi-output proof times out, retain its original tasks and property IDs. An additional native SBY task can select one original assertion or an exact small group, check that the selection contains the requested number of cells, remove the other assertion/cover sinks and let the tool prune unused logic. Preserve the selected statement, hardware, initial state, free inputs, clocks, assumptions, engines, bounds and timeout. Check the native assertion ID and assumption count after elaboration. A missing selection is an error, never an empty proof.
Record a scoped PASS for that ID while all other unresolved IDs stay UNKNOWN. A failed original task must still fail the consumer even when the scoped task passes. Do not promote the result to the complete core or IC. If helper invariants are needed, add them as assertions that the same engines prove on the same model; never convert them into assumptions or use an unproved helper.
For replicated sparse FSMs, a long error-to-alert property may need a state legality invariant before PDR can finish. Read the vendor enum decoder and each FSM's next-state/default branches. In the owned harness, assert that each encoded register remains legal on its existing clock and reset. Keep those helpers enabled only in the additional scoped tasks. Require the native engines to prove every helper and every original target; retain all original whole-core tasks with helpers disabled. Check all native IDs and assumptions after reading the model. Never turn a proved or unproved helper into an assumption.
This is a proof of the unchanged nominal trace model. If that model has no injected state faults, state-legality proofs do not establish fault-injection coverage; conditional-enable covers do not show that an illegal-state trigger was reached. Report that boundary alongside the original assertion results.
For a cross-clock held-request interface, the source retention register and the acknowledgement pulse can be separate proof obligations. Derive each helper from the connected RTL: retain a prior unacknowledged request, and clear acknowledgement after a source request/acknowledgement handshake. Assert both helpers alongside the original property and require all three native proofs. Keep both clocks free and retain the original reset model, engines and bounds. Preserve an explicit request/acknowledgement completion cover in the scoped model and measure it at the same bound; conditional-enable covers alone do not establish completion.
For a serial or iterative arithmetic requirement (a result built one bit or
one digit per clock), an end-to-end property checked by bit-level PDR or BMC
does not finish at production widths: each frame carries a full multiplier or
divider cone. Prove it in three layers, all as assert in one task:
@observe wires, e.g. sum register + carry register == reference
partial remainder), plus helpers linking the reference to the arithmetic
the documents state: the bits already emitted plus the remainder shifted
to the next bit position equal the sum of the partial products consumed
so far. Write that sum with shifts, not *, which the solver cannot
reason about at production widths;assume them).
Keep every operand and the reset free after the first reset (anyseq, no
assume): the reference restarts on every reset, so the helpers hold for every
input stream, including back-to-back computations and a reset in mid-computation.
Helpers that only restate the design stay unguarded. When layer 3 names the
operand held since the start (as the documents state it), one helper links the
reference to that held operand under the same precondition (e.g.
x_held -> sum(x0) == sum(x)); otherwise the guard is inert and the checked
value is not the documents' product. A result the documents define modulo 2^N
has the same bit pattern for two's-complement and unsigned operands, so one
reference covers both; say so in the fragment. Sign-extend in the reference
only when the documents require result bits at or above 2^N.
Before you sign, run a negative control: the same deck and task on a scratch
copy of the RTL with the result output inverted. The base case must refute it
with a counterexample. If the control still passes, the property does not
check the output, so it is no evidence. The control passes when the task FAILs,
but SBY stops at the first refuted assertion: when a helper that reads the
output fails first, the requirement row reads NOT_MEASURED, not REFUTED. To show
the document property itself catches the mutant, also run a scoped control with
only the layer-3 assertion and the helpers that do not read the output. Keep the control out of
phase2/stage1/rtl and record its native result in the disposition rationale.
The flow also runs its own mutation control on every assertion bound to a
must-prove requirement (formal_nonvacuity): Yosys mutate mutants of the
design's own cells behind a free selector, a SymbiYosys BMC to the proof task's
depth and timeout with only that assertion kept. An assertion no design mutant
falsifies (a tautology, or a guard the design never drives) leaves the
requirement NOT_MEASURED, so write the property so that a wrong design breaks it.
Give these properties their own task, e.g.
// @task spec_prove prove depth=<one full computation> engine=smtbmc:bitwuzla -- -DSPEC_TASK
(engines: see the engine paragraph above), and put them inside `ifdef SPEC_TASK (observer wires
stay outside it): the base case to that depth refutes a wrong design with a
counterexample, and the induction step proves all assertions without a bound.
A task with its own name runs beside the harness's prove / bmc tasks, so
what those already prove is kept if the induction does not close; a task named
prove would replace the harness's. When no deck stages the fragment yet,
rerunning the formal_verification row regenerates the harness and its deck
with the fragment's include and task.
Step 22 uses the single-clock model when the netlist has one clock edge and no
asynchronous flip-flop; under the multiclock model the induction needs about
twice the depth. An induction step that fails leaves the task UNKNOWN, which is
NOT_MEASURED, never PASS. Cover the check and its last bit so the proof is not
vacuous.When formal_authoring_request.json carries program_reference (status
EMITTED, from formal_serial_reference), the declared serial function, its
bit order, latency, re-arm and operand hold were all representable, and the
program has already written layers 1 and 3 of the rule above as a document
reference: the held operand fref_x0, the consumed partial-product sum
fref_ppx, the property a_declared_function_bit and its three covers. Paste
its text unchanged inside your task's `ifdef block and name
a_declared_function_bit in the disposition of the declared-function
obligation only (the row stating the product); it closes no reset, hold or
other obligation. Write only what the program
cannot know: the design-internal helpers that tie the design's state to
fref_* (and any induction-only reference of your own). A helper that links
the held operand to the design's live operand is guarded by fref_xheld. Do
not edit the program text to make a proof close; a property that will not
prove against it is a finding about the design or the declaration. Without
program_reference, author all three layers as above.
Read the input contract before changing cover search order. If it requires a
witness within the declared bound, an existing native trace can supply a step
for SBY cover's skip option. Keep the same prepared model, every cover target,
free inputs, clocks, assumptions, engine, depth, and timeout. Native skip N
omits earlier cover queries while retaining initialization and every transition
in the prefix. It does not shorten the trace or start the design in a new state.
Accept only the native PASS that reaches every required cover within the original limits. Missing earlier queries cannot establish unreachability or the earliest response time. Keep the original query order when the contract requires those results. Do not apply this choice to prove or BMC tasks, change a safety obligation, or promote component cover witnesses to a complete row verdict.
A temporal monitor can store a comparison and its operands in distinct native
registers. Their arbitrary initial values need not agree, even when every later
capture uses the same clock and data. An owned scoped SBY task can request
# vibeic: assert sampling identities after its native preparation and any
reviewed conservative data cuts. The program preserves the existing RTLIL and
adds a capture marker plus assertions for identical samples and captured
comparisons. It also offers stronger unclocked monitor assertions. Every added
assertion must prove with the original target; a failed strengthening is not a
refutation of the original clocked statement. Retain the original tasks and
bounds. Do not use these helpers as assumptions.
Treat an exported PDR invariant as untrusted. A multi-output success can include clauses that are only valid for a finite frame. Preserve every original check and validate candidate clauses as assertions, including both the bounded basis and induction, before using their scoped result. A verified control-only joint miter gives no credit to any excluded data property.
An additional # vibeic: control invariant <support-name-patterns> comment
selects the owned control helpers for the auxiliary joint miter. The native
program exports its clauses and appends their conjunction as another assertion
to the full prepared model. The same SBY task must prove that assertion and all
original checks with the original engines and limits. This also validates the
mapping back from physical AIG latches. The initial-state guard applies only to
the candidate conjunction; every original assertion remains active at time zero.
In a multi-task deck, put both markers under the same task prefix. The adapter preserves that condition on every generated native command. A scoped marked task must not run its preprocessing in an original whole-design task, nor clear that task's failure. Verify both native results through the normal consumer.
A maximal-length check counts advances from the reset seed and is switched off by a sticky flag once the register is reseeded or perturbed. Before attempting any argument about the period, ask whether the register can advance at all while that flag is clear. In an integration that reseeds the generator before its first use it cannot, and then the period statements hold for a short reason: flag clear outside reset implies counter 0 and state equal to the reset seed.
Add exactly that implication to the owned harness as a combinational assertion on the real flag, counter and state, next to the unchanged original statements, and let the task prove all of them together at the original bounds. It is never an assumption. If the tool refutes it, the register does advance unperturbed and the full period has to be argued instead. Report the result as what it is: the statements are proved for this integration because the monitored sequence never starts, not because 2^n-1 steps were covered.
When a property forbids a datapath source, read the native counterexample's write enable and source selector at the decision edge. An inequality against an expression's value does not prove that the register was written from that expression. A different legal source can have the same value, especially under chosen input. Retain the original refutation and distinguish a circuit defect from an error in the stated property. A property correction must follow the accepted requirement meaning, not merely remove its counterexample.
The AES IV clearing statement was refuted 32 core clocks after reset. Its
actual source was the legal counter (IV_CTR), while the chosen input made
the excluded saved-input XOR intermediate-state value equal that counter
value. Parenthesizing the XOR did not fix the source/value confusion. The
accepted design erratum instead checks the write decision's source selector
under the actual fatal alert. Its scoped native PDR proof passed in 23 s
with the original depth 40, 300 s run budget and zero added assumptions;
the encoding helpers were proved assertions. This does not authorize changing
another design's requirement or claim whole-core security closure.
For an escalation or fault-response property, reconstruct the native trace's commit edge, alert edge and every sampled history value. A register change observed after the alert can have been committed before it. Comparing that value with an older internal state can reject a legitimate pre-fault result. Express the accepted requirement at the write decision it actually governs; do not infer that a prior result was written under the fault.
The AES output-data statement was refuted at core clock 40: the normal result committed at clock 38, and the external integrity fault arrived afterward. The later changed-value observation compared that valid result with its clock-38 cipher state. XOR grouping was unrelated to this failure. The accepted erratum checks that a write decided under the fatal alert is an acknowledged output clear, with encryption inactive. Scoped native PDR passed in 17 s. An independent joint Bitwuzla base-case-to-40 and induction proof of both corrected statements and their asserted helpers passed in 255 s.
Keep proof and reachability separate. The conditional write covers were not reached within depth 40; no output-data write under the alert was exhibited. The joint task's separate ABC BMC arm timed out at 300 s, and wrapper cover results remained NOT_MEASURED. None of those outcomes is a whole-deck PASS, nor does the safety proof establish that the fault-response write occurs.
Security-target applicability comes from the design's structured declarations,
not from guessing what its prose means. An authored
input/verification/security_requirements.json records documents_reviewed
with files and sections, quantitative_targets, and qualitative_properties.
An explicit empty target list, with the reviewed source locations and the
qualitative property list, makes only the quantitative comparison not applicable.
An existing structured target still uses its original bounds.
Keep every qualitative property's ID, claim, source and exact native check references in the row. Credit an assertion only when its exact native model cell is present in a passing unbounded prove task. A bounded task is not that proof. Credit a cover only from its exact native COVER result and reached trace. Missing checks, partial scope and incomplete native results leave the property NOT_MEASURED by name. Duplicate IDs cannot overwrite an unchecked claim with a different passing claim. No numerical target or security result is invented, and quantitative inapplicability never removes qualitative obligations.
A delivery route whose integration claims different properties (a chip that ties
an input off, a hard macro that keeps the full interface) ships its own
input/verification/<ic|ip>/security_requirements.json; the security step reads
it on that route instead of the shared file. A countermeasure that is outside a
route's scope goes in outside_scope with an id, a reason and a cited source,
never silently out of the list: the row shows it NOT_APPLICABLE with that reason,
and one whose cited source is not one of the declaration's
documents_reviewed, with one of that entry's reviewed sections, stays
NOT_MEASURED. Only a document or an owner
ruling puts a countermeasure out of scope; a mechanism the requirements keep in
the RTL (only its input tied) stays a claim: check the tie-off and the mechanism,
or leave it unmeasured with a reason.
A leaf harness can give an internal input more behavior than its connected producer permits. Read the counterexample and the real connection before changing the leaf's properties. Preserve every original obligation, engine and bound. If the producer guarantees an input domain, prove that guarantee on the actual producer with free inputs and no assumptions, then use it at the leaf boundary. Keep the producer proof as a supplied native task that the ordinary formal consumer re-runs alongside the leaf tasks.
A scoped producer task may select its added guarantee and remove unrelated assertion sinks. Assert the exact selected native cell count before pruning; never remove the leaf's original assertions. Keep scope explicit: this proves the producer guarantee and the leaf obligations under the stated boundary, not whole-design functionality.
External traffic assumptions must follow the documented interface. Count accepted requests at the actual external request boundary, including its upstream qualification, rather than an unqualified leaf signal. Preserve legal concurrency, values and response delays. Report every assumption and native free-input count, and reach explicit post-reset request and response covers. A missing vendor formal header is an input dependency to restore from the pinned source; a dummy assertion header is not a formal substitute.
Verification collateral is design input. A design that owns security property decks
ships them under input/verification/formal/security/ (decks for the implemented
netlist: implemented_security/); the security step reads them from there together
with any deck in the project's own formal folder. A shipped deck names its sources
relative to its own folder (SymbiYosys is started there), so it carries no path of
the machine it was written on.
Decks in different input or project folders may share a filename. Run each actual path through the native adapter and retain its separate task and proof directory. When basenames collide, use the project-relative deck path in task labels and property references. A wrapper naming collision must not prevent measurement.
When one task over every assertion does not reach a final status, partition instead of waiting on it:
select -set keep t:$check t:$assert %u <named blocks> %d), so the union is the full list by construction; check it on the
tool's own per-task assertion counts.select -assert-count N),
so a renamed statement stops the read instead of leaving the partition silently.timeout is a run budget: a task that stops at it has not been measured yet, so
rerun it with a budget that lets the tool finish. Report each task's wall time.When the input declares storage unreadable by software, bind its read-data property to the actual software-visible response. A register-leaf miter does not establish the containing interface or behavior outside its host assumptions. Use native constant-data or noninterference proofs with the documented address, error and reset scope. Reach accepted-request and response conditions for the protected regions. Report unmeasured interfaces and internal-state secrecy separately.
A native cover model can prune data that its cover predicates do not use. Cite the unbounded proof for redaction and the covers for transaction feasibility; never infer a concrete payload from unknown waveform bits. Keep assumptions and configuration explicit, and do not transfer results between different RTL profiles.
A solver can reach a cover or find an induction trace before spending its run
budget exporting a waveform. Read the native log's reached step and last export
action before changing a property or bound. For an SBY SMT engine, the native
vcd_sim on setting in [options] sends its Yosys witness to Yosys sim for waveform
generation instead of querying every VCD signal from the solver. Keep the model,
properties, reset, clocks, assumptions and bounds unchanged. An SMT-only deck
must omit AIG-specific options such as aigsmt.
When earlier targets are already measured, retain their original deck and results and search only the unmeasured targets in an additional scoped task. Do not waive or remove a target from the original obligation set. Read the native terminal status, exact cover IDs and complete witness output. A reached cover is feasibility evidence; an induction trace is not an initialized counterexample, and neither establishes a whole-design safety proof.
The xprop witness (engine_*/trace.vcd) carries the counterexample's input
values, but its internal values are only the binary half of the xprop
encoding, so it cannot show which state is unknown. On a FAIL,
programs/formal_x_witness_replay.py (called from formal_x_after_reset.prove)
replays those inputs on the original RTL in 4-state Icarus simulation, holding
the proof's reset steps. It records x_after_reset/witness_replay.json and the
row's witness_replay: the X output bits at the failing step, and the register
bits that stayed X at every step since reset release (the X-source candidates).
Read the candidates against the fetched or applied stimulus before you choose a
fix. On a bit-serial CPU this showed a misaligned word store writing data-register
lanes that had never been shifted in. Resetting those lanes did not remove the
X, because the decode state is unknown before the first instruction. The fix
belonged to the access itself (no lane selected for a misaligned store).
Simulation settles an X-valued branch condition on one side. A replay that does not reproduce the X is not evidence that the design is clean, and the replay never changes the proof status. A fix is judged only by rerunning the proof.
The outputs-only X-after-reset property is true but not inductive on a design
whose flops are all reset, so PDR must rediscover one invariant per flop bit.
formal_x_after_reset.prove first asserts every output and every flop known
and proves it by k-induction; that PASS decides, because it implies the
outputs-only property. Any other result (FAIL, UNKNOWN, an encode error) gives
no verdict, and the unchanged outputs-only proof decides; an unreset flop that
never reaches an output is still not a failure. An undriven net is X: it never
yields a PASS. Do not shorten the outputs-only proof to get a verdict.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vibeic/vibe-ic --plugin vibe-ic71 skills in this plugin
/ams-simPlan and run analog / mixed-signal simulations — DC op, AC, transient, Monte Carlo, corner sweeps, PSRR/CMRR, noise — using ngspice, Xyce, Spectre, or HSPICE, and triage the results. Use when the user says "SPICE", "ngspice", "Monte Carlo", "corner simulation", "analog sim", "AC analysis", "transient", "PSRR", "CMRR", "noise analysis"./analog-extraction-resimPost-layout parasitic extraction + re-simulation for analog blocks — compares pre-layout vs post-layout specs. Use when the user says "post-layout resim", "extract and resimulate", "parasitic check", or at Step A7 of the analog track./analog-flow-orchestrateOther plugins' skills for the same job