|国家预印本平台
首页|HLSDebugger: Identification and Correction of Logic Bugs in HLS Code with LLM Solutions

HLSDebugger: Identification and Correction of Logic Bugs in HLS Code with LLM Solutions

HLSDebugger: Identification and Correction of Logic Bugs in HLS Code with LLM Solutions

来源:Arxiv_logoArxiv
英文摘要

High-level synthesis (HLS) accelerates hardware design by enabling the automatic translation of high-level descriptions into efficient hardware implementations. However, debugging HLS code is a challenging and labor-intensive task, especially for novice circuit designers or software engineers without sufficient hardware domain knowledge. The recent emergence of Large Language Models (LLMs) is promising in automating the HLS debugging process. Despite the great potential, three key challenges persist when applying LLMs to HLS logic debugging: 1) High-quality circuit data for training LLMs is scarce, posing a significant challenge. 2) Debugging logic bugs in hardware is inherently more complex than identifying software bugs with existing golden test cases. 3) The absence of reliable test cases requires multi-tasking solutions, performing both bug identification and correction. complicates the multi-tasking required for effective HLS debugging. In this work, we propose a customized solution named HLSDebugger to address the challenges. HLSDebugger first generates and releases a large labeled dataset with 300K data samples, targeting HLS logic bugs. The HLSDebugger model adopts an encoder-decoder structure, performing bug location identification, bug type prediction, and bug correction with the same model. HLSDebugger significantly outperforms advanced LLMs like GPT-4 in bug identification and by more than 3x in bug correction. It makes a substantial advancement in the exploration of automated debugging of HLS code.

Jing Wang、Shang Liu、Yao Lu、Zhiyao Xie

微电子学、集成电路电子技术应用计算技术、计算机技术

Jing Wang,Shang Liu,Yao Lu,Zhiyao Xie.HLSDebugger: Identification and Correction of Logic Bugs in HLS Code with LLM Solutions[EB/OL].(2025-07-29)[2025-08-19].https://arxiv.org/abs/2507.21485.点此复制

评论