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

AssertLLM: Generating and Evaluating Hardware Verification Assertions from Design Specifications via Multi-LLMs

Wenji Fang, Mengming Li, Min Li, Zhiyuan Yan, Shang Liu, Hongce Zhang, Zhiyao Xie · OpenReview

Abstract

Assertion-based verification (ABV) is a critical method for ensuring design circuits comply with their architectural specifications, which are typically described in natural language. This process often requires human interpretation by verification engineers to convert these specifications into functional verification assertions. Existing methods for generating assertions from natural language specifications are limited to sentences extracted by engineers, discouraging its practical application. In this work, we present AssertLLM, an automatic assertion generation framework that processes complete specification files. AssertLLM breaks down the complex task into three phases, incorporating three customized Large Language Models (LLMs) for extracting structural specifications, mapping signal definitions, and generating assertions. Our evaluation of AssertLLM on a full design, encompassing 23 I/O signals, demonstrates that 89% of the generated assertions are both syntactically and functionally accurate.

Introduction

In the domain of Very Large Scale Integration (VLSI) design, ensuring that a circuit implementation aligns with its architectural intent is a monumental task. Verification engineers rely on Assertion-Based Verification (ABV) to monitor Register-Transfer Level (RTL) code against natural language specifications. This involves writing SystemVerilog Assertions (SVA)—formal code snippets that check for specific design behaviors.

AssertLLM's role in the hardware design and verification lifecycle.

The manual creation of these assertions is a significant bottleneck. Previous automation attempts have struggled with two primary issues: RTL-dependency, where assertions are derived from potentially buggy code, and granularity issues, where tools can only process isolated sentences rather than comprehensive design documents. AssertLLM addresses these by providing an end-to-end pipeline that digests full specification documents to produce high-quality assertions directly from the architectural stage.

Methodology

AssertLLM employs a multi-agent system to decompose the "specification-to-assertion" pipeline into three specialized stages, as shown in the framework overview.

The AssertLLM framework architecture, illustrating the Generation and Evaluation phases.

1. SPEC Analyzer (LLM 1)

This agent is designed to process unstructured specification files, including text, tables, and diagrams. It extracts architectural signal information and categorizes it into definitions (e.g., bit-width), functionality, and interconnections. This structured output serves as the foundation for subsequent steps.

2. Signal Mapper (LLM 2)

Natural language specifications often use descriptive terminology that differs from the signal names used in Hardware Description Language (HDL) code. The Signal Mapper uses a code interpreter to align these "human" names with the actual variable names in the Verilog source, ensuring the assertions target the correct signals.

3. SVA Generator (LLM 3)

The final agent utilizes Retrieval-Augmented Generation (RAG) to pull from a curated knowledge base of SVA tutorials and textbooks. This ensures the generated code adheres to strict syntax rules. The generator focuses on three primary assertion types: bit-width checks, connectivity interactions, and functional logic behavior.

Evaluation and Results

The framework was tested using a new open-source benchmark suite comprising 20 designs, including microprocessors, SoC architectures, and communication protocols. Each design includes a full natural language specification and a "golden" RTL implementation for validation.

In a rigorous evaluation using an I2C protocol design with 23 I/O signals, AssertLLM demonstrated exceptional performance:

  • Syntax Accuracy: 100% of the generated assertions passed syntax checks.
  • Functional Accuracy: 89% of the assertions correctly described the intended design behavior when tested via Formal Property Verification (FPV) using industry-standard tools like Cadence JasperGold.
  • Comparative Performance: A baseline GPT-4 approach achieved only an 8% overall accuracy rate, primarily due to its inability to handle unstructured multi-modal specifications and complex SVA syntax.

Discussion and Conclusion

AssertLLM highlights the power of specialized multi-LLM systems over general-purpose models for complex engineering tasks. By isolating extraction, mapping, and generation, the framework maintains focus and reduces "noise" in the context window. Furthermore, the tool's performance can serve as a metric for specification quality; an inability to generate functional assertions often indicates ambiguities in the original design document.

While AssertLLM is highly effective for documented architectural interfaces, future work will focus on generating assertions for deep internal logic and implementing "self-healing" mechanisms where the system iteratively corrects assertions based on formal verification feedback.

Summary updated

BibTeX
@misc{fang2024assertllm,
  author = {Wenji Fang and Mengming Li and Min Li and Zhiyuan Yan and Shang Liu and Hongce Zhang and Zhiyao Xie},
  title = {{AssertLLM: Generating and Evaluating Hardware Verification Assertions from Design Specifications via Multi-LLMs}},
  year = {2024},
  eprint = {2402.00386},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.00386},
}
Figure