arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.08927cs.AIcs.CL
收藏

VerilogCoder:基于图规划和抽象语法树(AST)波形追踪工具的自主Verilog编码智能体

VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Tool

NVIDIA Research(英伟达研究院)

Chia-Tung Ho, Haoxing Ren, Brucek Khailany

AI总结:

提出VerilogCoder多智能体系统,通过任务与电路关系图检索规划及基于AST的波形追踪工具自主生成和调试Verilog代码,在VerilogEval-Human v2基准上正确率达94.2%,超越现有方法33.9%。

摘要:

由于现代集成电路(ICs)日益复杂,自动化硬件设计能防止工程过程中大量的人为错误,从而减少错误。Verilog是一种用于设计和建模数字系统的流行硬件描述语言;因此,Verilog生成是促进设计过程的新兴研究领域之一。在本研究中,我们提出了VerilogCoder,一个用于Verilog代码生成的多人工智能(AI)智能体系统,能自主编写Verilog代码,并利用协作式Verilog工具(即语法检查器、仿真器和波形追踪器)修复语法和功能错误。首先,我们提出了一种任务规划器,它利用一种新颖的任务与电路关系图检索方法,基于模块描述构建全局计划。为了调试和修复功能错误,我们开发了一种新颖且高效的基于抽象语法树(AST)的波形追踪工具,并将其集成到自主Verilog完成流程中。所提方法成功生成了94.2%语法和功能正确的Verilog代码,在VerilogEval-Human v2基准上超越了现有最先进方法33.9%。

英文摘要:

Due to the growing complexity of modern Integrated Circuits (ICs), automating hardware design can prevent a significant amount of human error from the engineering process and result in less errors. Verilog is a popular hardware description language for designing and modeling digital systems; thus, Verilog generation is one of the emerging areas of research to facilitate the design process. In this work, we propose VerilogCoder, a system of multiple Artificial Intelligence (AI) agents for Verilog code generation, to autonomously write Verilog code and fix syntax and functional errors using collaborative Verilog tools (i.e., syntax checker, simulator, and waveform tracer). Firstly, we propose a task planner that utilizes a novel Task and Circuit Relation Graph retrieval method to construct a holistic plan based on module descriptions. To debug and fix functional errors, we develop a novel and efficient abstract syntax tree (AST)-based waveform tracing tool, which is integrated within the autonomous Verilog completion flow. The proposed methodology successfully generates 94.2% syntactically and functionally correct Verilog code, surpassing the state-of-the-art methods by 33.9% on the VerilogEval-Human v2 benchmark.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑