arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.07995cs.AR
收藏

Spec2Assertion:使用带渐进正则化的大语言模型自动生成 RTL 前断言

Spec2Assertion: Automatic Pre-RTL Assertion Generation using Large Language Models with Progressive Regularization

Fenghua Wu, Evan Pan, Rahul Kande, Michael Quinn, Aakash Tyagi, David Kebo Houngninou, Jeyavijayan Rajendran, Jiang Hu

AI总结:

本文提出 Spec2Assertion,利用带渐进正则化和 CoT 提示的 LLM 从 RTL 前设计规范自动生成 SVA,并通过新评估方法验证其断言数量与质量显著优于现有方法。

摘要:

SystemVerilog Assertions(SVA)在数字芯片设计中检测和调试功能缺陷方面发挥着关键作用。然而,生成 SVA 传统上是一个人工、劳动密集且容易出错的过程。自动断言生成的最新进展,尤其是使用机器学习和大语言模型(LLM)的方法,已展现出良好潜力,但大多数方法仍处于早期开发阶段。在本工作中,我们提出 Spec2Assertion,这是一种在 RTL 实现之前根据设计规范自动生成断言的新技术。它利用带有渐进正则化的 LLM,并结合 Chain-of-Thought(CoT,思维链)提示来引导断言综合。此外,我们提出了一种新的评估方法,用于在广泛场景中评估断言质量。在多个基准设计上的实验表明,与近期一种最先进方法相比,Spec2Assertion 生成的语法正确断言多出 70%,并且质量平均提升 2 倍。

英文摘要:

SystemVerilog Assertions (SVAs) play a critical role in detecting and debugging functional bugs in digital chip design. However, generating SVAs has traditionally been a manual, labor-intensive, and error-prone process. Recent advances in automatic assertion generation, particularly those using machine learning and large language models (LLMs), have shown promising potential, though most approaches remain in the early stages of development. In this work, we introduce Spec2Assertion, a new technique for automatically generating assertions from design specifications prior to RTL implementation. It leverages LLMs with progressive regularization and incorporates Chain-of-Thought (CoT) prompting to guide assertion synthesis. Additionally, we propose a new evaluation methodology that assesses assertion quality across a broad range of scenarios. Experiments on multiple benchmark designs show that Spec2Assertion generates 70% more syntax-correct assertions with 2X quality improvement on average compared to a recent state-of-the-art approach.

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

↑