Automatic High-quality Verilog Assertion Generation through Subtask-Focused Fine-Tuned LLMs and Iterative Prompting
Mohammad Shahidzadeh, Behnam Ghavami, Steve Wilton, Lesley Shannon

TL;DR
This paper introduces a novel LLM-based method for automatically generating high-quality SystemVerilog Assertions from design documents, significantly improving correctness and reducing manual effort in formal property verification.
Contribution
It presents a sub-task-focused fine-tuning approach and an iterative refinement process with custom error feedback to enhance assertion quality from LLMs.
Findings
7.3-fold increase in functionally correct assertions
26% more assertions free from syntax errors
Effective reduction of manual verification effort
Abstract
Formal Property Verification (FPV), using SystemVerilog Assertions (SVA), is crucial for ensuring the completeness of design with respect to the specification. However, writing SVA is a laborious task and has a steep learning curve. In this work, we present a large language model (LLM) -based flow to automatically generate high-quality SVA from the design specification documents, named \ToolName. We introduce a novel sub-task-focused fine-tuning approach that effectively addresses functionally incorrect assertions produced by baseline LLMs, leading to a remarkable 7.3-fold increase in the number of functionally correct assertions. Recognizing the prevalence of syntax and semantic errors, we also developed an iterative refinement method that enhances the LLM's initial outputs by systematically re-prompting it to correct identified issues. This process is further strengthened by a custom…
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
TopicsSpeech Recognition and Synthesis · Handwritten Text Recognition Techniques · Natural Language Processing Techniques
