Introduction: The Challenge of Logic Synthesis
In Electronic Design Automation (EDA), logic synthesis is a critical step that transforms abstract mathematical functions into networks of logic gates, typically represented as And-Inverter Graphs (AIGs). To optimize these networks for area, speed, and power, engineers employ algebraic manipulations such as rewriting (rw), resubstitution (rs), and refactoring (rf).
However, the search space for these optimizations is immense. Traditional tools often apply a single optimization type globally, but optimal results typically require a heterogeneous mix of techniques applied locally to different nodes. With $N$ nodes and multiple operations, the search space grows to $O(3^N)$, creating a "needle in a haystack" problem that exceeds the capabilities of standard greedy algorithms.
Methodology: The BoolGebra Framework
BoolGebra addresses this complexity by integrating traditional logic synthesis with deep learning to prune the search space. The framework treats the circuit as an attributed graph and uses a Graph Neural Network (GNN) to predict the impact of various optimization combinations.
Attributed Graph Learning
The circuit is converted into a graph where each node is enriched with:
- Static Features: Structural information (e.g., inverted inputs) and functional gain estimates for specific operations.
- Dynamic Features: One-hot encodings representing the specific optimization assignment currently being evaluated for that node.
GNN Predictor and Flow
The core of BoolGebra is a GraphSAGE-based architecture that extracts embeddings from the attributed AIG. These embeddings are processed by a fully connected network to predict the final "optimization result"—a proxy for the circuit size reduction achieved without running the full synthesis tool.
The operational flow involves:
- Sampling: Generating a batch of random optimization assignments.
- Pruning: Using the GNN to rank these samples rapidly.
- Evaluation: Executing only the top-ranked candidates in the industry-standard ABC synthesis tool.
Experimental Results and Insights
The framework was evaluated on industry-standard benchmarks (ISCAS85, ITC/ISCAS99). BoolGebra demonstrated significant improvements in logic minimization, achieving average gains of 3.6% over rewriting, 5.3% over resubstitution, and 5.5% over refactoring. These results are highly significant in EDA, where even small percentage gains directly impact silicon area and performance.
A key finding is the model's generalization capability. A GNN trained on simpler designs (e.g., b11) successfully predicted optimizations for much larger, more complex circuits. This suggests that the model learns fundamental local patterns of Boolean logic rather than specific circuit topologies.
Conclusion and Future Work
BoolGebra serves as an efficient "filter" for expensive synthesis operations. While highly effective, the authors noted that the Gaussian distribution of training data provides fewer examples of extreme outliers, potentially limiting peak performance. Future work will extend this graph-learning approach to technology-dependent stages, such as cell mapping and physical placement on the chip.
Summary updated