FVO — Formal Verification Online
Lesson 16.4 · Advanced Abstraction Techniques

Initial-value abstraction and deep state

Bounded model checking reaches a state only after enough cycles from reset. A watchdog that bites after 50,000 quiet cycles needs a 50,000-cycle trace to show its most important behaviour — far beyond any practical bound. Two techniques avoid the depth altogether.

1. Initial-value abstraction

Let selected registers start at any value instead of their reset value. The tool can now begin "almost expired" and reach the bite in a few cycles. Because "any value" includes the real reset value, this is an over-approximation: proofs remain valid. Failures may start from states the real design never reaches — for example a counter value that contradicts another register. Constrain the start with proven invariants, or check the counterexample.

2. Inductive helpers

Induction-based engines (k-induction, IC3/PDR) prove a property from every state where it holds, so reachability depth does not matter — if the property is inductive. A deep property becomes inductive once you add a helper that ties the design's state to a simple model. For the watchdog:

helper relation for a down-counter
// auxiliary model: ticks since the last kick (or reset), saturating at TIMEOUT
logic [31:0] quiet;
always_ff @(posedge clk)
  if (rst || kick)            quiet <= '0;
  else if (quiet != TIMEOUT)  quiet <= quiet + 1;

a_helper: assert property (32'(remaining) + quiet == 32'(TIMEOUT));   // design state <-> model
a_spec:   assert property (bite == (quiet == 32'(TIMEOUT)));          // the requirement

Each step of the design keeps remaining + quiet constant, so the helper is 1-inductive, and with it the spec follows immediately. The proof takes seconds for any TIMEOUT. Without the helper, k-induction would need k close to TIMEOUT.

GoalUse
Find bugs near expiry quicklysmaller TIMEOUT parameter (under-approximation) or initial-value abstraction
Full proof for the real TIMEOUTinductive helper relating the counter to a model
Cover "bite happens"smaller TIMEOUT — a cover at 50,000 cycles is out of reach for BMC

Discussion

No comments yet.

Was this page helpful?

Tip: select any text on the page before clicking Report and it will be quoted in your report.