DeepAssert: An LLM-Aided Verification Framework with Fine-Grained Assertion Generation for Modules with Extracted Module Specifications

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

Introduction

Assertion-Based Verification (ABV) is a cornerstone of modern hardware design, enabling engineers to catch bugs early in the development cycle. However, the manual creation of high-quality SystemVerilog Assertions (SVA) is a labor-intensive and error-prone process. While Large Language Models (LLMs) have recently been applied to automate SVA generation, existing solutions suffer from two primary limitations: the Granularity Gap and the Golden Model Trap.

The Granularity Gap refers to the tendency of automated tools to focus on top-level architectural specifications, missing the internal "deep" signals within sub-modules where many bugs originate. The Golden Model Trap occurs when tools rely on the Register-Transfer Level (RTL) code to understand module behavior; if the RTL contains a bug, the LLM may inadvertently generate assertions that validate the incorrect behavior as correct.

Conceptual comparison of DeepAssert vs. previous methods in bug detection latency.

DeepAssert addresses these challenges by generating fine-grained assertions for internal modules. By inferring module-level specifications from top-level documentation and port relationships—rather than internal logic—it avoids inheriting bugs from the code it is intended to verify.

The DeepAssert Framework

The DeepAssert framework utilizes a pipeline of four specialized LLM agents to bridge the gap between high-level specifications and deep-level hardware assertions.

The four-step DeepAssert pipeline for automated deep assertion generation.

1. Relationship Extractor

The first stage involves analyzing the RTL to map the design hierarchy. The LLM identifies input/output ports for every module and traces signal propagation across different levels of the hierarchy. This structural map provides the necessary context for subsequent steps.

2. Specification Extractor

This stage represents the core innovation of DeepAssert. The LLM takes the top-level natural language specification and the port maps from the previous step to infer what each sub-module should be doing. Crucially, the agent ignores the internal implementation of the sub-module, ensuring the generated specification is independent of potential bugs in the RTL code.

3. Verification Item Extractor

The inferred module specifications are decomposed into "verification items." These are concise, atomic statements of intent, such as: "If signal X is high, signal Y must trigger within one clock cycle."

4. Deep Assertion Generator

Finally, the LLM translates these atomic items into formal SystemVerilog Assertions. By using standardized templates, the framework ensures the assertions are syntactically correct and compatible with formal verification tools like JasperGold.

Experimental Evaluation

DeepAssert was evaluated using the IWLS 2005 benchmarks, focusing on four representative designs: I2C (communication), SHA3 (cryptography), ECG (signal acquisition), and Pairing (complex key exchange).

Key Results

  • High Coverage: DeepAssert achieved over 80% coverage (Branch, Statement, and Toggle) across most benchmarks. In contrast, prior state-of-the-art methods often failed to generate meaningful assertions for internal signals, resulting in near-zero coverage for deep-level modules.
  • Integration Booster: When integrated with existing tools like AssertLLM, DeepAssert acted as a significant force multiplier. For the SHA3 design, adding DeepAssert increased Toggle Coverage from 89% to 100%.
  • Reduced Debugging Latency: In error-injection (mutation) tests, top-level assertions typically took 10 clock cycles to trigger and only indicated a general failure. DeepAssert’s internal assertions triggered in just 2 cycles and pointed directly to the specific faulty signal within the sub-module.

Discussion and Future Work

The "Inference over Implementation" philosophy allows DeepAssert to break the circular logic that often plagues automated verification. By treating sub-modules as black boxes defined by their "contract" (ports) and "context" (top-level spec), the framework can effectively identify discrepancies between intended and actual behavior.

Despite these successes, challenges remain in scaling to industrial-scale SoCs with millions of lines of code due to LLM context window limits. Future work will focus on enhancing the robustness of the Specification Extractor to handle ambiguous top-level documentation and refining the Relationship Extractor to support more diverse hardware description styles.

Ultimately, DeepAssert demonstrates that LLMs can significantly accelerate hardware verification by providing the fine-grained visibility necessary for rapid bug localization and comprehensive design coverage.

Summary updated

BibTeX
@misc{wang2025deepassert,
  author = {Yonghao Wang and Jiaxin Zhou and Hongqin Lyu and Zhiteng Chao and Tiancheng Wang and Huawei Li},
  title = {{DeepAssert: An LLM-Aided Verification Framework with Fine-Grained Assertion Generation for Modules with Extracted Module Specifications}},
  year = {2025},
  eprint = {2509.14668},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.14668},
}
Figure