arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.08856cs.SEcs.AI
收藏

LAUDE: 基于LLM的硬件设计单元测试生成与调试

LAUDE: LLM-Assisted Unit Test Generation and Debugging of Hardware DEsigns

Dept. of Electrical and Computer Engineering, University of Illinois Chicago(伊利诺伊大学芝加哥分校电子与计算机工程系);Microsoft(微软公司)

Deeksha Nandal, Riccardo Revalor, Soham Dan, Debjit Pal

AI总结:

LAUDE利用大语言模型能力,实现硬件设计的单元测试生成与调试,有效检测和修复设计中的错误。

摘要:

单元测试在硬件设计生命周期中至关重要,用于确保组件设计模块在集成到系统级别之前功能正确且符合规范。因此,针对各种设计特征开发单元测试需要深入理解设计功能和创造力。当一个或多个单元测试暴露设计故障时,调试工程师需要诊断、定位并调试故障以确保设计正确性,这通常是繁琐而紧张的过程。在本工作中,我们介绍了LAUDE,一个统一的单元测试生成和调试框架,用于硬件设计,它结合了设计源代码的语义理解和基础大语言模型(LLM)的链式推理能力。LAUDE整合了提示工程和设计执行信息以提高其单元测试生成的准确性和代码调试性。我们应用LAUDE与闭源和开源LLM到大量来自VerilogEval数据集的有bug的硬件设计代码中,其中生成的单元测试在组合和时序设计中检测到bug的比例高达100%和93%,调试比例分别达到93%和84%。

英文摘要:

Unit tests are critical in the hardware design lifecycle to ensure that component design modules are functionally correct and conform to the specification before they are integrated at the system level. Thus developing unit tests targeting various design features requires deep understanding of the design functionality and creativity. When one or more unit tests expose a design failure, the debugging engineer needs to diagnose, localize, and debug the failure to ensure design correctness, which is often a painstaking and intense process. In this work, we introduce LAUDE, a unified unit-test generation and debugging framework for hardware designs that cross-pollinates the semantic understanding of the design source code with the Chain-of-Thought (CoT) reasoning capabilities of foundational Large-Language Models (LLMs). LAUDE integrates prompt engineering and design execution information to enhance its unit test generation accuracy and code debuggability. We apply LAUDE with closed- and open-source LLMs to a large corpus of buggy hardware design codes derived from the VerilogEval dataset, where generated unit tests detected bugs in up to 100% and 93% of combinational and sequential designs and debugged up to 93% and 84% of combinational and sequential designs, respectively.

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

↑