AssertLLM: Generating and Evaluating Hardware Verification Assertions from Design Specifications via Multi-LLMs
Wenji Fang, Mengming Li, Min Li, Zhiyuan Yan, Shang Liu, Zhiyao Xie, Hongce Zhang
TL;DR
AssertLLM tackles automatic generation of hardware verification assertions from complete natural-language specifications. It decompose into three specialized LLMs: SPEC Analyzer, Signal Mapper, and SVA Generator, augmented with Retrieval Augmented Generation and a golden RTL evaluation framework. It processes complete specification documents, producing SVAs across bit-width, connectivity, and functional categories, and validates them with a formal property verification approach. The work also contributes an open-source benchmark of 20 designs and demonstrates how specification quality can be assessed and improved via the AssertLLM framework.
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.
