TL;DR
VeriAgent is a training-free multi-agent framework that bridges the gap between AI-generated Verilog code and real-world hardware constraints. By integrating Electronic Design Automation (EDA) tool feedback with an evolving structured memory mechanism, it optimizes not just functional correctness, but also critical physical metrics like Power, Performance, and Area (PPA).
What Problem Does This Paper Address?
Large Language Models (LLMs) have gotten surprisingly good at writing hardware description code (RTL/Verilog) that passes functional simulation. However, in actual chip design, functional correctness is only half the battle. Engineers care deeply about physical constraints: Power, Performance, and Area (PPA).
Most existing LLM approaches either ignore PPA entirely or use EDA tools in a shallow, one-shot feedback loop. Furthermore, these systems lack a long-term memory mechanism to accumulate optimization strategies across multiple design iterations. This means they cannot learn from their mistakes or successes over time, making them heavily dependent on one-shot reasoning rather than continuous improvement.
Methods
VeriAgent introduces a closed-loop, training-free multi-agent architecture coordinated by a Memory Manager. The system breaks down the design flow into three specialized roles:
- Programmer Agent: Generates and refines Verilog code based on prompts and memory guidance.
- Correctness Agent: Executes testbenches and extracts structured semantic signals from error logs to fix functional bugs.
- PPA Agent: Invokes open-source synthesis tools (Yosys and OpenROAD) to analyze physical metrics (timing violations, area, power) and abstracts them into high-level optimization goals.
To support continuous improvement without model retraining, VeriAgent implements an Evolved Memory Mechanism. Optimization insights are stored in a structured Memory Bank categorized into three types:
- Rule Memory: General design constraints and domain best practices.
- Structure Memory: Reusable code patterns abstracted from code structures.
- EDA Signal Memory: Mappings between tool feedback (like negative slack) and optimization strategies (like pipelining).
The Memory Manager dynamically updates this bank using Insert, Refine, or Discard operations based on the agent's execution trajectory.
Datasets
The authors evaluated VeriAgent on two prominent RTL generation benchmarks:
- VerilogEval: Measures the capability to generate synthesizable Verilog from natural language. It features a Human track (diverse, realistic specs written by experts) and a Machine track (standardized, model-generated specs).
- RTLLM: A benchmark of 50 design tasks ranging from simple combinational circuits to complex control logic. Version 1.1 was used for functional correctness, and Version 2.0 (integrated with the NanGate45 process technology library) was used for systematic PPA assessment.
Key Insights and Ideas
- Shifting the Frontier to Physical Optimization: Functional correctness on current benchmarks is reaching saturation. The real frontier for LLMs in hardware design is physical optimization (PPA), which requires tight tool integration.
- Externalized Memory vs. Fine-Tuning: Instead of costly supervised fine-tuning or reinforcement learning—which often introduce distribution bias and limit generalization—VeriAgent shows that a structured, externalized memory pool can achieve continuous improvement without changing model weights.
- Bridging Low-Level Logs and High-Level Reasoning: Translating raw EDA tool logs (like gate counts or slack numbers) into high-level semantic signals (e.g., "excessive combinational depth") allows LLMs to reason effectively about hardware optimization.
Key Results
- Functional Correctness: On VerilogEval-Human, VeriAgent (using Gemini-3-Pro-Preview) achieved a 98.1% pass@1 score, preserving or improving functional correctness over baseline models.
- PPA Optimization: On RTLLM v2.0, VeriAgent achieved a Relative PPA Score of 8.539x (using Gemini-3) and 5.119x (using GPT-4o) compared to the reference implementation baseline (1.000x), significantly outperforming the training-based ChipSeek-R1 (2.196x).
- Win Rate: Pairwise win-rate comparisons show VeriAgent consistently outperforming prior optimization methods like VeriPPA and ChipSeek-R1 across a majority of tasks.
Limitations and Future Work
- Computational Overhead: High-frequency operations like memory retrieval and triggering require calling an LLM. While the authors mitigated this by using a smaller model (GPT-4o-mini) for these tasks, it still adds latency and API costs.
- Benchmark Limits: Current benchmarks are approaching saturation for functional correctness; more complex, industry-scale hardware blocks are needed to fully test the limits of the evolving memory mechanism.
- Toolchain Dependence: The framework currently relies on open-source EDA tools (Yosys/OpenROAD). Extending this framework to commercial toolchains (e.g., Synopsys, Cadence) remains an open direction for future work.
Summary updated