Understanding and Mitigating Errors of LLM-Generated RTL Code
Not on the map. Why?
Abstract (arXiv)
Despite limited success in large language model (LLM)-based register-transfer-level (RTL) code generation, the root causes of errors remain poorly understood. To address this, we conduct a comprehensive error analysis, finding that most failures arise not from deficient reasoning, but from a lack of RTL programming knowledge, insufficient circuit understanding, ambiguous specifications, or misinterpreted multimodal inputs. Leveraging in-context learning, we propose targeted correction techniques: a retrieval-augmented generation (RAG) knowledge base to supply domain expertise; design description rules with rule-checking to clarify inputs; external tools to convert multimodal data into LLM-compatible formats; and an iterative simulation-debugging loop for remaining errors. Integrating these into an LLM-based framework yields significant improvement, achieving 98.1% accuracy on the VerilogEval benchmark with DeepSeek-v3.2-Speciale, demonstrating the effectiveness of our approach.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 27 of its 43 references that are in the map. First posted on arXiv 7 Aug 2025.
Builds on
27 of 43 references.
References · 27
- 2023GPT-4 Technical Reportcited by 18,396
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 252
- 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 200
- 2023RTLFixer: Automatically Fixing RTL Syntax Errors with Large Language Modelscited by 100
- 2024BetterV: Controlled Verilog Generation with Discriminative Guidancecited by 100
- 2024VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Toolcited by 85
- 2023AutoChip: Automating HDL Generation Using LLM Feedbackcited by 83
- 2023RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solutioncited by 71
15 more
- 2024OriGen:Enhancing RTL Code Generation with Code-to-Code Augmentation and Self-Reflectioncited by 56
- 2020DAVE: Deriving Automatically Verilog from Englishcited by 48
- 2024Towards LLM-Powered Verilog RTL Assistant: Self-Verification and Self-Correctioncited by 39
- 2024AutoVCoder: A Systematic Framework for Automated Verilog Code Generation using LLMscited by 36
- 2025QiMeng-CodeV-R1: Reasoning-Enhanced Verilog Generationcited by 35
- 2024HDLdebugger: Streamlining HDL debugging with Large Language Modelscited by 26
- 2024MEIC: Re-thinking RTL Debug Automation using LLMscited by 25
- 2024HLSPilot: LLM-based High-Level Synthesiscited by 25
- 2025DeepRTL: Bridging Verilog Understanding and Generation with a Unified Representation Modelcited by 23
- 2024AIvril: AI-Driven RTL Generation With Verification In-The-Loopcited by 15
- 2025ReasoningV: Efficient Verilog Code Generation with Adaptive Hybrid Reasoning Modelcited by 12
- 2025VeriDebug: A Unified LLM for Verilog Debugging via Contrastive Embedding and Guided Correctioncited by 12
- 2025VRank: Enhancing Verilog Code Generation from Large Language Models via Self-Consistencycited by 11
- 2024ITERTL: An Iterative Framework for Fine-tuning LLMs for RTL Code Generationcited by 9
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generationcited by 9
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2025An Empirical Study on Failures in Automated Issue Solvingcited by 16
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Aheadcited by 8
- 2026UCAgent: An End-to-End Agent for Block-Level Functional Verificationcited by 2
- 2026HAVEN: Hybrid Automated Verification ENgine for UVM Testbench Synthesis with LLMscited by 2
- 2026LEGO: An LLM Skill-Based Front-End Design Generation Platformcited by 0
- 2026EstRTL: Functional Estimation Guided RTL Code Generationcited by 0
- 2026How LLMs Fail and Generalize in RTL Coding for Hardware Design?cited by 0
- 2026SpecRead: A Benchmark for Measuring Whether Language Models Understand Hardware Specificationscited by 0
- 2026SpecRead: A Benchmark for Measuring Whether Language Models Understand Hardware Specifications27 Sep 2026
- 2026EstRTL: Functional Estimation Guided RTL Code Generation1 Jun 2026
- 2026HAVEN: Hybrid Automated Verification ENgine for UVM Testbench Synthesis with LLMs30 Apr 2026
- 2026How LLMs Fail and Generalize in RTL Coding for Hardware Design?26 Apr 2026
- 2026LEGO: An LLM Skill-Based Front-End Design Generation Platform25 Apr 2026
- 2026UCAgent: An End-to-End Agent for Block-Level Functional Verification26 Mar 2026
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Ahead29 Oct 2025
- 2025An Empirical Study on Failures in Automated Issue Solving17 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026LLM4RTL: Tool-Assisted LLM for RTL Generation
- 2024EDA-Aware RTL Generation with Large Language Models
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosis
- 2025DecoRTL: A Run-time Decoding Framework for RTL Code Generation with LLMs
- 2025DeepV: A Model-Agnostic Retrieval-Augmented Framework for Verilog Code Generation with a High-Quality Knowledge Base
- 2026CASS-RTL: Correctness-Aware Subspace Steering for RTL Generation with LLMs
- 2026LLM-FSM: Scaling Large Language Models for Finite-State Reasoning in RTL Code Generation
- 2025Faver: Boosting LLM-based RTL Generation with Function Abstracted Verifiable Middleware