AssertFix: Empowering Automated Assertion Fix via Large Language Models
By: Hongqin Lyu , Yunlin Du , Yonghao Wang and more
Potential Business Impact:
Fixes computer code mistakes automatically.
Assertion-based verification (ABV) is critical in ensuring that register-transfer level (RTL) designs conform to their functional specifications. SystemVerilog Assertions (SVA) effectively specify design properties, but writing and maintaining them manually is challenging and error-prone. Although recent progress of assertion generation methods leveraging large language models (LLMs) have shown great potential in improving assertion quality, they typically treat assertion generation as a final step, leaving the burden of fixing of the incorrect assertions to human effects, which may significantly limits the application of these methods. To address the above limitation, we propose an automatic assertion fix framework based on LLMs, named AssertFix. AsserFix accurately locates the RTL code related to the incorrect assertion, systematically identifies the root causes of the assertion errors, classifies the error type and finally applies dedicated fix strategies to automatically correct these errors, improving the overall quality of the generated assertions. Experimental results show that AssertFix achieves noticeable improvements in both fix rate and verification coverage across the Opencore benchmarks.
Similar Papers
AssertGen: Enhancement of LLM-aided Assertion Generation through Cross-Layer Signal Bridging
Hardware Architecture
Helps computers check if designs work right.
AssertCoder: LLM-Based Assertion Generation via Multimodal Specification Extraction
Software Engineering
Writes computer code to check hardware designs.
DeepAssert: An LLM-Aided Verification Framework with Fine-Grained Assertion Generation for Modules with Extracted Module Specifications
Hardware Architecture
Finds hidden bugs in computer chips.