SELGJan 31, 2024

ChIRAAG: ChatGPT Informed Rapid and Automated Assertion Generation

arXiv:2402.00093v342 citationsh-index: 13ISVLSI
Originality Incremental advance
AI Analysis

This addresses the time-consuming and error-prone process of assertion generation for hardware verification engineers, representing an incremental improvement in LLM-informed automation.

The authors tackled the complex task of generating System Verilog Assertions (SVA) from natural language specifications by developing ChIRAAG, a framework based on OpenAI GPT4, which reduced errors in raw assertions to 27% and corrected them in few iterations using simulation feedback.

System Verilog Assertion (SVA) formulation -- a critical yet complex task is a prerequisite in the Assertion Based Verification (ABV) process. Traditionally, SVA formulation involves expert-driven interpretation of specifications, which is time-consuming and prone to human error. Recently, LLM-informed automatic assertion generation is gaining interest. We designed a novel framework called ChIRAAG, based on OpenAI GPT4, to generate SVA from natural language specifications of a design. ChIRAAG constitutes the systematic breakdown of design specifications into a standardized format, further generating assertions from formatted specifications using LLM. Furthermore, we used few test cases to validate the LLM-generated assertions. Automatic feedback of log messages from the simulation tool to the LLM ensures that the framework can generate correct SVAs. In our experiments, only 27% of LLM-generated raw assertions had errors, which was rectified in few iterations based on the simulation log. Our results on OpenTitan designs show that LLMs can streamline and assist engineers in the assertion generation process, reshaping verification workflows.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes