Formal Hardware Verification

Hardware verification proves properties of an RTL transition model. An equivalence miter turns a discrepancy between two combinational designs into a satisfiability problem.

Source
Anbloq
Language
English
Created
Updated
Chapters
3
Reading time
1 min
In this article3 chapters
  1. Combinational equivalence asks for a witness to a difference
  2. Sequential equivalence must align time
  3. Bounded analysis and induction complement each other

Combinational equivalence asks for a witness to a difference

For two combinational circuits \(F,G\) under the same input constraints, build an output flag that is true whenever some output differs. A solver answers the query

\[ \exists x\quad \bigvee_j\bigl(F_j(x)\oplus G_j(x)\bigr). \]

A satisfying assignment is a concrete disagreement. Unsatisfiability proves equivalence for the chosen encoding and assumptions. Conventions for unknown values and invalid inputs affect what the miter compares. A result under constrained inputs says nothing directly about unreachable or unspecified combinations outside those constraints.

A bounded model check makes a trace of a given length a finite formula. An inductive invariant can certify all reachable lengths by closing a set of states under every transition.

Sequential equivalence must align time

A retimed circuit may produce the same sequence with different internal registers and latency. A proof relates reachable states, or compares observations after the intended pipeline delay. Reset conditions establish the initial relationship. An inductive step shows that corresponding legal inputs preserve it. Comparing all register bits or asserting equality on each unaligned tick would rule out many correct refactorings.

Bounded analysis and induction complement each other

Bounded model checking unrolls the transition relation for a fixed number of steps. It can find shallow violations quickly, but a finite bound is a complete proof only with additional information, such as a completeness threshold. Induction or a safety invariant can cover arbitrary depths. SMT can also reason about bit-vectors and arrays without immediately converting every fact to gates. Compare temporal model checking, SMT, and representation changes in verified compilation.[1][2]

References

  1. Armin Biere et al., Symbolic Model Checking without BDDs ↩
  2. University of California, Berkeley, ABC: A System for Sequential Synthesis and Verification ↩