arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.17290cs.SE
收藏

像人类一样调试:通过块级指令导向切片扩展基于LLM的故障定位到处理器设计

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

National University of Defense Technology(国防科技大学);Academy of Military Sciences(军事科学院);Chongqing University(重庆大学)

Zizhen Liu, Xiaoguang Mao, Deheng Yang, Jiayu He, Yihao Qin, Guangda Zhang, Yan Lei, Jianjun Xu, Jiang Wu

AI总结:

本文提出BluesFL框架,通过块级指令导向切片算法,利用LLM模拟人类调试过程,有效定位处理器设计中的故障,相比现有方法提升了242.9%的定位准确率。

摘要:

在现代处理器设计代码中,故障定位是处理器验证过程中关键但耗时的步骤。尽管近期基于LLM的模块级硬件设计技术取得了显著进展,但自动定位大规模项目级处理器设计中的故障仍具挑战性。本文提出BluesFL,一种新的基于块级的LLM故障定位框架。受工程师调试处理器的方式启发,我们首先提出一种基于数据流的代码块化方法,引导LLM关注关键的局部代码上下文。我们进一步提出块级指令导向切片(Blues)算法,使LLM能够通过分析指令执行路径和处理器状态模拟人类推理。我们在包含19,000行SystemVerilog代码的真实世界RISC-V处理器核心上评估了BluesFL。实验结果表明,BluesFL在Top-1位置正确定位了24个故障,相比现有最先进方法(7个故障)提升了242.9%。成本分析显示,BluesFL定位单个故障的平均成本仅为0.257美元。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑