NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AssertMiner: Module-Level Spec Generation and Assertion Mining using Static Analysis Guided LLMs

Hongqin Lyu, Yonghao Wang, Jiaxin Zhou, Zhiteng Chao, Tiancheng Wang, Huawei LiarXiv 2025 · DOI

Abstract

Assertion-Based Verification (ABV) is critical for hardware reliability, yet traditional automated tools often struggle with the micro-architectural complexity of internal sub-modules. AssertMiner introduces a novel framework that leverages static analysis to guide Large Language Models (LLMs) in generating deep, module-level assertions. By extracting structural signal chains and module hierarchies, AssertMiner enables LLMs to "see" internal design logic without being biased by existing bugs, significantly improving bug detection latency and coverage.

The Challenge: Visibility and Latency in Hardware Verification

In modern hardware design, engineers rely on SystemVerilog Assertions (SVA) to ensure functional correctness. However, a significant gap exists between high-level specifications and micro-architectural implementations. Most automated assertion generation tools focus on the "top-level" of a design.

The primary issue is that design errors frequently occur within nested sub-modules. Top-level assertions are often "blind" to these internal states or suffer from high latency—taking many clock cycles to trigger after a bug occurs. While LLMs show promise in code generation, they lack the structural context of undocumented sub-modules and risk "learning" existing bugs if they rely solely on raw RTL code for context.

Methods: The AssertMiner Pipeline

AssertMiner addresses these challenges through a four-stage pipeline that integrates static analysis with a multi-LLM architecture.

The AssertMiner four-stage pipeline for deep assertion mining.
  1. AST-based Structural Analysis: The framework parses RTL code into an Abstract Syntax Tree (AST). It extracts the "skeleton" of the design—Module Call Graphs, I/O tables, and Signal Chains—while ignoring potentially buggy logic.
  2. Module-Level Spec Extraction: An LLM (LLM 1) uses high-level specs and structural data to infer functional specifications for sub-modules that lack documentation.
  3. Verification Feature Extraction: A second LLM (LLM 2) decomposes these inferred specs into atomic, verifiable features (e.g., signal dependencies and timing constraints).
  4. Deep Assertion Mining: A final LLM (LLM 3) translates these features into formal SVA code, utilizing the Signal Chains from Step 1 to ensure correct internal wire referencing.

Key Insights: The "Deep" Advantage

A core contribution of AssertMiner is providing LLMs with hardware context without exposing them to the actual logic implementation. This "structure-as-a-safeguard" approach prevents the model from hallucinating assertions that merely mirror buggy code.

Comparison of top-level vs. module-level assertions in capturing bugs.

Furthermore, module-level assertions provide a significant debugging advantage. As shown in Figure 1, a module-level assertion can capture a bug in as little as 2 clock cycles, whereas a top-level assertion might take 10 cycles or fail to trigger entirely. This reduction in the "search space" is invaluable for hardware engineers during the root-cause analysis phase.

Evaluation and Results

The framework was evaluated using the IWLS 2005 Benchmarks, including designs like I2C, ECG, Pairing, and SHA3.

  • Coverage: AssertMiner achieved over 80% Branch Coverage (BFC) and Statement Coverage (SFC) across the benchmarks.
  • Relevance: Integration with state-of-the-art tools like AssertLLM improved the "Rate when SVA antecedent is true" (NVR) by 15.55%, indicating higher relevance to actual circuit activity.
  • Mutation Testing: Injected bugs were caught more effectively by AssertMiner’s deep assertions compared to top-level methods, particularly in control-heavy designs like I2C where previous methods struggled.

Limitations and Future Outlook

Despite its success, AssertMiner faces challenges. LLMs still produce incorrect assertions in 17% to 54% of cases, necessitating filtering by formal tools like JasperGold. Future work will focus on scaling the framework to handle modern System-on-Chip (SoC) architectures with hundreds of nested modules and more complex, non-linear dataflows.

Summary updated

BibTeX
@misc{lyu2025assertminer,
  author = {Hongqin Lyu and Yonghao Wang and Jiaxin Zhou and Zhiteng Chao and Tiancheng Wang and Huawei Li},
  title = {{AssertMiner: Module-Level Spec Generation and Assertion Mining using Static Analysis Guided LLMs}},
  year = {2025},
  eprint = {2511.10007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.10007},
}
Figure