TL;DR
AssertLLM2 is a new open-source benchmark designed to realistically evaluate how well Large Language Models (LLMs) can generate SystemVerilog Assertions (SVAs) from hardware design specifications. By testing state-of-the-art models across 83 system-level designs, the benchmark reveals a stark reality: while modern LLMs are excellent at generating syntactically correct code, they still struggle significantly to write assertions that actually catch functional hardware bugs.
What Problem Does This Paper Address?
In hardware engineering, Assertion-Based Verification (ABV) is critical. Engineers write formal properties (assertions) to ensure a chip's design matches its intended behavior. However, manually translating natural-language design specifications into formal SystemVerilog Assertions (SVAs) is a notorious bottleneck—it is labor-intensive, error-prone, and requires deep expertise.
While researchers have turned to LLMs to automate SVA generation, existing evaluation benchmarks suffer from three major flaws:
- Unrealistic Formulation: They often provide the LLM with the completed, "golden" RTL code to help generate assertions. In the real world, assertions are used to verify incomplete or potentially buggy RTL, making this setup unrealistic.
- Oversimplified Evaluation: They primarily check if the generated code compiles (syntax) or passes basic formal checks, ignoring whether the assertions actually have the teeth to catch real bugs.
- Limited Scale: They rely on small, module-level code snippets or messy, inconsistent raw PDFs that conflate an LLM's verification ability with its document-parsing ability.
Methods
AssertLLM2 establishes a more rigorous and practical evaluation pipeline. It splits assertion generation into two realistic scenarios:
- Bug-prevention: Generating assertions purely from the design specification to guard against errors before the RTL code is fully baked.
- Bug-hunting: Providing the LLM with both the specification and an implemented (but potentially faulty) RTL design to see if it can identify discrepancies.
To ensure high-quality inputs, the authors designed an LLM-assisted curation workflow that strips out redundancies from raw PDFs, turning them into standardized, structured textual specifications.
For evaluation, the framework goes far beyond syntax checks. It measures Cone-of-Influence (COI) coverage, proof coverage (what the formal solver actually needs), and a Mutation-Based Bug Kill Ratio. The authors built a pipeline that systematically injects localized functional bugs into the designs, filtering out invalid or equivalent mutations using formal equivalence checking (FEC). If an LLM-generated assertion fails on a buggy RTL variant, the bug is considered "killed."
Datasets
The authors introduce the AssertLLM2 dataset, which contains:
- 83 real-world system-level designs spanning 13 functional categories (including CPU cores, cryptographic engines, DSP pipelines, and memory controllers).
- Structured textual specifications paired with their original raw PDFs.
- Verified golden RTL implementations alongside systematically mutated buggy RTL variants (20 single-bug variants and one five-bug variant per design).
With an average of 2,888 lines of code (LOC) per design, AssertLLM2 represents a massive step up in scale and complexity compared to prior snippet-based datasets.
Key Insights and Ideas
- The "Shallow Assertion" Trap: LLMs frequently generate assertions that are syntactically perfect and easily proven by formal tools, but functionally vacuous. They might check a simple local property (like an output being one-hot encoded) while completely missing deep behavioral requirements.
- Syntax is a Deceptive Metric: Evaluating LLMs purely on syntax or structural reach (COI coverage) overestimates their utility. Leading models achieve over 90% syntax success, but their actual bug-hunting capabilities remain remarkably low.
- Exploration vs. Precision: Different state-of-the-art models exhibit distinct generation philosophies. For instance, GPT-5.2 acts as a "precision-oriented" model (generating fewer, highly reliable assertions), whereas Claude-Sonnet-4.5 is more "exploratory," casting a wider net that sometimes introduces noise.
- Buggy RTL is a Double-Edged Sword: In bug-hunting mode, providing the LLM with a faulty RTL implementation helps it pinpoint errors in smaller designs by highlighting explicit discrepancies. However, on larger, complex designs, the buggy code often misleads the LLM, causing it to hallucinate assertions that match the faulty behavior instead of the specification.
Key Results
The authors benchmarked six leading LLMs (including Gemini-2.5-Pro, Claude-Sonnet-4.5, GPT-5.2, and DeepSeek-V3.2).
- While commercial models approached 95% syntax success and achieved over 60% COI coverage, their actual verification performance was surprisingly weak.
- Under the default single-run setting, the bug kill ratio peaked at just 11.69% (achieved by Claude-Sonnet-4.5).
- Even in a "union" setting—where assertions from three independent generation attempts were combined to maximize coverage—the highest bug kill ratio only reached 18.51% (Gemini-2.5-Pro).
Limitations and Future Work
While AssertLLM2 provides a much-needed reality check for the field, it relies on AST-level mutations to generate bugs. While highly scalable, these mutations primarily capture localized faults rather than complex, distributed system-level bugs that span multiple modules.
The authors note that future work must focus on enhancing the deep reasoning capabilities of LLMs. To be truly useful in industrial hardware verification, models need to better navigate conflicting information between specifications and implementations without being easily misled by buggy code.
Summary updated