论文

REFORGE:用结构化上下文与验证反馈做 LLM 辅助 RTL 修复

REFORGE: LLM-Assisted RTL Bug Repair with Structured Context and Verification Feedback

精选理由

写 Verilog 的朋友可以看看这个:REFORGE 不只让 LLM 改 RTL,每次修复都要过仿真、形式化验证、安全扫描和综合 PPA 六道检查。CirFix 上通过率从 32/63 拉到 51/63,比只看 testbench 的方法靠谱得多。

REFORGE 是首个在多轮迭代中累积结构化修复证据的 LLM 辅助 RTL 修复框架,由学术论文团队提出。它针对的问题是:现有方法只报告单一修复率,而编译或 testbench 通过并不能证明缺陷移除、行为等价、安全性与可综合性。

正文

技术流程上,REFORGE 先对有缺陷的 RTL 做剖析,识别结构与安全相关特征,定位失败行为,再用验证引导的诊断生成完整修复变体。每个变体经过语法检查、仿真、形式化分析、off-trigger 保持、安全重扫和基于综合的 PPA 分析六道关卡。

在 288 次运行、三个 LLM 后端、三套基准的评估中,CirFix 基准上通过完整检查的修复从 32/63 提升到 51/63,所有配置都能修复 Hack@DAC OpenTitan 缺陷。证据记录还显示仅用 testbench 判定的修复数量是全套检查的 3.9 倍,说明 LLM 生成的 RTL 修复需要多阶段验证证据而非单一通过/失败判定。

原文 · arXiv cs.AI

REFORGE: LLM-Assisted RTL Bug Repair with Structured Context and Verification Feedback

Large language models (LLMs) can write and repair RTL, but successful compilation or testbench execution does not establish defect removal, behavioral preservation, security, or implementation feasibility. Existing LLM-based RTL repair methods often report a single repair rate without retaining separate evidence for these properties, limiting reproducible comparison and integration into hardware design flows. We present REFORGE, which, to our knowledge, is the first LLM-assisted RTL repair framework that maintains and accumulates structured repair evidence across iterations, allowing it to generate fixes that satisfy multiple objectives simultaneously, including functionality, behavioral equivalence, security, and cost efficiency. REFORGE profiles buggy RTL, identifies structural and security-relevant features, localizes failing behavior, and uses verification-guided diagnosis to generate complete RTL repair variants. Each variant undergoes syntax checking, simulation, formal analysis, off-trigger preservation, security re-scan, and synthesis-based power, performance, and area analysis. We implement REFORGE as a backend-independent repair-and-verification flow and evaluate it in 288 runs across three LLM backends and three benchmark suites. On CirFix, the proposed context and diagnosis increase runs delivering a checked repair from 32/63 to 51/63, while every configuration repairs the Hack@DAC OpenTitan defect. Evidence records also show that a testbench-only criterion reports 3.9 times more repairs than the full set of applicable checks, security-clean outputs may lack functional verification, and different RTL repairs can implement equivalent hardware. These results show that LLM-generated RTL repairs require explicit multi-stage verification evidence rather than a single pass/fail outcome.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:REFORGE、RTL、LLM、芯片设计,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Tanvir Hossain, Sudipta Paria, Aidan Gleason Myers, Swarup Bhunia, Tamzidul Hoque),经 AITOP 多维评分管线结构化提炼。