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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Zizhen, Mao, Xiaoguang, Yang, Deheng, He, Jiayu, Qin, Yihao, Zhang, Guangda, Lei, Yan, Xu, Jianjun, Wu, Jiang
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910228667170816
author Liu, Zizhen
Mao, Xiaoguang
Yang, Deheng
He, Jiayu
Qin, Yihao
Zhang, Guangda
Lei, Yan
Xu, Jianjun
Wu, Jiang
author_facet Liu, Zizhen
Mao, Xiaoguang
Yang, Deheng
He, Jiayu
Qin, Yihao
Zhang, Guangda
Lei, Yan
Xu, Jianjun
Wu, Jiang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_17290
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Debug Like a Human: Scaling LLM-based Fault Localization to Processor Design via Block-Level Instruction-Oriented Slicing
Liu, Zizhen
Mao, Xiaoguang
Yang, Deheng
He, Jiayu
Qin, Yihao
Zhang, Guangda
Lei, Yan
Xu, Jianjun
Wu, Jiang
Software Engineering
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.
title Debug Like a Human: Scaling LLM-based Fault Localization to Processor Design via Block-Level Instruction-Oriented Slicing
topic Software Engineering
url https://arxiv.org/abs/2605.17290