Adding Context to LLM-Guided Verilog Repair. Elnaggar, A. & Tan, B. In 2025 26th International Symposium on Quality Electronic Design (ISQED), pages 1–7, April, 2025.
Paper doi abstract bibtex Register transfer level (RTL) bugs are critical issues that affect the functional correctness, security, and performance of systems-on-chip (SoC). Traditionally, repairing these bugs is a time-consuming process that requires the expertise of experienced engineers, leading to prolonged SoC development cycles and reduced vendor competitiveness. In this paper, we propose an automated framework that utilizes a Large Language Model (LLM) to repair RTL bugs. We investigate four prompting strategies (each with around five variants), where each strategy incorporates different levels of context (such as simulation output) to guide the LLM. Our framework, using the best-performing strategy, achieves a repair success rate of 65.6% on benchmarks without prior knowledge of the bug's location or the specific steps needed for the repair.
@inproceedings{elnaggar_adding_2025,
title = {Adding {Context} to {LLM}-{Guided} {Verilog} {Repair}},
issn = {1948-3295},
url = {https://ieeexplore.ieee.org/document/11014472},
doi = {10.1109/ISQED65160.2025.11014472},
abstract = {Register transfer level (RTL) bugs are critical issues that affect the functional correctness, security, and performance of systems-on-chip (SoC). Traditionally, repairing these bugs is a time-consuming process that requires the expertise of experienced engineers, leading to prolonged SoC development cycles and reduced vendor competitiveness. In this paper, we propose an automated framework that utilizes a Large Language Model (LLM) to repair RTL bugs. We investigate four prompting strategies (each with around five variants), where each strategy incorporates different levels of context (such as simulation output) to guide the LLM. Our framework, using the best-performing strategy, achieves a repair success rate of 65.6\% on benchmarks without prior knowledge of the bug's location or the specific steps needed for the repair.},
urldate = {2025-06-02},
booktitle = {2025 26th {International} {Symposium} on {Quality} {Electronic} {Design} ({ISQED})},
author = {Elnaggar, Abdelrahman and Tan, Benjamin},
month = apr,
year = {2025},
keywords = {\#nosource, Benchmark testing, Computer bugs, Hardware design languages, Large language models, Maintenance engineering, Prompt engineering, Register transfer level, Security},
pages = {1--7},
}
Downloads: 0
{"_id":"NYkeS2Bj9qq2o7drd","bibbaseid":"elnaggar-tan-addingcontexttollmguidedverilogrepair-2025","author_short":["Elnaggar, A.","Tan, B."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"Adding Context to LLM-Guided Verilog Repair","issn":"1948-3295","url":"https://ieeexplore.ieee.org/document/11014472","doi":"10.1109/ISQED65160.2025.11014472","abstract":"Register transfer level (RTL) bugs are critical issues that affect the functional correctness, security, and performance of systems-on-chip (SoC). Traditionally, repairing these bugs is a time-consuming process that requires the expertise of experienced engineers, leading to prolonged SoC development cycles and reduced vendor competitiveness. In this paper, we propose an automated framework that utilizes a Large Language Model (LLM) to repair RTL bugs. We investigate four prompting strategies (each with around five variants), where each strategy incorporates different levels of context (such as simulation output) to guide the LLM. Our framework, using the best-performing strategy, achieves a repair success rate of 65.6% on benchmarks without prior knowledge of the bug's location or the specific steps needed for the repair.","urldate":"2025-06-02","booktitle":"2025 26th International Symposium on Quality Electronic Design (ISQED)","author":[{"propositions":[],"lastnames":["Elnaggar"],"firstnames":["Abdelrahman"],"suffixes":[]},{"propositions":[],"lastnames":["Tan"],"firstnames":["Benjamin"],"suffixes":[]}],"month":"April","year":"2025","keywords":"#nosource, Benchmark testing, Computer bugs, Hardware design languages, Large language models, Maintenance engineering, Prompt engineering, Register transfer level, Security","pages":"1–7","bibtex":"@inproceedings{elnaggar_adding_2025,\n\ttitle = {Adding {Context} to {LLM}-{Guided} {Verilog} {Repair}},\n\tissn = {1948-3295},\n\turl = {https://ieeexplore.ieee.org/document/11014472},\n\tdoi = {10.1109/ISQED65160.2025.11014472},\n\tabstract = {Register transfer level (RTL) bugs are critical issues that affect the functional correctness, security, and performance of systems-on-chip (SoC). Traditionally, repairing these bugs is a time-consuming process that requires the expertise of experienced engineers, leading to prolonged SoC development cycles and reduced vendor competitiveness. In this paper, we propose an automated framework that utilizes a Large Language Model (LLM) to repair RTL bugs. We investigate four prompting strategies (each with around five variants), where each strategy incorporates different levels of context (such as simulation output) to guide the LLM. Our framework, using the best-performing strategy, achieves a repair success rate of 65.6\\% on benchmarks without prior knowledge of the bug's location or the specific steps needed for the repair.},\n\turldate = {2025-06-02},\n\tbooktitle = {2025 26th {International} {Symposium} on {Quality} {Electronic} {Design} ({ISQED})},\n\tauthor = {Elnaggar, Abdelrahman and Tan, Benjamin},\n\tmonth = apr,\n\tyear = {2025},\n\tkeywords = {\\#nosource, Benchmark testing, Computer bugs, Hardware design languages, Large language models, Maintenance engineering, Prompt engineering, Register transfer level, Security},\n\tpages = {1--7},\n}\n","author_short":["Elnaggar, A.","Tan, B."],"key":"elnaggar_adding_2025","id":"elnaggar_adding_2025","bibbaseid":"elnaggar-tan-addingcontexttollmguidedverilogrepair-2025","role":"author","urls":{"Paper":"https://ieeexplore.ieee.org/document/11014472"},"keyword":["#nosource","Benchmark testing","Computer bugs","Hardware design languages","Large language models","Maintenance engineering","Prompt engineering","Register transfer level","Security"],"metadata":{"authorlinks":{}}},"bibtype":"inproceedings","biburl":"https://api.zotero.org/users/4645877/collections/5QADJUWI/items?key=OGCZ3uLZZq4lLIXadnuJrB1J&format=bibtex&limit=100","dataSources":["Wsv2bQ4jPuc7qme8R"],"keywords":["#nosource","benchmark testing","computer bugs","hardware design languages","large language models","maintenance engineering","prompt engineering","register transfer level","security"],"search_terms":["adding","context","llm","guided","verilog","repair","elnaggar","tan"],"title":"Adding Context to LLM-Guided Verilog Repair","year":2025}