arXiv:2611.12712cs.SENov 2026

Manuscript Offprint

arXiv:2611.12712

Will AI mess my RTL? A snapshot-based approach to verifying AI-written RTL

Bernat Homs, Oscar Palomar, Miquel Moreto, Marcelo Orenes-Vera

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

With the growing interest in using AI (Artificial Intelligence) for RTL (Register-Transfer Level) hardware development, robust and comprehensive verification has become more important than ever. As Large Language Models (LLMs) increasingly assist in creating and modifying RTL designs, ensuring that these changes preserve existing functionality is paramount for building trust in AI-driven workflows. We present SVAPshot, a fully automated framework that leverages LLMs to generate and systematically attempt to correct SystemVerilog Assertions (SVA) for RTL modules, completely removing the human from the generation loop. SVAPshot introduces a novel snapshot methodology that captures the current functionality of a design as a comprehensive set of formal assertions, creating a regression suite for validating future changes—whether made by humans or AI. The framework features automated duplicate detection, assertion set expansion, and iterative repair of failing assertions using LLM-guided debugging with formal verification feedback. Our experimental evaluation across diverse RTL modules demonstrates high coverage for complex modules, with successful detection of both manually-injected and AI-introduced bugs. Additionally, this framework opens the door for automatic generation of formal testbenches to benchmark LLMs for hardware design, moving beyond binary pass/fail metrics towards nuanced assertion-based scoring.

1 Introduction and Background

The rapid advancement of LLMs has opened a new era of AI-driven RTL design, where automated tools increasingly handle the creation and modification of hardware descriptions [1, 11, 13], introducing unprecedented verification challenges. As LLMs automate complex design tasks, ensuring that AI modifications to RTL preserve existing functionality while introducing new features has become paramount for building trust in AI-driven workflows. Traditional approaches to automated assertion generation have made significant strides but fall short of addressing the unique demands of AI-assisted hardware design. Early methods like GoldMine [12] pioneered dynamic assertion mining through simulation-based data mining, while template-based approaches such as HARM [8] and A-TEAM [6] leveraged predefined patterns to generate assertions from execution traces. ILA [9] generates a model of the design from a functional specification and compares it against its RTL implementation, and AutoSVA [20] introduced annotation-driven

Figure

Figure 1: SVAPshot toolflow diagram showing the complete process from RTL input to final snapshot generation. Green boxes represent automated processes scripted in Python, blue boxes represent processes involving LLMs.

formal testbench generation. However, these conventional methods are constrained by their dependence on simulation coverage, predefined templates, models, or manual annotations. The emergence of LLM-based assertion generation has shown promise in addressing some of these limitations [21, 23]. Recent works like AssertLLM [23] process complete specification documents to generate assertions, while AssertionForge [2] constructs knowledge graphs from both specifications and RTL code to discover complex signal interactions. Spec2Assertion [16] focuses on pre-RTL assertion generation from architectural specifications. Despite these advances, current LLM-based approaches suffer from critical gaps: they lack mechanisms for iterative refinement of failing assertions and do not provide systematic approaches for maintaining assertions across design evolution. Our tool, SVAPshot, is designed to be used in the rapid, iterative nature of AI-driven design. It addresses these limitations by introducing a framework focused on creating a snapshot that captures the functionality of an RTL module as a comprehensive set of SystemVerilog Assertions (SVA) that serves as a regression suite for future modifications. Unlike existing approaches that generate assertions from specifications, SVAPshot leverages the goal of treating the current RTL as a golden reference to iteratively refine LLM-generated assertions and obtain a set of proven assertions with respect to the reference RTL. Specifications are often incomplete and expressed in diverse, non-textual forms such as waveforms or tables, which standard LLMs

Paper presented at the DAC 2026 Work in Progress (WIP) Poster Session.

Figure

This work is licensed under a Creative Commons Attribution 4.0 International License.

struggle to interpret unless these artifacts are transformed into text or handled by specialized models. Because natural language is inherently ambiguous, converting specs into a formal representation is critical to avoid misinterpretation. Meanwhile, RTL provides full visibility into the design's microarchitecture, enabling LLMs to generate internal assertions that remain reusable as long as those parts of the design remain stable. This snapshot methodology is particularly valuable for AI-driven design, where rapid changes are difficult to manually audit. SVApshot's golden reference toolflow is orthogonal to prior works and could even adopt different assertion generation rules. The current version of SVApshot uses the rules from AutoSVA2 [21]. SVApshot's generation based on reference RTL implementations is also applicable to automatically creating formal testbenches for benchmarking of LLMs at hardware design, which is more exhaustive than simple functional equivalence comparison and provides more verification visibility than LEC (Logical Equivalence Checking), i.e. offers a direct view of the mismatching logic, with a concrete failing assertion, rather than a general output mismatch that requires debugging. Several benchmarks have emerged to evaluate LLMs for RTL generation using coarser-grained metrics like functional equivalence or simulation-based testbenches. These approaches would benefit from using SVApshot to curate assertion suites as property checklists for exhaustively evaluating LLM-generated RTL. RTLLM [14] provides an open benchmark suite comprising design descriptions, test cases, and golden RTL implementations to assess LLM capabilities in RTL generation. VerilogEval [15] focuses on specific tasks like code completion and spec-to-RTL translation. TuRTLe [7] offers a unified evaluation framework, integrating multiple existing benchmarks (including VerilogEval and RTLLM) to assess LLM performance across a spectrum of RTL generation tasks. SVApshot is uniquely positioned to facilitate the benchmarking of LLM-generated RTL. Instead of relying solely on simulation-based testbenches for benchmarking, which may miss corner-case bugs, prior work can leverage SVApshot to create comprehensive, high-quality, and formally verifiable assertion suites. SVApshot introduces several key innovations that enable this snapshot methodology:

  • ① Implements an automated iterative repair loop that attempts to fix failing assertions using LLM-guided debugging, addressing a critical gap in existing tools that typically treat generated assertions as final outputs.
  • ② Provides sophisticated duplicate detection and assertion set extension capabilities that ensure comprehensive coverage while avoiding redundancy through conjunctive normal form (CNF) analysis.
  • ③ Integrates these features through an automatic and modular pipeline that begins with automated formal testbench generation, proceeds through LLM-based assertion generation with systematic syntax correction, expands assertion sets through targeted prompting, and concludes with iterative semantic repair using formal verification feedback.

This end-to-end LLM-assisted automation, combined with robust error handling and systematic refinement, enables SVApshot to generate testbenches that serve both as verification artifacts and as

Algorithm 1 SVApshot Toolflow

Require: RTL module MM

1: Stage 1: Generate formal testbench environment for MM 2: Stage 2: Ainitial←LLM.generateAssertions(M,rules)A_{initial} \leftarrow \text{LLM.generateAssertions}(M, \text{rules}) 3: Stage 3: Acorrected←correctSyntax(Ainitial)A_{corrected} \leftarrow \text{correctSyntax}(A_{initial}) 4: Stage 4: Initialize property database with AcorrectedA_{corrected} 5: repeat 6: Apot_unique←removeDupl(Anew,prop_db)A_{pot\_unique} \leftarrow \text{removeDupl}(A_{new}, \text{prop\_db}) 7: Apot_unique_corr←correctSyntax(Apot_unique)A_{pot\_unique\_corr} \leftarrow \text{correctSyntax}(A_{pot\_unique}) 8: Aunique←removeDupl(Apot_unique_corr,prop_db)A_{unique} \leftarrow \text{removeDupl}(A_{pot\_unique\_corr}, \text{prop\_db}) 9: Acorrected←Acorrected∪AuniqueA_{corrected} \leftarrow A_{corrected} \cup A_{unique} 10: Update property database (prop_db\text{prop\_db}) 11: until Aunique=∅A_{unique} = \emptyset ▹\triangleright All new assertions are duplicates 12: Stage 5: results ←\leftarrow formalVerify(Acorrected,MA_{corrected}, M) 13: Aproven←∅,Acex←∅A_{proven} \leftarrow \emptyset, A_{cex} \leftarrow \emptyset 14: for each assertion a∈Acorrecteda \in A_{corrected} do 15: if results[a] = PROVEN then 16: Aproven←Aproven∪{a}A_{proven} \leftarrow A_{proven} \cup \{a\} 17: else if results[a] = CEX then 18: repaired ←\leftarrow false, attempts ←0\leftarrow 0 19: while ¬\negrepaired and attempts < 5 do 20: afixed←LLM.fixSVA(a,results[a].cex,M)a_{fixed} \leftarrow \text{LLM.fixSVA}(a, \text{results}[a].cex, M) 21: result ←\leftarrow formalVerify(afixed,Ma_{fixed}, M) 22: if result = PROVEN then 23: Aproven←Aproven∪{afixed}A_{proven} \leftarrow A_{proven} \cup \{a_{fixed}\} 24: repaired ←\leftarrow true 25: end if 26: attempts ←\leftarrow attempts + 1 27: end while 28: if ¬\negrepaired then 29: Acex←Acex∪{a}A_{cex} \leftarrow A_{cex} \cup \{a\} 30: end if 31: end if 32: end for 33: return snapshot(Aproven,AcexA_{proven}, A_{cex})

benchmarking instruments for evaluating AI-generated RTL. Figure 1 illustrates the complete toolflow through a detailed diagram, which Algorithm 1 further details with pseudocode.