arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.04485cs.ARcs.AI
收藏

使用大型语言模型进行 EDA 感知的 RTL 生成

EDA-Aware RTL Generation with Large Language Models

PrimisAI(普里米斯人工智能公司);University of Utah(犹他大学)

Mubashir ul Islam, Humza Sami, Pierre-Emmanuel Gaillardon, Valerio Tenace

AI总结:

本文提出与 LLM 无关的自验证多智能体框架 AIvril2,利用 EDA 错误日志迭代修复 RTL 语法与功能错误,在 VerilogEval-Human 上较既往方法提升近 3.4 倍。

摘要:

大型语言模型(LLM)在生成 RTL 代码方面正变得越来越流行。然而,即使对于最先进的 LLM 而言,在零样本设置下生成无错误的 RTL 代码仍然极具挑战性,往往会导致需要人工反复细化的问题。这一额外的调试过程会显著增加验证工作量,凸显出需要稳健、自动化的纠正机制,以从一开始就确保代码正确性。在本工作中,我们提出 AIvril2,这是一个自验证、与 LLM 无关的智能体框架,旨在通过对语法和功能错误的迭代纠正来增强 RTL 代码生成。我们的方法利用协作式多智能体系统,该系统结合 EDA 工具生成的错误日志反馈,以自动识别并解决设计缺陷。在 VerilogEval-Human 基准套件上进行的实验结果表明,我们的框架显著提升了代码质量,相比以往方法实现了近 3.4 倍的增强。在最佳情况下,Verilog 和 VHDL 的功能通过率分别达到 77% 和 66%,从而大幅提高了 LLM 驱动 RTL 代码生成的可靠性。

英文摘要:

Large Language Models (LLMs) have become increasingly popular for generating RTL code. However, producing error-free RTL code in a zero-shot setting remains highly challenging for even state-of-the-art LLMs, often leading to issues that require manual, iterative refinement. This additional debugging process can dramatically increase the verification workload, underscoring the need for robust, automated correction mechanisms to ensure code correctness from the start. In this work, we introduce AIvril2, a self-verifying, LLM-agnostic agentic framework aimed at enhancing RTL code generation through iterative corrections of both syntax and functional errors. Our approach leverages a collaborative multi-agent system that incorporates feedback from error logs generated by EDA tools to automatically identify and resolve design flaws. Experimental results, conducted on the VerilogEval-Human benchmark suite, demonstrate that our framework significantly improves code quality, achieving nearly a 3.4$\times$ enhancement over prior methods. In the best-case scenario, functional pass rates of 77% for Verilog and 66% for VHDL were obtained, thus substantially improving the reliability of LLM-driven RTL code generation.

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

↑