AssertFix:借助大型语言模型实现自动化断言修复
AssertFix: Empowering Automated Assertion Fix via Large Language Models
AI总结:
针对 LLM 生成的错误 SVA 仍需人工修复的问题,本文提出 AssertFix 框架,自动定位相关 RTL、诊断根因、分类错误并应用专用策略修复断言,在 Opencore 上提升修复率与验证覆盖率。
摘要:
基于断言的验证(ABV)对于确保寄存器传输级(RTL)设计符合其功能规范至关重要。SystemVerilog 断言(SVA)能够有效地描述设计属性,但手动编写和维护它们既具有挑战性又容易出错。尽管最近利用大型语言模型(LLM)的断言生成方法在提升断言质量方面展现出巨大潜力,但这些方法通常将断言生成视为最后一步,把修复错误断言的负担留给人工,这可能会显著限制这些方法的应用。为解决上述局限,我们提出了一个基于 LLM 的自动断言修复框架,名为 AssertFix。AsserFix 会准确定位与错误断言相关的 RTL 代码,系统地识别断言错误的根本原因,对错误类型进行分类,最后采用专门的修复策略自动纠正这些错误,从而提升所生成断言的整体质量。实验结果表明,AssertFix 在 Opencore 基准测试上的修复率和验证覆盖率均取得了显著提升。
英文摘要:
Assertion-based verification (ABV) is critical in ensuring that register-transfer level (RTL) designs conform to their functional specifications. SystemVerilog Assertions (SVA) effectively specify design properties, but writing and maintaining them manually is challenging and error-prone. Although recent progress of assertion generation methods leveraging large language models (LLMs) have shown great potential in improving assertion quality, they typically treat assertion generation as a final step, leaving the burden of fixing of the incorrect assertions to human effects, which may significantly limits the application of these methods. To address the above limitation, we propose an automatic assertion fix framework based on LLMs, named AssertFix. AsserFix accurately locates the RTL code related to the incorrect assertion, systematically identifies the root causes of the assertion errors, classifies the error type and finally applies dedicated fix strategies to automatically correct these errors, improving the overall quality of the generated assertions. Experimental results show that AssertFix achieves noticeable improvements in both fix rate and verification coverage across the Opencore benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。