GRODE-RTL: Source-Mapped Dependency Views for LLM-Based RTL Repair
Organizations: Department of Computer Science and Engineering, The Chinese University of Hong Kong · Institute of Computing Technology, CAS
Abstract
Large Language Models show great potential for automated Register-Transfer Level repair, yet they struggle with non-local faults where root causes and failing outputs reside far apart in source code. Treating RTL as a flat token sequence obscures hardware dataflows, whereas exposing complete synthesized graphs overwhelms the model with fine-grained metadata. To resolve this representation dilemma, we propose GRODE-RTL, an anchor-centric representation that extracts the single-clock-stage fan-in cone of a suspect register from the netlist, maps netlist nodes back to editable source lines, and organizes them into a compact hop-partitioned dependency view. By prioritizing direct drivers and folding distant hops, GRODE-RTL guides standard tool-using agents without exposing ground-truth hints or oracle feedback. We evaluate GRODE-RTL across 30 formally validated non-local faults using three LLMs (DeepSeek-V4-Flash, GLM-5.2, and MiniMax-M3) alongside a controlled six-configuration ablation study. GRODE-RTL improves pass@1 over source-level exploration by 16.7% on DeepSeek, by 26.7% on GLM-5.2, and by 20.0% on MiniMax-M3, with consistent gains on the hard-to-retrieve far-distance and indirect-anchor subsets of all three models. Our controls isolate structural relevance from generic context expansion, proving that selective dependency organization rather than full graph exposure is key to effective RTL repair.
Figures & tables
| Model | Method | Pass@1 by subset | |||
|---|---|---|---|---|---|
| mid (18) | far (12) | direct (16) | indirect (14) | ||
| DeepSeek-V4-Flash | Explorer | 9/18, 50.0% | 5/12, 41.7% | 10/16, 62.5% | 4/14, 28.6% |
| DeepSeek-V4-Flash | SeqFeed | 11/18, 61.1% | 4/12, 33.3% | 11/16, 68.8% | 4/14, 28.6% |
| DeepSeek-V4-Flash | GRODE-RTL | 11/18, 61.1% | 8/12, 66.7% | 11/16, 68.8% | 8/14, 57.1% |
| GLM-5.2 | Explorer | 8/18, 44.4% | 2/12, 16.7% | 7/16, 43.8% | 3/14, 21.4% |
| GLM-5.2 | SeqFeed | 10/18, 55.6% | 4/12, 33.3% | 9/16, 56.2% | 5/14, 35.7% |
| Configuration | Anchor Signal | Source Lines | Subgraph Extract | Dep. Org. | Graph Comp. |
|---|---|---|---|---|---|
| subgraph | ✓ | ✗ | ✗ | ✗ | ✗ |
| matched_random | ✓ | ✓ | ✗ | ✗ | ✗ |
| GRODE-RTL(cone only) | ✓ | ✓ | ✓ | ✗ | ✗ |
| GRODE-RTL(w/o. compact) | ✓ | ✓ | ✓ | ✓ | ✗ |
| GRODE-RTL | ✓ | ✓ | ✓ | ✓ | ✓ |
| Overall | Pass@1 by subset | |||||
| Configuration | Pass | mid (18) | far (12) | direct (16) | indirect (14) | |
| subgraph | 15/30, 50.0% | 11/18, 61.1% | 4/12, 33.3% | 11/16, 68.8% | 4/14, 28.6% | |
| matched_random | 16/30, 53.3% | 11/18, 61.1% | 5/12, 41.7% | 9/16, 56.2% | 7/14, 50.0% | |
| GRODE-RTL(cone only) | 18/30, 60.0% | 11/18, 61.1% | 7/12, 58.3% | 11/16, 68.8% | 7/14, 50.0% | |
| GRODE-RTL(w/o. compact) | 16/30, 53.3% | 12/18, 66.7% | 4/12, 33.3% | 11/16, 68.8% | 5/14, 35.7% | |
| GRODE-RTL | 19/30, 63.3% | — | 11/18, 61.1% | 8/12, 66.7% | 11/16, 68.8% | 8/14, 57.1% |
| Model | Method | Successful repairs (of 30) | Mean SD (%) | ||
|---|---|---|---|---|---|
| Seed 101 | Seed 102 | Seed 103 | |||
| DeepSeek-V4-Flash | Explorer | 19 | 14 | 20 | |
| DeepSeek-V4-Flash | GRODE-RTL(cone only) | 21 | 22 | 22 | |
| DeepSeek-V4-Flash | GRODE-RTL | 21 | 21 | 23 | |
| GLM-5.2 | Explorer | 10 | 11 | 15 | |
| GLM-5.2 | GRODE-RTL(cone only) | 17 | 19 | 19 | |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| # | Circuit | Fault type | DeepSeek-V4-Flash | GLM-5.2 | MiniMax-M3 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Explorer | SeqFeed | GRODE | Explorer | SeqFeed | GRODE | Explorer | SeqFeed | GRODE | |||
| 01 | 14520_2 | signal_swap | NE | NE | NE | NE | NE | NE | TO | NE | NE |
| 02 | 14520_2 | op_swap | NE | NE | NE | NE | TO | TO | ENE | ENE | NE |
| 03 | 1542 | const_tweak | ENE | ENE | PASS | NE | NE | NE | ENE | NE | PASS |
| 04 | 16017 | signal_swap | PASS | PASS | PASS | PASS | PASS | PASS | PASS | PASS | PASS |
| 05 | 16331_3 | signal_swap | NE | PASS | PASS | NE | NE | PASS | NE | PASS | PASS |
| Configuration | Outcome | Failure type |
|---|---|---|
| matched_random | PASS | None |
| subgraph | FAIL | edited_not_equivalent |
| cone | PASS | None |
| full_graph | FAIL | no_edit |
| GRODE-RTL | PASS | None |
| Model | Method | Before patch | After patch | Total |
|---|---|---|---|---|
| GLM-5.2 | Explorer | 9 | 1 | 10 |
| GLM-5.2 | GRODE-RTL | 7 | 0 | 7 |
| MiniMax-M3 | Explorer | 2 | 0 | 2 |
| MiniMax-M3 | GRODE-RTL | 3 | 0 | 3 |
Automated Program Repair
Automated program repair develops methods that locate software faults and produce validated fixes with limited human effort.
See all 177 papers