arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.11411cs.AIcs.ARcs.CLcs.LGcs.MA
收藏

AIvril: 带在环验证的AI驱动RTL生成

AIvril: AI-Driven RTL Generation With Verification In-The-Loop

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

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

AI总结:

针对大语言模型生成RTL代码易出错的问题,提出多智能体、与LLM无关的AIvril框架,通过自动语法纠错和功能验证提升准确性,在VerilogEval-Human数据集上代码质量提升近2倍、验证目标成功率达88.46%。

摘要:

大语言模型(LLMs)是能够执行复杂自然语言处理任务的计算模型。凭借这些能力,LLMs有潜力变革整个硬件设计栈,有预测称前端和后端任务可能在不久的将来实现完全自动化。目前,LLMs在简化寄存器传输级(RTL)生成、提升效率、加速创新方面展现出巨大前景。然而,其概率性本质使其容易产生不准确结果——这在可靠性和精度至关重要的RTL设计中是一个重大缺陷。\n 为应对这些挑战,本文提出了AIvril,这是一款旨在提升具备RTL感知能力的LLMs的准确性与可靠性的先进框架。AIvril采用多智能体、与LLM无关的系统,用于自动语法纠错和功能验证,大幅减少——且在许多情况下完全消除——错误代码生成的情况。在VerilogEval-Human数据集上开展的实验结果表明,与先前工作相比,我们的框架将代码质量提升了近2倍,同时在达成验证目标方面实现了88.46%的成功率。这代表着朝着自动化和优化硬件设计工作流迈出的关键一步,为AI驱动的RTL设计提供了更可靠的方法。

英文摘要:

Large Language Models (LLMs) are computational models capable of performing complex natural language processing tasks. Leveraging these capabilities, LLMs hold the potential to transform the entire hardware design stack, with predictions suggesting that front-end and back-end tasks could be fully automated in the near future. Currently, LLMs show great promise in streamlining Register Transfer Level (RTL) generation, enhancing efficiency, and accelerating innovation. However, their probabilistic nature makes them prone to inaccuracies - a significant drawback in RTL design, where reliability and precision are essential. To address these challenges, this paper introduces AIvril, an advanced framework designed to enhance the accuracy and reliability of RTL-aware LLMs. AIvril employs a multi-agent, LLM-agnostic system for automatic syntax correction and functional verification, significantly reducing - and in many cases, completely eliminating - instances of erroneous code generation. Experimental results conducted on the VerilogEval-Human dataset show that our framework improves code quality by nearly 2x when compared to previous works, while achieving an 88.46% success rate in meeting verification objectives. This represents a critical step toward automating and optimizing hardware design workflows, offering a more dependable methodology for AI-driven RTL design.

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

↑