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

AutoBench:利用LLM进行HDL设计的自动测试台生成与评估

AutoBench: Automatic Testbench Generation and Evaluation Using LLMs for HDL Design

Ruidi Qiu, Grace Li Zhang, Rolf Drechsler, Ulf Schlichtmann, Bing Li

AI总结:

AutoBench是首个基于LLM的数字电路测试台自动生成与评估框架,通过混合结构和自检查系统,将测试台pass@1比率提升57%,在时序电路上提升3.36倍。

摘要:

在数字电路设计中,测试台构成了基于仿真的硬件验证的基石。在基于仿真的硬件验证过程中,传统的测试台生成方法仍部分依赖手动操作,导致测试各种场景的效率低下,并耗费设计者大量时间。大型语言模型(LLMs)已展示出其在自动化电路设计流程中的潜力。然而,直接将LLMs应用于测试台生成面临通过率低的问题。为解决这一挑战,我们引入了AutoBench,这是首个基于LLM的数字电路设计测试台生成器,它仅需待测设计(DUT)的描述即可自动生成全面的测试台。在AutoBench中,利用LLMs实现了混合测试台结构和自检查系统。为了验证生成的测试台,我们还引入了一个自动化的测试台评估框架,从多个角度评估生成测试台的质量。实验结果表明,与直接使用LLMs生成测试台的基线相比,AutoBench在测试台pass@1比率上实现了57%的提升。对于75个时序电路,AutoBench的测试台pass@1比率是基线的3.36倍。源代码和实验结果已开源,链接为:https://github.com/AutoBench/AutoBench。

英文摘要:

In digital circuit design, testbenches constitute the cornerstone of simulation-based hardware verification. Traditional methodologies for testbench generation during simulation-based hardware verification still remain partially manual, resulting in inefficiencies in testing various scenarios and requiring expensive time from designers. Large Language Models (LLMs) have demonstrated their potential in automating the circuit design flow. However, directly applying LLMs to generate testbenches suffers from a low pass rate. To address this challenge, we introduce AutoBench, the first LLM-based testbench generator for digital circuit design, which requires only the description of the design under test (DUT) to automatically generate comprehensive testbenches. In AutoBench, a hybrid testbench structure and a self-checking system are realized using LLMs. To validate the generated testbenches, we also introduce an automated testbench evaluation framework to evaluate the quality of generated testbenches from multiple perspectives. Experimental results demonstrate that AutoBench achieves a 57% improvement in the testbench pass@1 ratio compared with the baseline that directly generates testbenches using LLMs. For 75 sequential circuits, AutoBench successfully has a 3.36 times testbench pass@1 ratio compared with the baseline. The source codes and experimental results are open-sourced at this link: https://github.com/AutoBench/AutoBench

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

↑