TL;DR
Before a computer chip is manufactured, engineers use formal verification—mathematically proving that a design obeys its rules, known as SystemVerilog Assertions (SVA). While Large Language Models (LLMs) are increasingly used to write these assertions, current benchmarks only check whether the generated code compiles and passes basic checks on small, flat designs. HierSVA introduces an industrial-grade synthesis pipeline, a hierarchical dataset of 342 real-world hardware modules, and a six-axis benchmark, revealing that while LLMs are great at writing assertions that pass, those assertions often miss huge chunks of the design's actual logic and struggle to catch real bugs without triggering false alarms.
What Problem Does This Paper Address?
In hardware design verification, a single missed bug can ruin a multi-million-dollar silicon tapeout. To catch bugs early, engineers write SystemVerilog Assertions (SVA)—formal rules that a model checker (like Synopsys VC Formal) proves or disproves mathematically.
Recently, researchers have tested LLMs on generating SVA, but the evaluation infrastructure has three major blind spots:
- No scalable ground truth: Existing benchmarks rely on small, hand-written sets or automated mining tools that don't scale.
- Flat designs only: Real chips are hierarchical—modules instantiate other submodules inside them. Existing datasets strip out these dependencies, testing only flat, isolated blocks.
- Shallow metrics: Most benchmarks stop at syntax correctness and pass/fail rates. An assertion can easily "pass" by being trivial or vacuous (e.g., an "if-then" rule where the "if" condition can never happen), giving a false sense of security.
HierSVA tackles all three gaps by building a pipeline, dataset, and benchmark grounded in industrial verification practices.
Methods
The authors build HierSVA-SP (Synthesis Pipeline) around standard industrial tools (Synopsys VC Formal) and three key hardware-specific extensions:
- Hierarchical Assume-Guarantee Composition: Instead of flattening a massive chip into one giant verification problem, HierSVA-SP operates on a module dependency graph (Figure 1). It verifies leaf modules (depth 0) first, turning their proven assertions into "contracts" (assumptions and guarantees). When verifying a parent module, its submodules are blackboxed, and the parent relies on those contracts—mirroring how real verification teams scale to deep hierarchies.
- Parameter Cross-Product Expansion: Hardware modules are parameterized (e.g., FIFO widths or arbiter policies). The LLM classifies parameters into size-based, behavior-changing, or synthesis-hint types, and the EDA tool verifies every valid behavioral configuration independently.
- Iterative Synthesis with Formal Feedback: As shown in Figure 2, the pipeline runs an LLM-in-the-loop. Deterministic non-LLM code parses formal verification logs and feeds structured failure messages back to the LLM. The loop only converges when all assertions prove non-vacuously, cover 100% of eligible injected faults, and leave no design statements outside the "formal core" (the logic actually exercised by the proof).
Using this setup, HierSVA-B (the Benchmark) evaluates LLMs in both static (one-shot) and agentic (iterative feedback) modes across six axes: Syntax Correctness (C1), Non-Vacuous Proof Rate (C2-P), Vacuity (C2-V), Specification Faithfulness (C3), Mutation Coverage (C4), and Formal Core Coverage (C5).
Datasets
Running the pipeline on BaseJump STL—an open-source, tapeout-validated SystemVerilog standard library—yields HierSVA-DS:
- Main Set: 342 modules spanning 8 categories (e.g., caches, networks-on-chip, memory primitives) with hierarchy depths from 0 to 9. Every module passed the formal-evidence filter.
- Deep Evaluation Subset: 28 module-bug pairs (across 27 unique modules) designed to test whether LLMs follow a written specification rather than blindly mirroring buggy RTL code. It includes 7 real bugs recovered from BaseJump STL's git history and 21 synthetic bugs, all paired with natural-language specifications and reviewed by senior industrial verification engineers.
Key Insights and Ideas
Evaluating twelve recent LLMs (including Claude Opus 4.7, GPT-5.5, Gemini 3.1 Pro, and DeepSeek V4 Pro) revealed three striking findings:
- Provability overstates verification strength: LLMs are quite good at writing assertions that compile and pass formal checks. However, passing a check doesn't mean the assertion is actually verifying the whole module. A model might verify a FIFO's overflow and underflow rules while completely forgetting to check first-in-first-out ordering.
- LLMs struggle to separate spec from implementation: When given buggy RTL and a correct natural-language specification, LLMs frequently trigger false alarms on correct code. They often write "broken" assertions that fail on both the buggy and correct versions of the hardware.
- Agentic feedback boosts provability, not strength: Giving an LLM iterative feedback from the formal tool helps it fix syntax errors and get more assertions to pass. Paradoxically, however, the overall verification strength drops—the models seem to revise their assertions into ones that are easier to prove but exercise less of the design.
Key Results
- Main-Set Static Evaluation (12 models, 342 modules):
- Syntax Correctness (C1): 66.6% cross-model mean.
- Non-Vacuous Proof Rate (C2-P): 82.1% of assertions in evaluable runs proved without vacuity.
- Mutation Coverage (C4): Only 70.2% of eligible injected faults were detected.
- Formal Core Coverage (C5): Only 36.2% of the design's formal core was covered—a massive 46-point drop from the proof rate. Coverage also degraded with hierarchy depth, falling from 75.5% at depth 0 to 14.0–26.0% at depths 5–7.
- Deep-Subset Faithfulness (C3): Across 211 evaluable model–module entries, generated assertions flagged buggy RTL with 0.87 recall, but 0.60 precision (40% of predicted-buggy outcomes were false positives on correct RTL). Only 29% of entries were truly Spec-Aligned, while 58% were Broken and 13% Mirror-RTL.
- Agentic Mode (5 models, 40-module subset, up to 6 rounds): From iteration 0 to 6, mean C1 rose by +16.0 percentage points (pp) and C2-P rose by +28.0 pp, while C4 fell by −13.3 pp and C5 fell by −20.1 pp, oscillating across iterations.
Limitations and Future Work
The authors note two main limitations:
- Prompt artifacts: The evaluation prompts retained instructions about structural coverage from an earlier pipeline version; while structural coverage was disabled and not scored, those instructions may have influenced LLM generation.
- Manual fault exclusions: The eligible-fault denominator for mutation coverage (C4) relies on manually audited exclusions (
limit.json) for faults that SVA cannot meaningfully detect.
For future work, the authors suggest conducting a semantic audit of the main dataset, expanding the deep subset with more semantic-level bugs and multiple isolated bug variants per module, and automating the eligible-fault denominator.
Summary updated