TL;DR
This paper tackles the challenge of minimizing power consumption in digital circuit design by proposing two efficient heuristic algorithms for the "generalized low-power binding problem." These algorithms offer a significant speedup over traditional optimal methods while maintaining very low power penalties, making them practical for complex, real-world applications.
What Problem Does This Paper Address?
Designing portable electronic devices requires a delicate balance between high performance and low power consumption. As integrated circuits become more complex, power dissipation becomes a critical bottleneck. The "binding problem" is a crucial step in High-Level Synthesis (HLS) where operations in a digital circuit's data flow graph (DFG) are assigned to specific hardware resources (like adders or multipliers). The "generalized low-power binding problem" extends this by considering not only the assignment of operations to resources but also the selection of the most power-efficient architecture (implementation) for each resource, all while minimizing the overall power consumption. This problem is known to be NP-complete, meaning finding the absolute optimal solution becomes computationally infeasible for large designs. Existing optimal methods, often based on Integer Linear Programming (ILP), are too slow for practical use.
Methods
The authors propose two polynomial-time heuristic algorithms to address the NP-complete generalized low-power binding problem:
- Iterative Resource Binding, Iterative Node Coverage (IRBINC): This approach first formulates the problem for a single architecture using a min-cost flow technique. It then iteratively applies this to each available architecture, generating a set of candidate solutions. A node coverage algorithm is then used to select the best paths (resource assignments) from these candidates, aiming to cover all operations with minimal overlap and cost. This method iteratively refines the solution by considering potential exchanges of operation bindings across different clock cycles.
- Constructive Top-Down Assignment (CTDA): This algorithm takes a constructive approach, traversing the scheduled DFG from the first clock cycle to the last. At each clock step, it uses a node coverage algorithm to assign operations to available resources, considering different architectures and optimizing for power. This process is repeated for each clock step, building up the solution incrementally. It's described as being similar to the "left-edge algorithm" used in scheduling.
Datasets
The authors used the "Media bench suite" along with some HLS benchmarks to extract data flow graphs (DFGs). They also performed experiments with unrolled versions of FIR and FFT benchmarks to test the scalability of their algorithms.
Key Insights and Ideas
- Heuristics are essential for NP-complete problems: The paper highlights that for complex problems like generalized low-power binding, heuristic approaches are necessary to achieve practical runtimes, even if they don't guarantee absolute optimality.
- Decomposition into subproblems: Both proposed methods break down the complex problem into smaller, manageable subproblems (e.g., single-architecture binding, node coverage per clock cycle) that can be solved more efficiently.
- Iterative refinement improves quality: The IRBINC algorithm's iterative refinement step (IRBINC-REF) demonstrates that even after an initial heuristic solution, further optimization through local moves can yield better results.
- Top-down constructive approach works: CTDA shows that a systematic, step-by-step construction of the solution can also be effective, especially when combined with local optimization at each step.
Key Results
The proposed IRBINC and CTDA algorithms demonstrated significant performance improvements:
- Speedup: Achieved a maximum speedup of up to 13.7x compared to the optimal ILP solution. The average speedup across 12 benchmarks was 7.00x for IRBINC and 4.84x for CTDA.
- Power Penalty: The power cost penalty was very small, with a maximum of 2.58% (for jdmerge-4). The average penalties were 0.78% for IRBINC and 1.12% for CTDA.
- Scalability: The paper shows that as benchmark size increases (through unrolling), the run-time of the ILP approach grows much faster than the proposed heuristics, making IRBINC and CTDA more suitable for larger designs.
Limitations and Future Work
- Reiterative Effects: The min-cost flow formulation for single architecture does not explicitly consider "reiterative effects," where the output of a DFG feeds back into its input across multiple iterations. The paper mentions that this is an area for future work and that extensions to handle this exist.
- Focus on Additions: The experimental results primarily focused on optimizing power for "additions" within the DFG. Future work could extend this to other operation types and more complex DFG structures.
- Pipelined Designs: The proposed techniques primarily address the binding problem for a single iteration. The paper discusses how to extend the compatibility graph construction for pipelined designs with multiple iterations, suggesting this as a direction for future research.
- Local Minima: The IRBINC-REF algorithm acknowledges the possibility of getting stuck in local minima and suggests accepting moves that don't improve cost to avoid this, implying that more sophisticated global optimization techniques could be explored.
Summary updated