TL;DR
AUTOGATE is an automated, multi-agent framework that slashes dynamic power in digital designs by optimizing fine-grain clock gating (FGCG). By combining machine learning waveform analysis with LLM-based RTL rewriting, it bypasses context-window limits and scales effectively to large, industrial-grade hierarchical codebases, delivering up to a 19.34% power reduction on complex designs like NVDLA.
What Problem Does This Paper Address?
Dynamic power consumption is a primary constraint in modern chip design. Fine-grain clock gating (FGCG) is a highly effective technique to mitigate this: it inserts integrated clock-gating (ICG) cells to shut off the clock path for small groups of flip-flops when they don't need to update.
While commercial synthesis tools can automatically infer these clock gates, they can only do so if the register transfer level (RTL) code explicitly exposes a "hold" condition. If the code assigns a register on every cycle, the opportunity is lost.
Rewriting RTL code to expose these hold conditions is currently a manual, tedious task driven by engineering heuristics. Large Language Models (LLMs) seem like a natural fit to automate this rewriting, but they face two massive roadblocks:
- Long-Context Waveforms: Effective clock gating depends on workload-specific, cycle-accurate toggling behavior spanning millions of clock cycles. These massive waveform traces far exceed the context windows of current LLMs.
- Scalability: Industrial designs are deeply hierarchical, consisting of hundreds of interacting modules. A single-agent LLM cannot reliably reason across such massive codebases while preserving strict hardware correctness.
Methods
AUTOGATE overcomes these hurdles through a novel ML-LLM co-design wrapped in a hierarchical, multi-agent architecture. The framework operates in four distinct stages:
- Hierarchy Detection and Pre-Profiling: The framework maps out the design hierarchy and runs a full-design power analysis just once to generate a structured power bottleneck report. It also extracts module-level testbenches directly from full-system simulations so each module can be analyzed using realistic workloads.
- Adaptive Stability-Based FGCG Exploration: To avoid choking the LLM with raw waveform data, an ML-based clustering algorithm distills the simulation traces. It filters out registers with extreme toggle rates (near 0% or 100%) and automatically discovers optimal thresholds to group registers that share identical idle cycles. This is summarized into a concise, text-based Gating-Candidate Report.
- LLM-Guided Parallel Rewriting: An orchestrator LLM assigns bottleneck modules to dedicated sub-agents. Guided by the Gating-Candidate Report and a library of clock-gating design templates (e.g., enable/hold extraction, control-signal factoring), these agents rewrite the RTL in parallel. A reflection agent reviews the power feedback to iteratively refine the code.
- Formal Verification and QoR-Aware Merge: Every rewritten module undergoes syntax checking, simulation, commercial formal equivalence checking, and timing validation. Validated modules are merged bottom-up back into the design hierarchy.
Datasets
The authors evaluated AUTOGATE across a diverse suite of hardware designs:
- Small Benchmarks: Six small RTL designs from CVDP, OpenCores, and OpenTitan (including
counter32,booth_mult,divide,aes_cipher,deframer, andmrisc). - Large Industrial Open-Source Designs: NVDLA (NVIDIA's Deep Learning Accelerator, spanning 135 files and over 1.7 million cells) and BlackParrot (a multi-core RISC-V processor codebase).
- Proprietary Production Designs: Two highly optimized, large-scale industrial designs (Design A and Design B) evaluated under 13 different production workloads.
Key Insights and Ideas
- Bridging the Semantic Gap: LLMs don't need to see every raw clock cycle to understand hardware behavior. By using specialized ML clustering to distill millions of simulation cycles into a structured text summary, AUTOGATE successfully bridges the gap between signal-level data and high-level code reasoning.
- Divide-and-Conquer Multi-Agent Scaling: Trying to optimize an entire SoC in a single LLM prompt is impossible. Breaking the problem down into independent, module-level tasks coordinated by an orchestrator allows LLM reasoning to scale to codebases with over a million lines of code.
- Synthesis Synergy: Instead of trying to replace commercial synthesis tools, AUTOGATE acts as a pre-optimizer. It restructures the RTL code specifically to unlock and maximize the built-in clock-gating inference capabilities of standard industrial tools.
Key Results
AUTOGATE consistently outperformed existing state-of-the-art RTL optimization baselines (like POET and ROVER):
- Small Designs: Achieved an average dynamic power reduction of 49.31%. Notably, it cut power in a booth multiplier by 86.21% by boosting clock-gating efficiency from 8.3% to 87%.
- NVDLA: Achieved an average dynamic power reduction of 19.34% across partitions, while simultaneously yielding a 3.46% area reduction as a byproduct of the LLM merging redundant clock gates.
- BlackParrot: Reduced dynamic power by 7.96% with a negligible area overhead of 0.04%.
- Proprietary Designs: Delivered up to 6.86% dynamic power savings on highly optimized production-grade chips while strictly maintaining area and timing constraints.
Limitations and Future Work
The primary limitation of AUTOGATE is its susceptibility to workload overfitting. Because the FGCG clustering relies on specific simulation traces, optimizing heavily for one workload can sometimes degrade power performance on another.
The authors mitigated this by optimizing against a combination of distinct workloads (e.g., combining Workload 1 and Workload 10 in their proprietary tests), which significantly improved robustness. They note that an important direction for future work is developing automated methods to identify and select the most representative workloads that capture typical production use cases.
Summary updated