VeriAgent: A Tool-Integrated Multi-Agent System with Evolving Memory for PPA-Aware RTL Code Generation
Organizations: Xiamen University · Tsinghua University · Harbin Institute of Technology
Abstract
LLMs have recently demonstrated strong capabilities in automatic RTL code generation, achieving high syntactic and functional correctness. However, most methods focus on functional correctness while overlooking critical physical design objectives, including Power, Performance, and Area. In this work, we propose a PPA-aware, tool-integrated multi-agent framework for high-quality verilog code generation. Our framework explicitly incorporates EDA tools into a closed-loop workflow composed of a Programmer Agent, a Correctness Agent, and a PPA Agent, enabling joint optimization of functional correctness and physical metrics. To support continuous improvement without model retraining, we introduce an Evolved Memory Mechanism that externalizes optimization experience into structured memory nodes. A dedicated memory manager dynamically maintains the memory pool and allows the system to refine strategies based on historical execution trajectories. Extensive experiments demonstrate that our approach achieves strong functional correctness while delivering significant improvements in PPA metrics. By integrating tool-driven feedback with structured and evolvable memory, our framework transforms RTL generation from one-shot reasoning into a continual, feedback-driven optimization process, providing a scalable pathway for deploying LLMs in real-world hardware design flows.
Figures & tables
| Method | Base Model | VerilogEval-Machine (%) | VerilogEval-Human (%) | RTLLM v1.1 (%) | |||||
|---|---|---|---|---|---|---|---|---|---|
| pass@1 | pass@5 | pass@10 | pass@1 | pass@5 | pass@10 | Syn@5 | Func@5 | ||
| Training-Based | |||||||||
| RTLCoder | Mistral 7B | 62.5 | 72.2 | 76.6 | 36.7 | 45.5 | 49.2 | 73.7 | 37.3 |
| DeepSeek-Coder 7B | 61.2 | 76.5 | 81.8 | 41.6 | 50.1 | 53.4 | 83.9 | 40.3 | |
| BetterV | CodeLlama 7B | 64.2 | 75.4 | 79.1 | 40.9 | 50.0 | 53.3 | – | – |
| DeepSeek-Coder 6.7B | 67.8 | 79.1 | 84.0 | 45.9 | 53.3 | 57.6 | – | – | |
| Design | Original | ChipSeek-R1 | VeriAgent (gpt-4o) | VeriAgent (gemini3) |
|---|---|---|---|---|
| (ns / / W) | (ns / / W) | (ns / / W) | (ns / / W) | |
| accu | 0.47 / 150.822 / 1.23e-05 | 0.46 / 210.672 / 1.83e-05 | 0.53 / 212.002 / 1.78e-05 | 0.49 / 143.64 / 1.14e-05 |
| adder_16bit | 0.84 / 89.376 / 6.49e-05 | 0.07 / 93.632 / 4.44e-05 | 0.57 / 97.888 / 2.26e-06 | 0.57 / 97.888 / 2.26e-06 |
| adder_32bit | 0.76 / 472.15 / 0.000325 | 1.13 / 191.786 / 0.00012 | 1.08 / 195.776 / 4.52e-06 | 0.51 / 240.464 / 5.6e-06 |
| adder_8bit | 0.35 / 51.072 / 3.14e-05 | 0.07 / 46.816 / 2.22e-05 | 0.3 / 49.21 / 1.12e-06 | 0.3 / 49.21 / 1.12e-06 |
| adder_bcd | 0.34 / 46.018 / 3.85e-05 | 0.34 / 46.018 / 3.84e-05 | 0.31 / 42.56 / 9.36e-07 | 0.31 / 42.826 / 9.38e-07 |
| Method | GPT-4o | Gemini-3 |
|---|---|---|
| VeriAgent (Full) | 5.119 | 8.539 |
| w/o Memory | 3.839 | 6.541 |
| w/o Tool Feedback | 3.344 | 5.189 |
| w/o PPA Analyzer | 2.724 | 3.405 |
RTL Code Generation
Register-transfer-level (RTL) code generation turns hardware specifications into synthesizable circuits, balancing functional correctness with area, timing, and power.
See all 31 papers