让大模型生成更省电、更快、占面积更小的硬件代码
VeriAgent: A Tool-Integrated Multi-Agent System with Evolving Memory for PPA-Aware RTL Code Generation
- 用三个智能体协同工作,一边写代码一边评估功耗性能面积
- 相比传统方法,功耗降低18.7%,时延减少12.3%,面积缩小9.5%
- 记忆机制能自动总结经验,越用越聪明,适合芯片设计团队
大模型在自动生成硬件描述语言(RTL)代码方面已展现出强大能力,功能和语法正确性很高。但多数方法只关注功能正确性,忽视了关键的物理设计目标——功耗、性能和面积(PPA)。本文提出一种面向PPA的工具集成多智能体系统,通过程序员智能体、正确性智能体和PPA智能体构成闭环流程,实现功能与物理指标的联合优化。为支持持续改进而不需重训练,引入可演化的记忆机制,将优化经验以结构化节点形式外部存储。专用记忆管理器动态维护记忆池,使系统可根据历史执行轨迹不断优化策略。大量实验表明,该方法在保持高功能正确性的基础上,显著提升PPA指标:功耗降低18.7%,时延减少12.3%,面积缩小9.5%。通过工具反馈与可演化记忆结合,本框架将RTL生成从一次性推理转变为持续反馈优化过程,为大模型在真实硬件设计流程中的部署提供可扩展路径。
原文摘要 · Abstract (English)
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 \textit{Programmer Agent}, a \textit{Correctness Agent}, and a \textit{PPA Agent}, enabling joint optimization of functional correctness and physical metrics. To support continuous improvement without model retraining, we introduce an \textit{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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。