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

AssertLLM2: 从设计规格生成断言的全面的LLM基准测试

AssertLLM2: A Comprehensive LLM Benchmark for Assertion Generation from Design Specifications

Hong Kong University of Science and Technology(香港理工大学)

Yuchao Wu, Wenji Fang, Jing Wang, Wenkai Li, Ziyan Guo, Zhiyao Xie

AI总结:

提出AssertLLM2基准,包含83个真实设计,通过结构化规格、黄金RTL和变异RTL支持缺陷预防和缺陷狩猎两种实际场景,采用语法有效性、形式可证明性、覆盖率和基于突变的缺陷检测等严格评估框架。

摘要:

基于断言的验证(ABV)是现代硬件设计的基石,但手动将设计意图转化为正式的SystemVerilog断言(SVA)仍然劳动密集且容易出错。虽然大型语言模型(LLMs)显示出自动化这一过程的潜力,但现有基准测试仍然受到不现实的任务制定、弱的规格输入和过于简化的评估的限制。为了解决这些限制,我们引入了AssertLLM2,一个用于硬件验证中真实断言生成的开源基准测试。AssertLLM2包含83个跨13个功能类别的真实设计。对于每个设计,基准测试提供了结构化的设计规格、经过验证的依赖完整的黄金RTL以及系统变异的错误RTL变体。这些支持两种实际设置:缺陷预防,其中从规格生成断言以防止设计错误;以及缺陷狩猎,其中生成断言以暴露预期行为与错误实现之间的差异。据我们所知,AssertLLM2是第一个明确使用错误RTL作为输入来评估缺陷检测能力的基准测试。AssertLLM2进一步采用了更严格的评估框架,涵盖语法有效性、形式可证明性、覆盖率和基于突变的缺陷检测。我们的基准测试使得对断言生成进行更真实和广泛的评估成为可能,并为实际硬件验证中的最先进LLMs建立了严格的基线。

英文摘要:

Assertion-based verification (ABV) is a cornerstone of modern hardware design, yet manually translating design intent into formal SystemVerilog Assertions (SVAs) remains labor-intensive and error-prone. While Large Language Models (LLMs) show promise for automating this process, existing benchmarks remain limited by unrealistic task formulations, weak specification inputs, and oversimplified evaluation. To address these limitations, we introduce AssertLLM2, an open-source benchmark for realistic assertion generation in hardware verification. AssertLLM2 contains 83 real-world designs across 13 functional categories. For each design, the benchmark provides a structured design specification, a verified dependency-complete golden RTL, and systematically mutated buggy RTL variants. These support two practical settings: bug-prevention, where assertions are generated from specifications to guard against design errors, and bug-hunting, where assertions are generated to expose discrepancies between intended behavior and faulty implementations. To the best of our knowledge, AssertLLM2 is the first benchmark to explicitly use buggy RTL as input to evaluate bug-detection capability. AssertLLM2 further adopts a more rigorous evaluation framework spanning syntactic validity, formal provability, coverage, and mutation-based bug detection. Our benchmark enables a more realistic and extensive assessment of assertion generation and establishes rigorous baselines for state-of-the-art LLMs in practical hardware verification.

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

↑