Integrating Exact Simulation into Sweeping for Datapath Combinational Equivalence Checking

Zhihan Chen, Xindi Zhang, Yuhang Qian, Qiang Xu, Shaowei CaiICCAD 2023

Abstract

Combinational Equivalence Checking (CEC) is a critical task in digital design verification, yet datapath circuits with dense XOR logic remain a significant challenge for traditional SAT-based methods. This paper proposes HYBRIDCEC, a framework that integrates Exact Probabilistic-based Simulation (EPS) with SAT solvers. By employing a heuristic engine selection and a memory-efficient simulation strategy, the proposed method achieves up to 1000x speedup over existing tools on industrial datapath benchmarks.

Introduction

Combinational Equivalence Checking (CEC) is the process of proving that two versions of a digital circuit are functionally identical, a cornerstone of Electronic Design Automation (EDA). The industry standard for CEC is SAT sweeping, which uses Boolean Satisfiability (SAT) solvers to prove equivalence node-by-node.

However, datapath circuits—the parts of a chip handling arithmetic like multiplication and addition—are notoriously difficult for SAT solvers. These circuits contain dense "XOR chains" that cause SAT solvers to time out, even on relatively small components. While Exact Probabilistic-based Simulation (EPS) is excellent at handling XOR logic, it traditionally suffers from an "exponential memory wall," requiring $O(2^N)$ memory for $N$ inputs, which limits its use to very small circuits.

Methodology

The authors propose three main innovations to bridge the gap between SAT and EPS within a unified framework.

1. Hybrid Sweeping Engine and Heuristics

The core of the approach is a hybrid engine that dynamically chooses the best solver for a given logic block. The system uses a scoring function ($score_{XOR}$) to measure the density of XOR blocks in a circuit's "cone of influence." If the score is high (above 0.15), the system utilizes EPS; otherwise, it defaults to a traditional SAT solver.

The hybrid sweeping engine architecture, incorporating heuristic decisions to switch between SAT and Exact Simulation.

2. Memory-Efficient EPS

To bypass the memory limit of EPS, the authors introduced a "truncation and splitting" method. Instead of simulating all $2^N$ input patterns in one massive block, the task is divided into $K$ smaller groups. This allows EPS to handle circuits with more primary inputs by trading a small amount of time for a massive reduction in memory footprint.

Memory management strategy for EPS using truncation and splitting of input patterns.

3. Structural Regularity and Parallelization

Datapath circuits are highly regular, often consisting of repetitive sub-modules. The authors implemented Identical Structure Detection (ISD), a greedy algorithm to detect sub-modules with identical structures. If one sub-module is proven equivalent, all identical ones are merged automatically, skipping redundant solver calls. Furthermore, the process is parallelized (PARAHCEC) by partitioning EPS simulation patterns across multiple CPU cores and utilizing parallel SAT solvers.

Experimental Results

The researchers evaluated their tool on a benchmark suite of 50 industrial datapath circuits (multiply-add hybrid arithmetic units). Key findings include:

  • Performance: HYBRIDCEC was at least 100x faster than the state-of-the-art tool ABC on 30% of instances, and 1000x faster on 12% of them.
  • Coverage: The hybrid tool solved 45 out of 50 instances, whereas ABC solved only 25.
  • Scalability: The 64-thread version (PARAHCEC) achieved a 77.4x speedup over the sequential version, demonstrating high parallel efficiency.

Conclusion

By formalizing the complementary strengths of SAT and EPS, the authors transformed a niche, memory-limited technique into a robust engine for general-purpose sweeping. The integration of structural regularity detection (ISD) further optimized the process, allowing over 50% of sub-circuits to be merged without heavy-duty solver calls. Future work will focus on distributing the tool across multiple server nodes and applying these hybrid techniques to Sequential Equivalence Checking.

Summary updated

BibTeX
@inproceedings{chen2023integrating,
  author = {Zhihan Chen and Xindi Zhang and Yuhang Qian and Qiang Xu and Shaowei Cai},
  title = {{Integrating Exact Simulation into Sweeping for Datapath Combinational Equivalence Checking}},
  booktitle = {ICCAD},
  year = {2023},
  doi = {10.1109/iccad57390.2023.10323876},
}
Figure