LAAG-RV: LLM Assisted Assertion Generation for RTL Design Verification
Karthik Maddala, Bhabesh Mali, Chandan Karfa

TL;DR
This paper introduces LAAG-RV, a framework using GPT-4 based LLMs to generate SystemVerilog Assertions from natural language specifications, simplifying RTL design verification and reducing errors through iterative prompting.
Contribution
The paper presents a novel LLM-based approach for automatic SVA generation from natural language, including a verification loop to improve assertion accuracy.
Findings
LLMs can generate initial assertions that often contain issues.
Iterative prompting with test case feedback improves assertion correctness.
The framework simplifies and accelerates the assertion generation process.
Abstract
Writing SystemVerilog Assertions (SVA) is an important but complex step in verifying Register Transfer Level (RTL) designs. Conventionally, experts need to understand the design specifications and write the SVA assertions, which is time-consuming and error-prone. However, with the recent advancement of transformer models, the Large Language Models (LLMs) assisted assertion generation for design verification is gaining interest in recent times. Motivated by this, we proposed a novel LLM-based framework, LAAG-RV, to generate SVA from the natural language specifications of the design. Our framework provides a one-time Verilog loop for signal synchronization in the generated SVA to improve the generated assertion quality. For our experiments, we created a custom LLM based on OpenAI GPT-4. Furthermore, we developed test cases to validate the LLM-generated assertions. Initial observations…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEngineering Applied Research · Real-time simulation and control systems · Embedded Systems Design Techniques
