arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.11671cs.ARcs.AIcs.CEcs.LGcs.SE
收藏

HDLdebugger:利用大型语言模型简化HDL调试

HDLdebugger: Streamlining HDL debugging with Large Language Models

CUHK(香港中文大学);Huawei(华为);HKUST(香港科技大学);HKSUT (GZ)(香港理工大学(广州));HiSilicon(海思半导体)

Xufeng Yao, Haoyang Li, Tsz Ho Chan, Wenyi Xiao, Mingxuan Yuan, Yu Huang, Lei Chen, Bei Yu

AI总结:

本文提出HDLdebugger框架,结合逆向工程数据生成、检索增强生成与LLM微调,自动化简化芯片设计中的HDL调试,并在华为数据集上超越13个前沿LLM基线。

摘要:

在芯片设计领域,硬件描述语言(HDL)发挥着关键作用。然而,由于HDL语法复杂且在线资源有限,调试HDL代码仍然是一项困难且耗时的任务,即使对经验丰富的工程师而言也是如此。因此,迫切需要开发自动化的HDL代码调试模型,以减轻硬件工程师的负担。尽管大型语言模型(LLM)在生成、完成和调试软件代码方面表现出强大的能力,但它们在HDL调试这一专业领域的应用一直有限,且迄今为止尚未取得令人满意的结果。在本文中,我们提出了一种基于LLM的HDL调试框架,即HDLdebugger,该框架包括通过逆向工程方法生成HDL调试数据、用于检索增强生成的搜索引擎以及检索增强的LLM微调方法。通过整合这些组件,HDLdebugger能够自动化并简化芯片设计中的HDL调试。我们在源自华为的HDL代码数据集上进行的综合实验表明,HDLdebugger优于13个前沿的LLM基线,在HDL代码调试方面展现出卓越的有效性。

英文摘要:

In the domain of chip design, Hardware Description Languages (HDLs) play a pivotal role. However, due to the complex syntax of HDLs and the limited availability of online resources, debugging HDL codes remains a difficult and time-intensive task, even for seasoned engineers. Consequently, there is a pressing need to develop automated HDL code debugging models, which can alleviate the burden on hardware engineers. Despite the strong capabilities of Large Language Models (LLMs) in generating, completing, and debugging software code, their utilization in the specialized field of HDL debugging has been limited and, to date, has not yielded satisfactory results. In this paper, we propose an LLM-assisted HDL debugging framework, namely HDLdebugger, which consists of HDL debugging data generation via a reverse engineering approach, a search engine for retrieval-augmented generation, and a retrieval-augmented LLM fine-tuning approach. Through the integration of these components, HDLdebugger can automate and streamline HDL debugging for chip design. Our comprehensive experiments, conducted on an HDL code dataset sourced from Huawei, reveal that HDLdebugger outperforms 13 cutting-edge LLM baselines, displaying exceptional effectiveness in HDL code debugging.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑