Convergence & complexity interview questions
Inconclusive proofs, induction, helper assertions, abstraction, cut points and case splitting.
📚 Learn it first: Chapter 10: Taming Complexity · Chapter 16: Advanced Abstraction Techniques
Q1A property is "inconclusive" after hours of runtime. What do you do?
Basic
- Check the bounded depth reached against the depths of your covers — the bounded result may already be enough.
- Reduce the problem: smaller parameters (FIFO depth 4 instead of 64), black-box unrelated sub-blocks.
- Add helper assertions (invariants) and prove them first; tools reuse proven ones as lemmas.
- Abstract hard logic: counters, memories, arithmetic.
- Split the property by case (per channel, per opcode) and try other engines.
Q2Explain k-induction. Why does the induction step sometimes fail on a correct design?
Intermediate
k-induction proves two things: (1) base: the property holds for the first k cycles from reset; (2) step: from any k consecutive states where it holds, it also holds in the next state.
The step starts from arbitrary states, including unreachable ones (e.g. a FIFO count that disagrees with its pointers). The property may fail from such a state even though the design is correct. Fix: add helper invariants that rule out the unreachable states (count == wptr - rptr), so the property becomes inductive.
Q3What are helper assertions (lemmas) and how do they speed up proofs?
Intermediate
Assertions about internal consistency that you prove first and then let the tool use as assumptions for harder properties — for example pointer relations, one-hot encodings, or "busy implies a valid entry".
They are safe because they are proven, not assumed blindly. They cut away unreachable states for induction-based engines and often turn an inconclusive end-to-end property into a quick proof.
Q4What is a cut point? Is a proof still valid after cutting?
Intermediate
A cut point disconnects an internal signal from its driver and makes it a free input. The tool then explores more behaviours than the real design has (an over-approximation).
So a proof with cut points is still valid for the real design. A failure may be spurious — the free signal may do something its real driver cannot. In that case add an assumption describing the real driver's behaviour, and prove that assumption separately.
Q5Why and when do you black-box a module?
Basic
Black-boxing removes a sub-module's logic; its outputs become free inputs. Use it for logic that is not relevant to the properties (e.g. a big memory or a separately verified datapath) to shrink the state space.
Like cut points it over-approximates: proofs stay valid, but failures that rely on the black box doing something impossible must be handled with assumptions about its outputs.
Q6A 32-bit timeout counter makes every proof inconclusive. How do you deal with it?
Advanced
- Reduce the parameter: verify with a small timeout value if the RTL is parameterised; the logic is the same.
- Abstract the counter: cut its register and let it jump to any value, but keep important relations (e.g. assume it only moves toward expiry, and that "expired" is reachable).
- Initial value abstraction: start the counter in any state instead of 0, so the tool can reach "almost expired" in a few cycles.
Always add covers to show the timeout path is still reachable after abstraction.
Q7What is case splitting?
Intermediate
Prove a hard property as several easier ones, each under an assumption that selects one case, then show the cases cover everything. Example: a crossbar property proven separately for each input port with assume property (src == 2), plus a check that the cases are exhaustive.
Each sub-proof has a smaller effective state space and often converges when the full one does not.
Q8How do you handle large memories inside a formal block?
Advanced
- Reduce depth and width through parameters when the control logic does not depend on them.
- Black-box the memory and use a tracked-address model: watch one symbolic address, remember the last data written there, and check that a read of that address returns it.
- Use tool memory abstractions that track only addresses that matter.
The tracked-address method proves correctness for every address because the address is free.
Q9What is sequential depth and why does it affect proof time?
Basic
The number of clock cycles needed to reach a state from reset. A bug that needs 300 cycles to appear (e.g. after a long counter wraps) is expensive for BMC, which must unroll 300 cycles.
Reducing depth — smaller parameters, initial-value abstraction, or proving helper invariants so induction does not need deep unrolling — is one of the most effective convergence techniques.
Discussion
No comments yet.