LintLLM:一种基于大型语言模型的开源 Verilog Linting 框架
LintLLM: An Open-Source Verilog Linting Framework Based on Large Language Models
AI总结:
提出开源框架 LintLLM,利用 LLM、Logic-Tree 提示词和 Defect Tracker 检测 Verilog 缺陷,并构建变异缺陷注入基准;实验显示其在正确率、误报率和成本上均优于 EDA 工具。
摘要:
代码 Linting 工具对于检测 Verilog 代码中的潜在缺陷至关重要。然而,传统 Linting 工具的局限性十分明显,表现为频繁的误报和冗余缺陷报告。大型语言模型(LLM)的最新进展为这一领域带来了新的可能性。本文提出 LintLLM,这是一个开源 Linting 框架,利用 LLM 通过 Logic-Tree 提示词和 Defect Tracker 检测 Verilog 代码中的缺陷。此外,我们采用基于变异的缺陷注入技术创建了一个开源基准,用于评估 LLM 检测 Verilog 缺陷的能力。实验结果表明,与表现最好的 EDA 工具相比,o1-mini 将正确率提高了 18.89%,并将误报率降低了 15.56%。同时,LintLLM 的运行成本不到商业 EDA 工具的十分之一。本研究展示了 LLM 作为硬件设计中高效且具有成本效益的 Linting 工具的潜力。该基准和实验结果已在 URL:https://github.com/fangzhigang32/Static-Verilog-Analysis 开源。
英文摘要:
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-Analysis
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。