REFORGE: Repairing RTL Defects with a Structured Evidence Chain

REFORGE framework enables trustworthy multi-objective evaluation of LLM-assisted RTL repair via accumulated structured multi-stage verification evidence.
Existing LLM-assisted RTL repair methods usually report a single repair rate, masking complexity in functionality, behavioral equivalence, security, and cost efficiency. The paper notes that testbench-only reported repairs are 3.9 times the full check set, and many lack formal, security, or synthesis validation. REFORGE accumulates structured evidence during iterative repair, requiring each variant to pass syntax checking, simulation, formal analysis, non-trigger preservation, security rescanning, and PPA synthesis. 288 runs across three LLM backends and three benchmarks show structured context and diagnosis significantly increase effective repairs and highlight the need for behavioral equivalence checking.
Large language models (LLMs) show promise in writing and fixing RTL code, but a fix that passes compilation or a testbench does not mean the defect has been removed, behavior has been preserved, security is intact, or implementation is feasible. Existing LLM-based RTL repair methods often report only a single repair rate and fail to maintain separate evidence for these different properties, which limits reproducible comparison and integration into hardware design flows. A study on REFORGE proposes a new approach: having the LLM maintain and accumulate structured repair evidence during the repair process, thereby generating multi-objective repairs that simultaneously satisfy functionality, behavioral equivalence, security, and cost efficiency.

A single repair rate masks the complexity of hardware defect repair
In hardware design, repairing RTL defects is far more than getting code to compile. A seemingly successful fix may introduce behavioral deviations, leave security holes, or impose unacceptable costs in power, performance, or area (PPA). However, most current LLM-assisted RTL repair work reduces "repair success" to a binary result, usually judged only by whether the testbench passes.
The risks of this simplification are systemic. The authors point out that the number of repairs reported when relying only on testbench criteria is 3.9 times higher than when the full check set is applied. This means many cases labeled as "fixed" may in fact not pass formal analysis, security rescanning, or synthesis-level validation. More specifically, repairs that pass only the testbench may lack sufficient evidence of functional verification, while security-safe outputs may not have undergone any functional verification at all. Hardware design flows need traceable, comparable multi-dimensional evidence, not a single blanket pass rate.
Formal analysis in hardware verification refers to using mathematical methods to prove or disprove that a design satisfies specific properties (such as absence of deadlocks, state machine reachability, equivalence, etc.), complementing simulation based on test vectors. Simulation can only cover a limited set of scenarios, whereas formal analysis can exhaustively explore all possible input sequences (for finite-state systems), thereby uncovering corner cases missed by simulation. In RTL repair scenarios, formal analysis is commonly used to verify that the repaired module is functionally equivalent to the original module, or to confirm that the fix has not broken security properties. Because formal tools (such as model checkers) may face state explosion problems, property reduction and abstraction techniques are usually needed in combination; even so, the strength of the evidence they provide is still far higher than a single passing testbench.
PPA (power, performance, area) are core cost metrics in integrated circuit design. Power includes dynamic power (caused by signal toggling) and static power (leakage current); performance is often measured by clock frequency or critical path delay; and area directly affects chip cost and yield. In RTL repair, a functionally correct fix may introduce extra logic levels or redundant registers, leading to timing violations or area inflation. Therefore, synthesis-based PPA analysis is a key step in judging whether a repair is "implementation-feasible." By logic-synthesizing the repaired RTL and extracting PPA metrics, designers can quantify the hardware cost of the fix and prevent repairs that are functionally correct but physically unacceptable from entering the backend flow.
How REFORGE builds a structured repair evidence chain
The core design idea of REFORGE is to accumulate structured evidence during the iterative repair process. Its flow begins by profiling the defective RTL, identifying structure- and security-related features, locating the failure behavior, and using verification-guided diagnosis to generate complete RTL repair variants.
The key difference is that each repair variant undergoes a set of multi-stage validation checks: syntax checking, simulation, formal analysis, non-trigger condition preservation checking, security rescanning, and synthesis-based power, performance, and area analysis. The results of these checks are retained as structured records rather than compressed into a single pass/fail signal.
According to the paper, REFORGE is the first LLM-assisted RTL repair framework that maintains and accumulates structured repair evidence across iterations, enabling it to generate repairs that satisfy multiple objectives simultaneously. The framework is implemented as a backend-agnostic repair and validation flow, meaning it can adapt to different LLM backends and verification toolchains.
Non-trigger condition preservation is a behavioral equivalence verification technique for defect repair. Its core idea is that a repair should change behavior only under the defect-triggering conditions and should not affect circuit behavior under other normal (non-trigger) conditions. For example, if a defect causes incorrect output only under a specific input combination, then after repair, for all other input combinations, the output must be exactly identical to the original design. This check is usually implemented with formal equivalence verification tools, comparing the outputs of the pre- and post-repair designs under non-trigger conditions to ensure the fix does not introduce unexpected functional shifts. This check compensates for the shortcoming of verifying only that "the defect disappears," guaranteeing the locality and behavior preservation of the repair.
Hack@DAC is a well-known competition and benchmark in the hardware security field, focused on implanting or finding security vulnerabilities in open-source processors (such as RISC-V cores). Its OpenTitan defect set involves real security vulnerabilities in the open-source security chip OpenTitan, covering privilege escalation, information leakage, side channels, and other types. Using such benchmarks to evaluate RTL repair methods can test whether a repair truly eliminates the security weakness rather than merely restoring functionality. Because security vulnerabilities are often subtle and may not affect regular functional tests, security rescanning (e.g., using commercial or open-source security static analysis tools) becomes a necessary validation stage to ensure the repair does not introduce new security risks.
Empirical results across backends and benchmarks
The research team evaluated 288 runs across three LLM backends and three benchmark suites. On the CirFix benchmark, the proposed structured context and diagnosis increased the number of runs producing checked repairs from 32 out of 63 to 51 out of 63. For the Hack@DAC OpenTitan defects, all configurations were able to complete repairs.
These results convey two messages. On the one hand, structured context and verification feedback can indeed significantly improve repair effectiveness; on the other hand, the performance differences among different LLM backends under the same framework also show that accumulating verification evidence helps bridge the gap between model capabilities. The paper also observes that different RTL repair solutions may implement functionally equivalent hardware, indicating that judging repair quality by code differences alone is insufficient and must be combined with behavioral equivalence checking.
Implications for hardware design flows
The "evidence-first" approach advocated by REFORGE has practical significance for deploying LLMs in hardware design. Hardware design flows naturally have high requirements for traceability and reproducibility. Whether a repair can be adopted depends not only on whether it makes simulation pass, but also on whether it has undergone formal verification, whether it preserves behavior under non-trigger conditions, whether it passes security review, and whether the post-synthesis PPA metrics are acceptable.
Retaining multi-stage validation evidence in a structured way enables well-founded comparison among different repair solutions and provides an auditable record for review and integration in subsequent design flow stages. The paper's conclusion clearly points to: LLM-generated RTL repairs require explicit multi-stage verification evidence, not a single pass/fail result. This view is an important directional signal for advancing LLMs from "code generators" to "trusted design assistants."
One-line Summary
REFORGE enables trustworthy multi-objective evaluation of LLM-assisted RTL repair by accumulating structured multi-stage verification evidence.
Paragraph Summary
Existing LLM-assisted RTL repair methods usually report only a single repair rate, masking the complexity of hardware defect repair in terms of functionality, behavioral equivalence, security, and cost efficiency. The paper notes that the number of repairs reported when relying only on testbench criteria is 3.9 times that of the full check set, and many repairs lack formal, security, or synthesis-level validation. To address this, the researchers propose the REFORGE framework, which accumulates structured evidence during iterative repair; each repair variant must pass multi-stage validation including syntax checking, simulation, formal analysis, non-trigger preservation checking, security rescanning, and PPA synthesis. 288 runs across three LLM backends and three benchmarks show that structured context and diagnosis significantly increase the number of effective repairs and emphasize the necessity of behavioral equivalence checking.
Related articles

ChatGPT Plus Top-Up in China: Third-Party Website Recharge That Supports WeChat Pay and Alipay, No Overseas Card Needed
A Bilibili creator tests ChatGPT Plus top-up methods in China: comparing third-party website recharge, direct credit card, and mobile in-app purchase, with a full walkthrough of password-free WeChat/Alipay recharge and an analysis of Session credential and payment risk-control risks.

6GB Delivers Opus-Level Performance: Bonsai 2.5 27B Hands-On Test
Prism ML releases Ternary Bonsai 2.5 27B: ternary quantization brings it to just 5.9GB, runnable on a single consumer GPU while retaining 262k context and vision. Hands-on agentic benchmarks approach full-precision Qwen 3.8 27B, exceeding 150 tokens/s on a 4090, with impressive frontend and dashboard results, though game development and long tasks remain weak spots.

System Exchange Spawns an Offbeat Journey to the West: Why This Comedy Series Works
A Bilibili comedy short series reimagines Journey to the West with a system-exchange premise, as the protagonist challenges Sun Wukong, Erlang Shen, and other classics.