ChIRAAG:基于ChatGPT信息的快速自动化断言生成
ChIRAAG: ChatGPT Informed Rapid and Automated Assertion Generation
AI总结:
ChIRAAG框架利用GPT-4将设计规范标准化后自动生成System Verilog断言,并通过仿真日志反馈迭代纠错,在OpenTitan上验证了LLM辅助断言生成的可行性。
摘要:
System Verilog断言(SVA)的制定——一项关键但复杂的任务——是基于断言的验证(ABV)流程中的先决条件。传统上,SVA制定涉及由专家驱动的规范解释,这既耗时又容易产生人为错误。近年来,基于大语言模型(LLM)信息的自动断言生成正引起越来越多的关注。我们设计了一个名为ChIRAAG的新框架,该框架基于OpenAI GPT-4,从设计的自然语言规范中生成SVA。ChIRAAG将设计规范系统地分解为标准化格式,并进一步利用LLM从格式化规范中生成断言。此外,我们使用了少量测试用例来验证LLM生成的断言。仿真工具产生的日志消息自动反馈给LLM,确保该框架能够生成正确的SVA。在我们的实验中,LLM生成的原始断言中仅有27%存在错误,这些错误在基于仿真日志的少数迭代中得到了纠正。我们在OpenTitan设计上的结果表明,LLM可以简化并辅助工程师完成断言生成过程,重塑验证工作流程。
英文摘要:
System Verilog Assertion (SVA) formulation -- a critical yet complex task is a prerequisite in the Assertion Based Verification (ABV) process. Traditionally, SVA formulation involves expert-driven interpretation of specifications, which is time-consuming and prone to human error. Recently, LLM-informed automatic assertion generation is gaining interest. We designed a novel framework called ChIRAAG, based on OpenAI GPT4, to generate SVA from natural language specifications of a design. ChIRAAG constitutes the systematic breakdown of design specifications into a standardized format, further generating assertions from formatted specifications using LLM. Furthermore, we used few test cases to validate the LLM-generated assertions. Automatic feedback of log messages from the simulation tool to the LLM ensures that the framework can generate correct SVAs. In our experiments, only 27% of LLM-generated raw assertions had errors, which was rectified in few iterations based on the simulation log. Our results on OpenTitan designs show that LLMs can streamline and assist engineers in the assertion generation process, reshaping verification workflows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。