LintLLM: An Open-Source Verilog Linting Framework Based on Large Language Models
Preprint
Abstract
Code Linting tools are vital for detecting potential defects in Verilog code. However, the limitations of traditional Linting tools are evident in frequent false positives and redundant defect reports. Recent advancements in large language models (LLM) have introduced new possibilities in this area. In this paper, we propose LintLLM, an open-source Linting framework that utilizes LLMs to detect defects in Verilog code via Prompt of Logic-Tree and Defect Tracker. Furthermore, we create an open-source benchmark using the mutation-based defect injection technique to evaluate LLM's ability in detecting Verilog defects. Experimental results show that o1-mini improves the correct rate by 18.89\% and reduces the false-positive rate by 15.56\% compared with the best-performing EDA tool. Simultaneously, LintLLM operates at less than one-tenth of the cost of commercial EDA tools. This study demonstrates the potential of LLM as an efficient and cost-effective Linting tool for hardware design. The benchmark and experimental results are open-source at URL: https://github.com/fangzhigang32/Static-Verilog-AnalysisKeywords
All Related Versions
This publication has 10 references indexed in Scilit:
- LLM4DV: Using Large Language Models for Hardware Test Stimuli Generation2025
- VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing ToolProceedings of the AAAI Conference on Artificial Intelligence, 2025
- AutoVCoder: A Systematic Framework for Automated Verilog Code Generation using LLMs2024
- Large circuit models: opportunities and challengesScience China Information Sciences, 2024
- MG-Verilog: Multi-grained Dataset Towards Enhanced LLM-assisted Verilog Generation2024
- RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solution2024
- Evaluating LLMs for Hardware Design and Test2024
- VeriGen: A Large Language Model for Verilog Code GenerationACM Transactions on Design Automation of Electronic Systems, 2024
- ChatEDA: A Large Language Model Powered Autonomous Agent for EDAIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2024
- How developers engage with static analysis tools in different contextsEmpirical Software Engineering, 2019