Data abstraction and uninterpreted functions
Data independence
Many control blocks only move data: FIFOs, crossbars, arbiters, credit links. They never branch on its value. Such designs are data-independent, and their correctness does not depend on the data width. In practice:
- Prove control properties with a data width of 1 (or 0 if the parameter allows).
- Prove ordering and integrity with a tracked item and 1–2 data bits: the tool can still tell the tracked item apart from the others.
- Write down the data-independence argument in the FV plan (which signals are data, and that no control logic reads them).
Symbolic values instead of all values
To check "the comparator flags every value above the threshold", you do not need to explore every pair. Compare against a symbolic threshold (chosen once by the tool) and let the input vary — the proof covers all thresholds at once:
(* anyconst *) logic [31:0] sym_thr; // or: free input + $stable assumption
assign dut_thr = sym_thr; // drive the DUT configuration with it
a_flag: assert property (sample_vld |=> over_flag == ($past(sample) > sym_thr));Uninterpreted functions: abstracting arithmetic
Multipliers and dividers are among the hardest logic for SAT solvers. If a property is about control around the arithmetic (pipeline stalls, bypassing, ordering), the actual function does not matter — only that it is a function: the same inputs give the same output. That is an uninterpreted function:
- Cut the multiplier's output (black box it); its result becomes a free value.
- Add aux code that remembers one symbolic input pair and the output seen for it.
- Assume that whenever the same inputs appear again, the output is the same.
// multiplier black-boxed: mul_out is free. Make it behave like *some* function.
(* anyconst *) logic [15:0] sym_a, sym_b;
logic seen;
logic [31:0] seen_out;
always_ff @(posedge clk)
if (rst) seen <= 1'b0;
else if (mul_vld && mul_a == sym_a && mul_b == sym_b && !seen) begin
seen <= 1'b1; seen_out <= mul_out;
end
am_consistent: assume property (seen && mul_vld && mul_a == sym_a && mul_b == sym_b |-> mul_out == seen_out);Now prove pipeline properties such as "the result written back for instruction X is the multiplier output for X's operands" — the bypass and stall logic is fully checked, and the solver never sees a multiplier. Check the multiplier itself separately (equivalence against a reference, or a dedicated datapath tool).