TL;DR
This paper introduces a miter-aware Look-Up Table (LUT) mapping framework that optimizes the formulation of Logic Equivalence Checking (LEC) problems before they reach the SAT solver. By structurally aligning the golden and implementation designs, algebraically simplifying XOR-dense regions via Gaussian elimination, and selecting solver-friendly LUTs, the approach achieves up to a 92.1% reduction in SAT solving time.
What Problem Does This Paper Address?
Logic Equivalence Checking (LEC) is a critical step in hardware verification, ensuring that a "golden" design and its post-synthesis implementation perform the exact same Boolean functions. The standard industry pipeline creates a "miter" circuit by connecting the outputs of both designs through XOR gates. If a Boolean Satisfiability (SAT) solver proves that the miter's output can never evaluate to 1, the designs are equivalent.
However, modern aggressive logic synthesis heavily perturbs circuit structures, leading to two major bottlenecks:
- Structural Disruption: Synthesis obscures matchable internal equivalence points between the two designs, preventing the SAT solver from performing functional merging to shrink the problem size.
- XOR-Dense Regions: Arithmetic and cryptographic modules generate dense chains of XOR gates. Standard Conflict-Driven Clause Learning (CDCL) SAT solvers struggle with these structures, resulting in massive search spaces and highly inefficient backtracking.
The authors argue that instead of treating the SAT solver as a black box and hoping it copes with a messy, flattened netlist, we must fundamentally improve how the miter is modeled before solving begins.
Methods
The authors propose a novel mapping-based LEC framework that transforms the netlist into a simplified, LUT-based miter abstraction. The framework integrates three key components:
- Equivalence-Preserving LUT Mapping: Instead of mapping the two circuits independently, this algorithm jointly maps both sides of the miter. It identifies XOR/XNOR structures near the primary outputs as structural anchors and recursively matches candidate LUTs across both designs based on topological depth and functional hashes. This forces internal equivalence points to remain explicit in the final Conjunctive Normal Form (CNF) formula.
- Gaussian-Guided XOR Modeling: The framework detects XOR-dense areas and applies Gaussian Elimination (GE) over the finite field $GF(2)$. Rather than eliminating variables entirely, it explicitly reconstructs these affine relations as standalone XOR LUTs, preserving linear dependencies so the SAT solver can leverage them for faster constraint propagation.
- Solver-Oriented LUT Selection: For non-XOR regions, the mapping engine guides LUT selection using a multi-dimensional "solver-friendliness" metric. This metric evaluates candidate LUTs based on branch count (search space partitioning), sensitivity (reactivity to bit flips), determinacy (implication strength), monotonicity, conflict interpretability, and structural compactness.
Datasets
The framework was evaluated on a comprehensive benchmark suite consisting of equivalent and inequivalent circuit pairs derived from:
- Industrial LEC problems
- Public benchmark suites: ForgeEDA, ITC99, EPFL, and Opencore.
Inequivalent circuit pairs were generated by introducing random functional perturbations (modifying nodes) into the synthesized designs before constructing the miter.
Key Insights and Ideas
- Joint Mapping vs. Single-Circuit Optimization: Previous attempts at using LUT mapping for SAT preprocessing only optimized individual netlists. Jointly mapping both sides of a miter actively rediscovers and locks in cross-design structural correlations that synthesis attempted to hide.
- Expose, Don't Just Eliminate: Traditional Gaussian elimination in SAT solvers often substitutes variables away. Here, materializing the discovered affine relations as explicit XOR LUTs provides a structural roadmap that helps both circuit-based and CNF-based solvers propagate constraints significantly faster.
- Cheap Offline Heuristics: Computing complex properties like determinacy and conflict interpretability for an entire circuit is too expensive. However, because the framework restricts itself to small 2-, 3-, or 4-input LUTs, these metrics can be precomputed offline in seconds and cached, providing "free" solver-centric guidance during the mapping process.
Key Results
The framework was evaluated across multiple state-of-the-art SAT solvers (Kissat, CaDiCaL, X-SAT, CSAT) and ABC's advanced cec engine:
- Massive Speedups: The complete framework achieved up to a 92.1% reduction in solving difficulty for CaDiCaL and 91.4% for Kissat.
- Robust Performance: Across the entire dataset, it delivered an average 83.3% improvement under the PAR2 metric.
- Ablation Insights: Miter-aware mapping alone reduced runtime by 62.5%, while the Gaussian-guided XOR modeling alone yielded a 36.8% reduction, proving that structural alignment and algebraic simplification are highly complementary.
Limitations and Future Work
- LUT Size Constraints: The authors restrict their mapping to a maximum of 4-input LUTs. Larger LUTs ($\ge 5$ inputs) cause an exponential explosion in CNF clause size ($2^n$), which quickly degrades SAT solver performance. Scaling this approach to larger LUT sizes without clause explosion remains an open problem.
- Static Weighting: The weights for the multi-dimensional solver-friendliness metrics are currently tuned using Bayesian optimization on a static validation set. Developing a mechanism to dynamically adapt these weights based on the specific circuit topology during mapping could further improve efficiency.
Summary updated