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

AssertionForge:利用规格与 RTL 的结构化表示增强形式验证断言生成

AssertionForge: Enhancing Formal Verification Assertion Generation with Structured Representation of Specifications and RTL

NVIDIA(英伟达)

Yunsheng Bai, Ghaith Bany Hamad, Syed Suhaib, Haoxing Ren

AI总结:

针对自然语言规格生成 SVA 时信息不完整的问题,本文提出 AssertionForge,融合规格与 RTL 构建硬件领域知识图谱并进行多分辨率上下文综合,显著提升断言质量。

摘要:

从自然语言规格生成 SystemVerilog 断言(SVA)仍是形式验证(FV)中的一项重大挑战,原因在于规格固有的歧义性和不完整性。现有基于 LLM 的方法(如 AssertLLM)仅关注从规格文档中提取信息,往往无法捕获 RTL 代码中存在的关键内部信号交互和设计细节,从而导致断言不完整或不正确。我们提出一种新颖方法,利用面向硬件的 schema 以及领域特定的实体和关系类型,从规格和 RTL 两者构建知识图谱(KG)。我们首先根据规格创建初始 KG,随后将其与从 RTL 代码中提取的信息进行系统性融合,形成统一且全面的 KG。这种组合表示能够更透彻地理解设计,并支持多分辨率上下文综合过程,该过程旨在从 KG 中提取多样化的验证上下文。在四个设计上的实验表明,与先前方法相比,我们的方法显著提升了 SVA 质量。这种结构化表示不仅改进了 FV,也为代码生成和设计理解等任务的未来研究铺平了道路。

英文摘要:

Generating SystemVerilog Assertions (SVAs) from natural language specifications remains a major challenge in formal verification (FV) due to the inherent ambiguity and incompleteness of specifications. Existing LLM-based approaches, such as AssertLLM, focus on extracting information solely from specification documents, often failing to capture essential internal signal interactions and design details present in the RTL code, leading to incomplete or incorrect assertions. We propose a novel approach that constructs a Knowledge Graph (KG) from both specifications and RTL, using a hardware-specific schema with domain-specific entity and relation types. We create an initial KG from the specification and then systematically fuse it with information extracted from the RTL code, resulting in a unified, comprehensive KG. This combined representation enables a more thorough understanding of the design and allows for a multi-resolution context synthesis process which is designed to extract diverse verification contexts from the KG. Experiments on four designs demonstrate that our method significantly enhances SVA quality over prior methods. This structured representation not only improves FV but also paves the way for future research in tasks like code generation and design understanding.

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

↑