LAAG-RV: LLM Assisted Assertion Generation for RTL Design Verification
Authors:
- 21 July 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-6
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 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 shows that some generated assertions contain issues and did not pass all the test cases. However, iteratively prompting the LLMs using carefully crafted manual prompts derived from test case failures in a simulator, the framework can generate correct SVAs. Our results on OpenTitan designs demonstrate that LLMs significantly simplify the process of generating assertions, making it efficient and less error-prone.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- Chip-Chat: Challenges and Opportunities in Conversational Hardware Design2023
- 14 examples of how LLMs can transform materials science and chemistry: a reflection on a large language model hackathonDigital Discovery, 2023
- Large language models in medicineNature Medicine, 2023
- Large language model AI chatbots require approval as medical devicesNature Medicine, 2023
- Impact of Code Language Models on Automated Program Repair2023
- Automated Generation of Security Assertions for RTL ModelsACM Journal on Emerging Technologies in Computing Systems, 2023
- FinGPT: Open-Source Financial Large Language ModelsSSRN Electronic Journal, 2023
- Less training, more repairing please: revisiting automated program repair via zero-shot learning2022
- A Roadmap for Formal Property Verification2007