Skip to main content
QUICK REVIEW

[Paper Review] AssertLLM: Generating and Evaluating Hardware Verification Assertions from Design Specifications via Multi-LLMs

Wenji Fang, Mengming Li|arXiv (Cornell University)|Feb 1, 2024
Software Testing and Debugging TechniquesComputer Science8 citations
TL;DR

AssertLLM automatically generates SystemVerilog Assertions from full design specifications using three specialized LLMs, and evaluates them against golden RTL designs, achieving 89% syntactic and functional accuracy on a complete design.

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.

Motivation & Objective

  • Automate assertion generation from complete natural language design specifications (pre-RTL) to support ABV in hardware verification.
  • Decompose the task into extraction, signal mapping, and SVA generation using three specialized LLMs.
  • Provide an open-source benchmark and evaluation methodology for assessing SVA generation quality across designs.

Proposed method

  • Three customized LLMs are used: SPEC Analyzer to extract structured info from full specs; Signal Mapper to align spec signals with HDL declarations; SVA Generator to create SVAs (width, connectivity, function) using Retrieval Augmented Generation (RAG) and domain knowledge.
  • Formal evaluation uses golden RTL designs and model checking (FPV) to classify SVAs as syntactically correct and FPV-passing, measuring accuracy per signal and per design.
  • An open-source benchmark with 20 designs (spec, signal definitions, golden RTL) to evaluate SVA generation from natural language specs.

Experimental results

Research questions

  • RQ1Can complete natural language specifications be automatically converted into comprehensive SVAs for each architectural signal?
  • RQ2How accurate (syntactically and functionally) are LLM-generated SVAs when evaluated against golden RTL implementations?
  • RQ3Does a multi-LLM, RAG-enhanced approach outperform single LLM baselines in SVA generation from unstructured specifications?
  • RQ4Can the framework generalize across diverse design types beyond the tested I2C design?

Key findings

  • AssertLLM generated 56 SVAs for 23 signals in the I2C design, including 23 width, 16 connectivity, and 17 function SVAs.
  • 89% of the generated SVAs were correct both syntactically and functionally when evaluated on the golden RTL design.
  • Compared to GPT-4 baseline, the customized approach with SPEC Analyzer, Signal Mapper, and SVA Generator plus RAG significantly improves SVA quality and reduces syntax errors.
  • GPT-3.5 could not process multi-modal full-specifications; GPT-4 without the specialized pipeline produced lower-quality SVAs.
  • The benchmark enables evaluation of SVA generation quality across multiple design types and supports future verification-friendly specification writing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.