Debug Like a Human: Scaling LLM-based Fault Localization to Processor Design via Block-Level Instruction-Oriented Slicing
Zizhen Liu, Xiaoguang Mao ∗, Deheng Yang ∗, Jiayu He, Yihao Qin, Guangda Zhang, Yan Lei, Jianjun Xu, Jiang Wu · 2026
Read Debug Like a Human: Scaling LLM-based Fault Localization to Processor Design via Block-Level Instruction-Oriented Slicing by Zizhen Liu, Xiaoguang Mao ∗, Deheng Yang ∗, Jiayu He, Yihao Qin, Guangda Zhang, Yan Lei, Jianjun Xu, Jiang Wu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-17290.txt.
Introduction
Liu and colleagues present BluesFL, a fault-localization framework for processor designs that mimics how engineers debug. It splits code into dataflow blocks to focus the language model, then traces instruction paths and processor states to narrow the fault. On a real 19,000-line RISC-V core it pins down 24 bugs at first guess, far past the prior best of 7, at an average cost of about 26 cents per bug.
Catalog record
| CREATOR | Zizhen Liu, Xiaoguang Mao ∗, Deheng Yang ∗, Jiayu He, Yihao Qin, Guangda Zhang, Yan Lei, Jianjun Xu, Jiang Wu |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 32155 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.17290
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Debug Like a Human: Scaling LLM-based Fault Localization to Processor Design via Block-Level Instruction-Oriented Slicing Conference: 63rd ACM/IEEE Design Automation Conference; July 26–29, 2026; Long Beach, CA, USA 63rd ACM/IEEE Design Automation Conference (DAC ’26), July 26–29, 2026, Long Beach, CA, USA DOI: 10.1145/3770743.3804145 ISBN: 979-8-4007-2254-7/2026/07 Thanks: ∗ Co-corresponding authors: Xiaoguang Mao and Deheng Yang CCS: Hardware Functional verification CCS: Hardware Methodologies for EDA CCS: Computing methodologies Artificial intelligence Zizhen Liu, Xiaoguang Mao ∗, Deheng Yang ∗, Jiayu He, Yihao Qin, Guangda Zhang, Yan Lei, Jianjun Xu, Jiang Wu 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 B lock- l evel Instr u ction-Ori e nted S licing ( 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. † † cc-license: by 1. Introduction Modern processors contain millions of lines of hardware description language (HDL) code to enhance performance and extend functionality. However, this increasing complexity also makes them highly susceptible to design bugs, which can result in severe functional errors ( 2 ) , degraded performance ( 3 ) , or even critical security vulnerabilities ( 13 ; 12 ) . Localizing bugs in processor source code is essential for developers to fix them. However, this debugging process remains one of the most time-consuming stages of processor development. According to recent surveys, verification-related tasks account for approximately 60% of the total hardware development effort ( 6 ) . Therefore, automatically locating bugs in HDL source code (e.g., Verilog) for large-scale processor designs is crucial for achieving agile development, as inefficient debugging directly impacts design productivity and undermines market competitiveness. Various techniques have been proposed to help verification engineers automatically detect processor bugs ( 7 ; 16 ; 8 ; 28 ; 22 ) . However, most methods primarily focus on detecting, leaving the task of locating them within the source code to developers ( 15 ) . Once a bug is detected, engineers typically examine suspicious signals, and manually review the Verilog code to identify the buggy lines. This manual debugging process is both time-consuming and inefficient. To alleviate this burden, numerous fault localization (FL) techniques for hardware designs have been proposed. More recently, large language model (LLM)-based methods ( 27 ) directly predict buggy lines from Verilog modules, demonstrating significant promise. While existing techniques have proven effective at general or module-level hardware designs, FL for real-world, project-level processor design code is still at an early stage currently and has the following limitations: Limitation 1: To the best of our knowledge, no specific FL technique for processor functional bugs has been studied yet. Processors, as instruction-driven hardware, are inherently more complex and distinctive than general hardware modules (e.g., memory controller, ALU). Consequently, FL techniques designed for general hardware may be less effective for processors, as assumptions valid for small-scale hardware may not hold in the processor domain. For example, slicing-based approaches ( 1 ; 26 ) perform dataflow analysis to produce a set of suspicious lines. While this set is small enough for most hardware modules to review manually, it becomes considerably larger in large-scale processor designs, making manual review impractical. Hence, dedicated techniques are required to achieve effective bug localization in processor designs. Limitation 2: Existing hardware FL techniques lack effective utilization of instruction execution coverage. Modern processors use pipelining to execute multiple instructions simultaneously, causing instruction execution to span both spatial and temporal dimensions. The execution of an instruction from the fetch to the commit stage occurs across multiple modules in space and multiple cycles in time. Existing spectrum-based hardware FL techniques ( 24 ) typically rely on coarse-grained, range-based coverage collection over simulation intervals. As a result, coverage data for an instruction may be polluted by other in-flight instructions, reducing localization accuracy. Therefore, accurately capturing the execution path of each instruction is crucial. Limitation 3: Existing hardware FL techniques rarely leverage concrete signal values to aid localization. Signal values are essential for human developers to understand hardware behavior ( 15 ) . However, current hardware FL techniques seldom utilize this information because doing so requires advanced semantic comprehension. Recent advances in LLMs make it feasible to interpret signal values for reasoning about instruction behavior. Nevertheless, prompting LLMs with processor waveforms remains challenging. Processor simulations generate thousands of signals across thousands of cycles, producing extremely large waveforms. Identifying which signals at which cycles should be provided to LLMs to aid localization remains a nontrivial problem. Limitation 4: LLMs struggle to localize bugs in excessive code context. Modern processor projects typically consist of numerous module files whose combined size exceeds the context window limits of LLMs. When prompted with overly large code contexts, LLMs often lose focus and overlook critical information ( 14 ) . Unlike module-level hardware designs, where the entire design can be inspected by the model, processor-scale code introduces substantial noise that hinders the model’s ability to identify subtle bugs. Therefore, providing LLMs with critical and compact code context is essential for enabling accurate fault localization in large-scale processor designs. To address the above limitations, we derive two key insights from developer debug experience: (1) developers primarily focus on local code regions with dataflow relationships, and (2) they trace instruction execution paths for understanding processor behavior. Motivated by these observations, we first propose a dataflow-based code blockization method that preserves local semantics while maintaining compact code size ( Limitation 4 ). Building upon this foundation, we introduce BluesFL , a LLM-based block-level fault localization framework for large-scale processor designs ( Limitation 1 ). BluesFL mimics human debugging behavior by reviewing instruction execution paths and assigning suspiciousness scores to buggy code blocks. Specifically, a novel Block-Level Instruction-Oriented Slicing ( Blues ) algorithm is proposed to guide LLMs to focus on instruction-executed blocks ( Limitation 2 ) and enhance their understanding of instruction behavior by incorporating the values of signals through time-annotated blocks ( Limitation 3 ). In summary, this paper makes the following contributions: • We propose BluesFL , a block-level LLM-based fault localization framework for processor designs. To the best of our knowledge, this is the first approach that applies LLM-based fault localization to real-world processors. • We introduce a dataflow-based code blockization method that preserves local semantics while producing compact blocks for efficient LLM analysis. • We propose a Block-Level Instruction-Oriented Slicing algorithm that helps LLMs understand instruction dynamic behavior. • We evaluate BluesFL on a 19KLoC open-source RISC-V core, where it correctly localizes