Coarse-grained reconfigurable arrays (CGRAs) combine much of the performance and energy efficiency of ASICs with the flexibility of programmable hardware, making them attractive in power-constrained systems. However, modern CGRA compilers optimize primarily for performance and can create hardware configurations that exceed fixed power budgets. We empirically show that post-place-and-route (post-PnR) pipelining in Cascade, a prior state-of-the-art CGRA compiler, can monotonically increase power as it inserts registers to improve frequency. We present Capstone, a power-cap-aware extension of Cascade that integrates a fast, compiler-resident power model with uncertainty-aware controllers to guide bitstream selection. Capstone automatically learns energy costs for compiler-visible abstract events from hierarchical gate-level power supervision and achieves 16.8% MAPE, approaching a 14.8% oracle restricted to the same event abstraction, while adding less than 1% prediction overhead per post-PnR iteration. Capstone I applies a static guardband, Capstone II uses conformal calibration for probabilistic coverage under its calibration assumptions, and Capstone III uses event-level error bounds for a conditional deterministic guarantee. Across eight evaluated vector, matrix, and tensor kernels, all three modes achieve 100% cap compliance under the evaluated margins. Capstone I, II, and III retain 0.65x, 0.74x, and 0.81x of uncapped frequency on average while leaving median cap slack of 31.23%, 22.26%, and 13.85%, respectively. Capstone demonstrates that the compiler can proactively optimize the hardware configuration itself for a power constraint before deployment, rather than relying only on reactive run-time power management.
翻译:暂无翻译