从语言到逻辑:桥接LLMs与形式表示以生成RTL断言
From Language to Logic: Bridging LLMs & Formal Representations for RTL Assertion Generation
AI总结:
本文提出ProofLoop工具增强的ReAct代理,通过求解器在环方法从自然语言规范生成SVA,实现93.7%的语法正确性和82.0%的功能正确性。
摘要:
SystemVerilog Assertions (SVA) 是数字硬件形式验证的关键,但其手动创建需要对设计和时序逻辑的深入理解。本文提出ProofLoop,一种工具增强的ReAct代理,通过求解器在环方法从自然语言规范生成SVA。代理分为两个阶段:阶段A通过调用EDA和形式工具自动收集设计上下文,包括基于AST索引向量数据库的语义搜索和JasperGold结构查询;阶段B生成SVA并使用JasperGold形式证明反馈进行迭代优化,最多经过固定(此处为3)轮验证。在FVEval Design2SVA设计基准上评估证明,该框架实现了93.7%的语法正确性和82.0%的功能正确性。消融研究证实,每个组件,即检索增强生成(RAG)、JasperGold工具和验证循环均显著(且正交)地贡献。
英文摘要:
SystemVerilog Assertions (SVA) are essential for formal verification of digital hardware, yet their manual creation demands significant expertise in both the design under verification and temporal logic. Recent studies have explored using large language models (LLMs) to automate SVA generation, but existing approaches suffer from incorrect signal references, missing timing constraints, and lack of formal correctness guarantees. This paper presents ProofLoop, a tool-augmented ReAct agent that generates SVA from natural-language specifications using a solver-in-the-loop approach. The agent operates in two phases: Phase A autonomously gathers design context by invoking EDA and formal tools, including semantic search over an AST-indexed vector database and JasperGold structural queries, while Phase B generates SVA and iteratively refines it using JasperGold formal proof feedback over up to fixed (here 3) verification rounds. We evaluate ProofLoop on FVEval Design2SVA design benchmarks and demonstrate that this framework can achieve 93.7% syntax correctness and 82.0% functional correctness. An ablation study confirms that each component, i.e., retrieval-augmented generation (RAG), JasperGold tools, and the verification loop contributes significantly (and orthogonally).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。