Synthesizing Multiple Boolean Functions using Interpolation on a Single Proof

Georg Hofferek, Ashutosh Gupta, Bettina Könighofer, Jie-Hong Roland Jiang, Roderick Bloem

Introduction

Presented at FMCAD 2013, this research introduces a highly efficient method for automatically generating hardware controller logic. By transitioning from slow, iterative processes to a method leveraging a single mathematical proof, the authors demonstrate how high-level specifications can be transformed into functional Boolean logic in seconds rather than hours.

Problem Statement: Functional Synthesis

In hardware design, implementing a controller—the component managing data flow and hazards in a CPU pipeline—is notoriously difficult and error-prone. While it is often straightforward to specify intended behavior (e.g., using the Burch-Dill paradigm to state that a pipelined processor must match a non-pipelined reference model), automatically turning that "what" into the "how" (logic gates) remains a challenge.

Previous functional synthesis methods for multiple signals relied on Binary Decision Diagrams (BDDs), which struggle with complex data paths, or iterative "solve-and-substitute" SMT methods. These iterative approaches suffer from "interpolant explosion," where formulas become unmanageably large as more signals are added.

Methodology: $n$-Interpolation on a Single Proof

The proposed workflow treats synthesis as an interpolation problem over the Theory of Uninterpreted Functions ($T_U$). This allows the abstraction of complex datapath details (like ALU internals) while proving correct data flow.

  1. SMT Encoding: Specifications are converted into a quantified formula, then negated to create an unsatisfiable SMT problem.
  2. Proof Transformation: Using the veriT solver, the authors generate a proof of unsatisfiability. They apply algorithms to remove non-colorable literals and reorder resolution steps to ensure the proof is "local-first."
  3. $n$-Interpolation: This core contribution partitions a single proof into $2^n$ parts (for $n$ signals), allowing all functions to be extracted simultaneously. This "single proof" approach naturally handles signal dependencies without back-substitution.
  4. Circuit Generation: The resulting quantifier-free interpolants are directly converted into logic circuits.

Benchmarks and Datasets

The tool was evaluated on several hardware-inspired benchmarks, ranging from basic test cases (const) to scaled illustrative examples (illu02–illu08). Notably, the proc benchmark represents a non-trivial 2-stage pipelined processor.

The "proc" benchmark: a 2-stage pipelined processor with memory and ALU.

Key Results

The performance gains over traditional methods are significant. For the pipe benchmark, synthesis time dropped from 14 hours to just 1.6 seconds. On the proc benchmark, where standard QBF solvers failed after exhausting 192 GB of RAM, the authors' tool succeeded in 28.1 seconds.

Experimental results showing synthesis time and scalability across various benchmarks.

The tool successfully synthesized up to 8 coordinated control signals in approximately 21 minutes, demonstrating scalability that would be impossible for iterative SMT-based methods due to formula growth.

Limitations and Future Work

The method currently requires expanding existential quantifiers, leading to an initial formula size that grows exponentially ($2^n$) with the number of signals. Future work may address this for controllers with dozens of signals. Additionally, while the current implementation focuses on uninterpreted functions and equality, the framework could potentially extend to linear arithmetic. Finally, optimizing SMT solvers to produce smaller proofs could further improve the quality of synthesized circuits.

Summary updated

BibTeX
@inproceedings{hofferek2013synthesizing,
  author = {Georg Hofferek and Ashutosh Gupta and Bettina Könighofer and Jie-Hong Roland Jiang and Roderick Bloem},
  title = {{Synthesizing Multiple Boolean Functions using Interpolation on a Single Proof}},
  booktitle = {FMCAD},
  year = {2013},
  url = {https://openreview.net/forum?id=sY8F441pFj},
}
Figure