Abstract
In the landscape of modern AI hardware, multipliers and multiply-accumulators (MACs) are the primary drivers of area and power consumption. Traditional design methodologies treat these components as a sequence of decoupled stages, leading to significant inefficiencies. This paper introduces UFO-MAC, a unified optimization framework that integrates the design of the Compressor Tree (CT) and the Carry Propagate Adder (CPA). By utilizing Integer Linear Programming (ILP) for precise compressor wiring and a novel Fanout-depth Combination (FDC) timing model, UFO-MAC achieves up to 18% area reduction and 14% delay improvement over state-of-the-art commercial and academic baselines.
Introduction
AI accelerators rely heavily on high-performance arithmetic units. Traditionally, these circuits are designed using a three-stage pipeline: Partial Product Generation (PPG), the Compressor Tree (CT), and the Carry Propagate Adder (CPA). However, this "siloed" approach creates a mismatch at the interface between the CT and the CPA.
The data exiting a compressor tree does not arrive at the final adder simultaneously. Instead, it follows a "trapezoidal" arrival profile where the middle bits—representing the most complex logic paths—arrive significantly later than the least and most significant bits. Standard Electronic Design Automation (EDA) tools often treat the adder as having uniform input arrival times. This leads to "over-designing" the fast bits, which wastes area, or failing to sufficiently optimize the bottleneck bits, which limits overall clock frequency. UFO-MAC addresses these inefficiencies by treating the CT and CPA as a single, integrated timing problem.
The UFO-MAC Methodology
1. Optimal Compressor Tree Generation and ILP Wiring
UFO-MAC begins by determining the mathematically minimum number of 3:2 and 2:2 compressors required for a specific bit-width. While prior works rely on heuristics for interconnection, UFO-MAC employs Integer Linear Programming (ILP) to decide the exact stage and pin-to-pin interconnection for every compressor. This level of granularity is critical because different input pins on a single compressor have varying internal delays. By systematically exploring the wiring design space, UFO-MAC can reduce delay by over 10% without changing the underlying logic.
2. The Fanout-Depth Combination (FDC) Model
In modern sub-micron technology nodes, the delay caused by fanout (the number of gates a signal must drive) can be as significant as the logic depth itself. UFO-MAC introduces the FDC model for prefix adders, which incorporates both metrics. Validated against a dataset of 10,000 paths from an open-source library, the FDC model demonstrated a high fidelity with an $R^2$ of 0.816, compared to just 0.541 for models relying solely on logic depth. This accuracy allows for much tighter timing closure during the optimization phase.
3. Non-Uniform CPA Optimization
Using the FDC model, the framework segments the final Carry Propagate Adder into three distinct regions based on the CT’s trapezoidal arrival profile. It then applies iterative "depth-opt" and "fanout-opt" transformations to the adder’s prefix graph. This ensures that area is only sacrificed for speed on the critical paths (the middle bits), while the faster-arriving bits are implemented using area-efficient structures.
4. Fused MAC Support
Beyond standalone multipliers, the framework supports fused MAC architectures. In these designs, the accumulation value is fed directly into the compressor tree. This eliminates the need for a separate final accumulation adder, further reducing the total hardware footprint and latency.
Experimental Results
The framework was evaluated using the NanGate 45nm Open Cell Library across 8-bit, 16-bit, and 32-bit configurations. The results indicate that UFO-MAC consistently "Pareto-dominates" existing academic methods like GOMIL and RL-MUL, as well as high-end commercial IP libraries.
- Multipliers: Achieved up to 14.9% area reduction and 11.3% delay improvement over commercial IPs.
- MAC Units: Achieved up to 18.1% area reduction and 13.9% delay reduction.
- System-Level Impact: When implemented in a 32-bit FIR filter, UFO-MAC reduced area by approximately 12% and power by 10% compared to the best available baselines while maintaining identical timing constraints.
- Computational Efficiency: Despite the use of ILP, the solver typically finds optimal solutions for 32-bit designs in under 1,000 seconds, making it a viable addition to standard EDA flows.
Conclusion and Future Work
UFO-MAC demonstrates that breaking the traditional decoupled design boundaries of arithmetic units yields significant hardware benefits. By matching the adder's structure to the compressor tree's specific arrival curve and accounting for fanout-induced delays, the framework recovers area and power previously lost to over-optimization.
Future research will focus on extending these methodologies to floating-point arithmetic and exploring the impact of wire resistance at advanced nodes (7nm and below). Additionally, the authors plan to apply the UFO-MAC philosophy to broader datapath segments within large-scale Processing Element (PE) arrays to further optimize the energy efficiency of AI accelerators.
Summary updated