Metraipolis › archive › dc_f2493011ece3
Automated Multi-Line Bug Repair Using Model Checker Aided LLMs: A Case Study on RISC-V Processors — arXiv:2610.32597
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.32597
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-26T19:55:27.412Z
- SHA-256 of the archived text
60c524dbc09a85a6c19dbc539774775fdab29136cd4aa8e008b575783974fb7f- Stable URL of this page
https://metraipolis.com/documento/dc_f2493011ece3
How to cite
Automated Multi-Line Bug Repair Using Model Checker Aided LLMs: A Case Study on RISC-V Processors — arXiv:2610.32597 — arXiv (en), https://arxiv.org/abs/2610.32597 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f2493011ece3 (Metraipolis archive dc_f2493011ece3, sha256 60c524dbc09a85a6c19dbc539774775fdab29136cd4aa8e008b575783974fb7f)
BibTeX
@misc{dcf2493011ece3,
title = {Automated Multi-Line Bug Repair Using Model Checker Aided LLMs: A Case Study on RISC-V Processors — arXiv:2610.32597},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.32597},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f2493011ece3; sha256 60c524dbc09a85a6c19dbc539774775fdab29136cd4aa8e008b575783974fb7f},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.32597. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Functional verification of Register-Transfer Level(RTL) designs has become a critical bottleneck in modern semiconductor development, often consuming the majority of project resources. Debugging, in particular, remains an especially time-consuming task, requiring careful analysis of simulation traces or counterexamples. Recent work has explored applying Large Language Models (LLMs) to RTL debug and repair with great promise. However, the existing approaches typically are for single-line bugs, operate in open-loop, rely heavily on prompts or retrieval, lack scalability, and often produce incorrect fixes. In this paper, we propose a novel automated RTL bug repair methodology that combines LLMs, assertions, and a model checker to provide scalable, trustworthy semantic grounding and formal guarantees. Concretely, the methodology leverages failing assertions to guide the LLM in generating patches for multi-line bugs. Each candidate patch is formally verified using a model checker (JasperGold), ensuring only valid repairs are accepted. We evaluate the efficacy and scalability of our methodology on the BRISC-V RISC-V core using mutation testing, introducing several mutation types, and demonstrate that our methodology can repair up to 98% of single-line RTL bugs and 93% of the multi-line bugs. To the best of our knowledge, this is the first work to show automated, LLM-assisted RTL multi-line bug repair results on a complex RISC-V processor design in a scalable manner. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.AR, nuovi lavori del giorno). Categorie arXiv: Hardware Architecture (cs.AR) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.32597 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-26T19:46:18.294Z dalla pagina https://arxiv.org/list/cs.AR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).