用对话式多智能体系统自动优化硬件代码,提升性能并减少错误。
CODMAS: A Dialectic Multi-Agent Collaborative Framework for Structured RTL Optimization

- 设计两个对话智能体协同生成与验证硬件代码
- 在流水线和时钟门控上分别降低25%延迟、22%功耗
- 适合芯片设计自动化领域研究者与工程师使用
寄存器传输级(RTL)代码优化是电子设计自动化(EDA)中提升功耗、性能和面积(PPA)的关键步骤。本文提出CODMAS(基于辩证多智能体协作的优化框架),结合结构化辩证推理、领域感知代码生成与确定性评估,实现RTL优化自动化。核心包含两个辩证智能体:仿照‘橡皮鸭调试’的Articulator,逐步阐述变换方案并暴露潜在假设;以及Hypothesis Partner,预测结果并调和预期与实际行为偏差,指导精准修正。二者协同驱动领域特定编码智能体(DCA)生成架构感知的Verilog修改,并由代码评估智能体(CEA)验证语法、功能与PPA指标。我们构建了包含120个Verilog三元组(未优化、优化版、测试脚本)的RTLOPT基准,用于流水线与时钟门控优化。在主流私有与开源大模型上,CODMAS在流水线任务中实现约25%关键路径延迟降低,在时钟门控任务中实现约22%功耗降低,同时显著减少功能与编译失败。结果表明,结构化多智能体推理能有效提升自动化RTL优化能力,并可扩展至更复杂设计与多样化优化任务。
原文摘要 · Abstract (English)
Optimizing Register Transfer Level (RTL) code is a critical step in Electronic Design Automation (EDA) for improving power, performance, and area (PPA). We present CODMAS (Collaborative Optimization via a Dialectic Multi-Agent System), a framework that combines structured dialectic reasoning with domain-aware code generation and deterministic evaluation to automate RTL optimization. At the core of CODMAS are two dialectic agents: the Articulator, inspired by rubber-duck debugging, which articulates stepwise transformation plans and exposes latent assumptions; and the Hypothesis Partner, which predicts outcomes and reconciles deviations between expected and actual behavior to guide targeted refinements. These agents direct a Domain-Specific Coding Agent (DCA) to generate architecture-aware Verilog edits and a Code Evaluation Agent (CEA) to verify syntax, functionality, and PPA metrics. We introduce RTLOPT, a benchmark of 120 Verilog triples (unoptimized, optimized, testbench) for pipelining and clock-gating transformations. Across proprietary and open LLMs, CODMAS achieves ~25% reduction in critical path delay for pipelining and ~22% power reduction for clock gating, while reducing functional and compilation failures compared to strong prompting and agentic baselines. These results demonstrate that structured multi-agent reasoning can significantly enhance automated RTL optimization and scale to more complex designs and broader optimization tasks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。