ARSP: Automated Repair of Verilog Designs via Semantic Partitioning

📅 2025-08-22
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
In industrial-scale Verilog module debugging, large-context LLMs suffer from diluted fault signals and low localization/repair accuracy. To address this, we propose a semantic-slicing–driven two-stage automated repair method. Our core contributions are threefold: (1) the first semantic-guided module slicing mechanism, decomposing Verilog code into functionally cohesive fragments; (2) a fragment-level synthetic data framework enabling LLMs to precisely identify and repair defects within localized contexts; and (3) a non-intrusive edit-merging strategy preserving unrelated logic integrity. Experimental evaluation on a hardware verification benchmark shows our method achieves 77.92% pass@1 and 83.88% pass@5—significantly outperforming state-of-the-art baselines including Claude-3.7, Strider, and MEIC. These results validate both the effectiveness and generalizability of semantic slicing for hardware debugging tasks.

Technology Category

Application Category

📝 Abstract
Debugging functional Verilog bugs consumes a significant portion of front-end design time. While Large Language Models (LLMs) have demonstrated great potential in mitigating this effort, existing LLM-based automated debugging methods underperform on industrial-scale modules. A major reason for this is bug signal dilution in long contexts, where a few bug-relevant tokens are overwhelmed by hundreds of unrelated lines, diffusing the model's attention. To address this issue, we introduce ARSP, a two-stage system that mitigates dilution via semantics-guided fragmentation. A Partition LLM splits a module into semantically tight fragments; a Repair LLM patches each fragment; edits are merged without altering unrelated logic. A synthetic data framework generates fragment-level training pairs spanning bug types, design styles, and scales to supervise both models. Experiments show that ARSP achieves 77.92% pass@1 and 83.88% pass@5, outperforming mainstream commercial LLMs including Claude-3.7 and SOTA automated Verilog debugging tools Strider and MEIC. Also, semantic partitioning improves pass@1 by 11.6% and pass@5 by 10.2% over whole-module debugging, validating the effectiveness of fragment-level scope reduction in LLM-based Verilog debugging.
Problem

Research questions and friction points this paper is trying to address.

Automated debugging of functional Verilog design bugs
Addressing bug signal dilution in long industrial modules
Improving LLM-based repair via semantic fragmentation approach
Innovation

Methods, ideas, or system contributions that make the work stand out.

Semantic partitioning for Verilog repair
Two-stage LLM system with fragmentation
Fragment-level training data generation
🔎 Similar Papers
No similar papers found.
Bingkun Yao
Bingkun Yao
City University of Hong Kong
EDA
N
Ning Wang
City University of Hong Kong, Hong Kong, China
X
Xiangfeng Liu
City University of Hong Kong, Hong Kong, China
Y
Yuxin Du
City University of Hong Kong, Hong Kong, China
Y
Yuchen Hu
Southeast University, Nanjing, China
Hong Gao
Hong Gao
Zhejiang Normal University
DatabaseInternet of Things
Z
Zhe Jiang
Southeast University, Nanjing, China
Nan Guan
Nan Guan
City University of Hong Kong
Cyber-Physical systemsEmbedded systemsReal-time systems