MEIC:利用 LLM 重新思考 RTL 调试自动化
MEIC: Re-thinking RTL Debug Automation using LLMs
AI总结:
针对 LLM 在 RTL 调试中数据不足的问题,本文提出迭代式 MEIC 框架,并构建含 178 个错误的开源数据集,语法和功能错误修复率分别达 93% 和 78%,最高提速 48 倍。
摘要:
大型语言模型(LLM)在代码调试(例如 C 和 Python)中的部署十分广泛,这得益于其理解和解释复杂概念的能力。然而,在半导体行业中,利用 LLM 调试寄存器传输级(RTL)代码仍然不够充分,主要原因在于训练集中 RTL 专用数据的代表性不足。本文提出了一个新颖框架 Make Each Iteration Count(MEIC),它不同于传统严重依赖提示工程、模型调优和模型训练的基于 LLM 的一次性调试方法。MEIC 在迭代过程中使用 LLM,以克服 LLM 在 RTL 代码调试方面的局限;该方法适用于识别和纠正语法错误与功能错误,同时有效管理 LLM 运行中固有的不确定性。为评估我们的框架,我们提供了一个包含 178 个常见 RTL 编程错误的开源数据集。实验结果表明,所提出的调试框架对语法错误达到 93% 的修复率,对功能错误达到 78% 的修复率;与经验丰富的工程师相比,调试过程最高可加速 48 倍。数据集和代码仓库:https://anonymous.4open.science/r/Verilog-Auto-Debug-6E7F/。
英文摘要:
The deployment of Large Language Models (LLMs) for code debugging (e.g., C and Python) is widespread, benefiting from their ability to understand and interpret intricate concepts. However, in the semiconductor industry, utilising LLMs to debug Register Transfer Level (RTL) code is still insufficient, largely due to the underrepresentation of RTL-specific data in training sets. This work introduces a novel framework, Make Each Iteration Count (MEIC), which contrasts with traditional one-shot LLM-based debugging methods that heavily rely on prompt engineering, model tuning, and model training. MEIC utilises LLMs in an iterative process to overcome the limitation of LLMs in RTL code debugging, which is suitable for identifying and correcting both syntax and function errors, while effectively managing the uncertainties inherent in LLM operations. To evaluate our framework, we provide an open-source dataset comprising 178 common RTL programming errors. The experimental results demonstrate that the proposed debugging framework achieves fix rate of 93% for syntax errors and 78% for function errors, with up to 48x speedup in debugging processes when compared with experienced engineers. The Repo. of dataset and code: https://anonymous.4open.science/r/Verilog-Auto-Debug-6E7F/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。