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

VerilogReader:LLM辅助的硬件测试生成

VerilogReader: LLM-Aided Hardware Test Generation

School of Computer Science, Peking University(北京大学计算机学院);School of Information, Renmin University of China(中国人民大学信息学院)

Ruiyang Ma, Yuxin Yang, Ziqian Liu, Jiaxi Zhang, Min Li, Junhua Huang, Guojie Luo

AI总结:

本文提出VerilogReader框架,将LLM作为Verilog代码阅读器集成到覆盖率导向测试生成中,通过准确理解代码逻辑生成激励以覆盖未探索分支,并在自建基准上验证其优于随机测试。

摘要:

测试生成一直是硬件设计验证中关键且劳动密集的过程。近年来,大语言模型(LLM)凭借其先进的理解和推理能力,引入了一种新方法。在本工作中,我们研究了将LLM集成到覆盖率导向测试生成(CDG)流程中的方法,其中LLM充当Verilog Reader。它准确掌握代码逻辑,从而生成能够到达未探索代码分支的激励。我们使用自行设计的Verilog基准套件,将我们的框架与随机测试进行了比较。实验表明,在LLM理解范围内的设计上,我们的框架优于随机测试。我们的工作还提出了提示工程优化,以增强LLM的理解范围和准确性。

英文摘要:

Test generation has been a critical and labor-intensive process in hardware design verification. Recently, the emergence of Large Language Model (LLM) with their advanced understanding and inference capabilities, has introduced a novel approach. In this work, we investigate the integration of LLM into the Coverage Directed Test Generation (CDG) process, where the LLM functions as a Verilog Reader. It accurately grasps the code logic, thereby generating stimuli that can reach unexplored code branches. We compare our framework with random testing, using our self-designed Verilog benchmark suite. Experiments demonstrate that our framework outperforms random testing on designs within the LLM's comprehension scope. Our work also proposes prompt engineering optimizations to augment LLM's understanding scope and accuracy.

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

↑