Abstract
Approximate Logic Synthesis (ALS) is a vital technique for optimizing arithmetic circuits in resource-constrained edge devices. Traditional ALS methods often treat circuit outputs independently, leading to redundant logic and wasted silicon area. This paper introduces SHARED, a novel template that enables logic sharing across multiple outputs during the optimization process. By utilizing SMT-based search guided by two new proxy metrics—Products In Total (PIT) and Inputs To Sums (ITS)—the SHARED approach consistently achieves significant area reductions compared to state-of-the-art tools like MUSCAT, MECALS, and XPAT, while maintaining strict error thresholds.
Introduction
Deploying deep learning models on "edge" devices, such as smartwatches or IoT sensors, requires a delicate balance between performance and power consumption. Given the limited battery life of these devices, engineers frequently employ approximate computing. The premise is that if a neural network can tolerate a marginal drop in accuracy, its internal mathematical hardware (e.g., adders and multipliers) can be redesigned to be significantly smaller and more energy-efficient.
The primary challenge lies in Approximate Logic Synthesis (ALS)—the automated process of rewriting a precise circuit into a "good enough" approximate version. Previous tools, such as the Boolean rewriting algorithm XPAT, utilized templates that treated each circuit output as an isolated entity. This approach often resulted in "mirrored" or redundant logic, where identical mathematical operations were recalculated multiple times, unnecessarily consuming precious silicon area.
Methodology
The SHARED method builds upon the XPAT framework, which uses Satisfiability Modulo Theories (SMT) solvers to navigate the vast design space of potential circuit rewrites. The core innovation is the transition from independent output templates to a Shared Template.
In the original XPAT, each output was represented by its own "sum of products." In contrast, the SHARED approach creates a global pool of "products" that any output can utilize. To guide the SMT solver toward the most compact circuit, the researchers introduced two critical proxy metrics:
- PIT (Products In Total): Constrains the total number of logic gates used across the entire circuit.
- ITS (Inputs To Sums): Measures the density of products feeding into the final output stages.
By incorporating these constraints into the search process, the SMT solver is forced to identify solutions that maximize logic sharing. This strategy naturally leads to smaller physical areas once the circuit is synthesized for manufacturing.
Experimental Evaluation
The SHARED methodology was evaluated using standard hardware benchmarks for arithmetic operators, including adders and multipliers with small bitwidths (2, 3, and 4-bit). These small-bitwidth circuits are increasingly prevalent in quantized neural networks designed for edge AI. The performance of SHARED was benchmarked against three prominent techniques: MUSCAT, MECALS, and the original XPAT.
The implementation utilized Python and the Z3 SMT solver, with physical synthesis performed using the Nangate 45nm cell library.
Key Results
The experimental data demonstrates that logic sharing is a powerful driver of efficiency. By making sharing a primary parameter of the search template, the solver avoids inefficient regions of the design space characterized by logic duplication.
Key findings include:
- Significant Area Savings: In nearly every test case, the SHARED template produced circuits with a smaller physical area ($\mu m^2$) than MUSCAT, MECALS, or XPAT for the same Error Threshold (ET).
- Proxy Metric Validation: Visual analysis confirmed a strong correlation between the PIT+ITS proxy values and the actual synthesized area. This validates the use of these mathematical shortcuts to predict physical hardware size during the logic search phase.
- Superior Convergence: SHARED consistently found "deeper" optimizations that other tools missed, particularly as the allowed error budget increased.
Conclusion
The SHARED template represents a significant advancement in Approximate Logic Synthesis by prioritizing logic sharing during the optimization phase. While the current results for small-bitwidth operators are promising, future work will focus on expanding the template to support multi-level logic and more complex components like Lookup Tables (LUTs). Additionally, addressing the computational scalability of SMT-based approaches for larger 16-bit or 32-bit operators remains a key challenge for the field.
Summary updated