PowerGear: Early-Stage Power Estimation in FPGA HLS via Heterogeneous Edge-Centric GNNs

Zhe Lin, Zike Yuan, Jieru Zhao, Wei Zhang, Hui Wang, Yonghong Tian

Abstract

PowerGear is a graph-learning framework designed for accurate, early-stage power estimation in FPGA High-Level Synthesis (HLS). By leveraging a Heterogeneous Edge-Centric Graph Neural Network (HEC-GNN), PowerGear captures the critical power impact of interconnects and switching activities. Experimental results demonstrate that PowerGear achieves significantly lower error rates compared to commercial tools like Vivado, while providing a 4x speedup in the estimation process.

Introduction

Power efficiency is a critical constraint in modern FPGA design. Traditionally, accurate power estimation is a late-stage activity, requiring designers to wait until after RTL synthesis, placement, and routing. This late feedback loop is inefficient; if a design exceeds its power budget, designers must restart the synthesis process from the beginning. While existing HLS power estimators attempt to provide earlier feedback, they often overlook the power consumption of interconnects—the "wires" between operations—which account for a substantial portion of dynamic power in FPGAs.

Methodology

PowerGear addresses these challenges through a two-stage approach: an optimized graph construction flow and a specialized GNN architecture.

Graph Construction and Feature Annotation

The framework first transforms HLS designs, including Intermediate Representation (IR) and Finite State Machines (FSM), into Dataflow Graphs (DFGs). To accurately reflect hardware implementation, several optimizations are applied:

  • Buffer Insertion: Models memory power.
  • Datapath Merging: Accounts for resource sharing.
  • Graph Trimming: Removes non-essential operations to streamline the model.

Crucially, PowerGear performs a fast IR-level simulation to calculate switching activities (signal flip rates), which are then annotated directly onto the graph edges.

Overview of the PowerGear inference and training flow.

Heterogeneous Edge-Centric GNN (HEC-GNN)

The core of PowerGear is the HEC-GNN. Unlike standard GNNs that focus on nodes, HEC-GNN prioritizes edges to better model the physical reality of interconnect power consumption. The architecture is "physics-informed," using learnable weights to approximate physical constants like capacitance ($C$) and voltage ($V$) within a structure that mimics the dynamic power equation ($P \propto \alpha CV^2f$). Additionally, global metadata regarding resource usage (LUTs, DSPs, BRAMs) is processed via an MLP to account for static power.

The Heterogeneous Edge-Centric GNN (HEC-GNN) architecture and its physics-informed aggregation.

Evaluation and Results

The framework was evaluated using the Polybench suite and custom synthetic datasets, with ground truth measurements taken from a Xilinx Ultrascale+ ZCU102 FPGA board.

PowerGear demonstrated exceptional accuracy, with an average error of 3.60% for total power and 8.81% for dynamic power. In comparison, the commercial Vivado tool exhibited an average error of 21.82% at the same design stage. Furthermore, PowerGear achieved a 4.06x average speedup over the standard Vivado flow by bypassing low-level implementation steps. In design space exploration (DSE) tasks, the framework enabled an 11.2% performance gain by more accurately identifying power-efficient configurations.

Conclusion

PowerGear represents a significant advancement in early-stage power estimation for FPGAs. By focusing on edge-centric modeling and physics-informed learning, it provides the accuracy and speed necessary for effective high-level design optimization. Future work will focus on scaling the framework to larger SoC designs and improving cross-platform generalization.

Summary updated

BibTeX
@inproceedings{lin2022powergear,
  author = {Zhe Lin and Zike Yuan and Jieru Zhao and Wei Zhang and Hui Wang and Yonghong Tian},
  title = {{PowerGear: Early-Stage Power Estimation in FPGA HLS via Heterogeneous Edge-Centric GNNs}},
  booktitle = {DATE},
  year = {2022},
  doi = {10.23919/date54114.2022.9774682},
}
Figure