Debug Like a Human: Scaling LLM-based Fault Localization to Processor Design via Block-Level Instruction-Oriented Slicing

📅 2026-05-17
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the significant challenge of inefficient hardware bug localization in large-scale processor designs. The authors propose BluesFL, a novel framework featuring the first block-level, instruction-guided slicing algorithm—Blues—that integrates dataflow analysis, code chunking, and instruction-level program slicing to direct large language models toward critical contextual information while emulating human-like debugging reasoning. Evaluated on a 19K-line SystemVerilog implementation of a RISC-V core, the approach correctly localizes 24 bugs at Top-1 accuracy, achieving a 242.9% improvement over the current state-of-the-art method, with a per-bug localization cost of merely $0.257. This represents a substantial breakthrough in overcoming fault localization bottlenecks in complex processor design.
📝 Abstract
Fault localization in modern processor design code is a critical yet time-consuming step during processor verification. While recent advances in LLM-based techniques for module-level hardware design have shown promising results, automatically localizing bugs in large-scale, project-level processor designs remains challenging. In this paper, we present BluesFL, a novel block-level LLM-based fault localization framework for processor designs. Inspired by the way engineers debug processors, we first propose a dataflow-based code blockization approach to guide LLMs to focus on critical local code context. We further propose a Block-Level Instruction-Oriented Slicing (Blues) algorithm that enables LLMs to mimic human reasoning by analyzing instruction execution paths and processor states. We evaluate BluesFL on a real-world RISC-V processor core comprising 19K lines of SystemVerilog code. Experimental results demonstrate that BluesFL correctly localizes 24 bugs at Top-1, achieving 242.9% improvement over the existing state-of-the-art (7 bugs). Cost analysis shows that BluesFL requires an average of only $0.257 to localize a single bug.
Problem

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

fault localization
processor design
LLM-based debugging
large-scale hardware verification
bug localization
Innovation

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

LLM-based fault localization
block-level slicing
instruction-oriented analysis
processor verification
dataflow-based code blockization
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
Z
Zizhen Liu
National University of Defense Technology
X
Xiaoguang Mao
National University of Defense Technology
D
Deheng Yang
Academy of Military Sciences
J
Jiayu He
National University of Defense Technology
Yihao Qin
Yihao Qin
National University of Defense Technology
Software Engineering
Guangda Zhang
Guangda Zhang
School of Computer Science, University of Manchester
Asynchronous Circuit DesignNetworks-on-chipFault-tolerance
Yan Lei
Yan Lei
Chongqing University
Software EngineeringFault LocalizationProgram Repair
Jianjun Xu
Jianjun Xu
University of Science and Technology of China
Computer VisionMulti-modal Analysis
J
Jiang Wu
Academy of Military Sciences