VeriCoder: Enhancing LLM-Based RTL Code Generation through Functional Correctness Validation
Not on the map. Why?
Abstract (arXiv)
Recent advances in Large Language Models (LLMs) have sparked growing interest in applying them to Electronic Design Automation (EDA) tasks, particularly Register Transfer Level (RTL) code generation. While several RTL datasets have been introduced, most focus on syntactic validity rather than functional validation with tests, leading to training examples that compile but may not implement the intended behavior. We present VERICODER, a model for RTL code generation fine-tuned on a dataset validated for functional correctness. This fine-tuning dataset is constructed using a novel methodology that combines unit test generation with feedback-directed refinement. Given a natural language specification and an initial RTL design, we prompt a teacher model (GPT-4o-mini) to generate unit tests and iteratively revise the RTL design based on its simulation results using the generated tests. If necessary, the teacher model also updates the tests to ensure they comply with the natural language specification. As a result of this process, every example in our dataset is functionally validated, consisting of a natural language description, an RTL implementation, and passing tests. Fine-tuned on this dataset of 125,777 examples, VERICODER achieves state-of-the-art metrics in functional correctness on VerilogEval and RTLLM, with relative gains of up to 71.7% and 27.4%, respectively. An ablation study further shows that models trained on our functionally validated dataset outperform those trained on functionally non-validated datasets, underscoring the importance of high-quality datasets in RTL code generation. Our code, data, and models are publicly available at https://github.com/Anjiang-Wei/VeriCoder
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 35 of its 46 references that are in the map. First posted on arXiv 22 Apr 2025.
Builds on
35 of 46 references.
References · 35
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023StarCoder: may the source be with you!cited by 799
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 252
- 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 200
- 2023ChipNeMo: Domain-Adapted LLMs for Chip Designcited by 174
- 2023RTLLM: An Open-Source Benchmark for Design RTL Generation with Large Language Modelcited by 148
- 2023ChatEDA: A Large Language Model Powered Autonomous Agent for EDAcited by 122
- 2022Benchmarking Large Language Models for Automated Verilog RTL Code Generationcited by 115
- 2023RTLFixer: Automatically Fixing RTL Syntax Errors with Large Language Modelscited by 100
- 2024BetterV: Controlled Verilog Generation with Discriminative Guidancecited by 100
23 more
- 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Surveycited by 83
- 2023RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solutioncited by 71
- 2023GPT4AIGChip: Towards Next-Generation AI Accelerator Design Automation via Large Language Modelscited by 61
- 2023nl2spec: Interactively Translating Unstructured Natural Language to Temporal Logics with Large Language Modelscited by 60
- 2024OriGen:Enhancing RTL Code Generation with Code-to-Code Augmentation and Self-Reflectioncited by 56
- 2024MG-Verilog: Multi-grained Dataset Towards Enhanced LLM-assisted Verilog Generationcited by 46
- 2024CraftRTL: High-quality Synthetic Data Generation for Verilog Code Models with Correct-by-Construction Non-Textual Representations and Targeted Code Repaircited by 42
- 2023LLM4EDA: Emerging Progress in Large Language Models for Electronic Design Automationcited by 40
- 2024CodeV: Empowering LLMs with HDL Generation through Multi-Level Summarizationcited by 38
- 2024CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Rerankingcited by 37
- 2024Data is all you need: Finetuning LLMs for Chip Design via an Automated design-data augmentation frameworkcited by 36
- 2024AutoVCoder: A Systematic Framework for Automated Verilog Code Generation using LLMscited by 36
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 35
- 2024RTLRewriter: Methodologies for Large Models aided RTL Code Optimizationcited by 31
- 2025OpenLLM-RTL: Open Dataset and Benchmark for LLM-Aided Design RTL Generationcited by 31
- 2024MEIC: Re-thinking RTL Debug Automation using LLMscited by 25
- 2025DeepRTL: Bridging Verilog Understanding and Generation with a Unified Representation Modelcited by 23
- 2025DeepCircuitX: A Comprehensive Repository-Level Dataset for RTL Code Understanding, Generation, and PPA Analysiscited by 21
- 2023On the Viability of using LLMs for SW/HW Co-Design: An Example in Designing CiM DNN Acceleratorscited by 11
- 2023A Deep Learning Framework for Verilog Autocompletion Towards Design and Verification Automationcited by 10
- 2025RTLRepoCoder: Repository-Level RTL Code Completion through the Combination of Fine-Tuning and Retrieval Augmentationcited by 7
- 2024Are LLMs Any Good for High-Level Synthesis?cited by 6
- 2024From English to ASIC: Hardware Implementation with Large Language Modelcited by 3
Built on by
Citing papers per year: 2025: 8; 2026: 5.
13 papers.
Sort:
By area:
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 51
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Aheadcited by 8
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 6
- 2026Semantic Consensus Decoding: Backdoor Defense for Verilog Code Generationcited by 3
- 2026SafeTune: Mitigating Data Poisoning in LLM Fine-Tuning for RTL Code Generationcited by 2
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosiscited by 1
- 2025The Cream Rises to the Top: Efficient Reranking Method for Verilog Code Generationcited by 1
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalizationcited by 1
- 2025Learning to Debug: LLM-Organized Knowledge Trees for Solving RTL Assertion Failurescited by 1
- 2026LLM-based Hardware Development with Hierarchical IRs and End-to-End Multi-Agent Workflowcited by 1
- 2025Mitigating hallucinations and omissions in LLMs for invertible problems: An application to hardware logic design automationcited by 0
- 2026EstRTL: Functional Estimation Guided RTL Code Generationcited by 0
1 more
- 2026LLM-based Hardware Development with Hierarchical IRs and End-to-End Multi-Agent Workflow31 Aug 2026
- 2026CHORUS: Complementary Experts for High-Coverage Testbench Stimulus Generation10 Aug 2026
- 2026EstRTL: Functional Estimation Guided RTL Code Generation1 Jun 2026
- 2026SafeTune: Mitigating Data Poisoning in LLM Fine-Tuning for RTL Code Generation29 Apr 2026
- 2026Semantic Consensus Decoding: Backdoor Defense for Verilog Code Generation4 Feb 2026
- 2025Mitigating hallucinations and omissions in LLMs for invertible problems: An application to hardware logic design automation25 Nov 2025
- 2025Learning to Debug: LLM-Organized Knowledge Trees for Solving RTL Assertion Failures21 Nov 2025
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Ahead29 Oct 2025
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalization15 Oct 2025
- 2025The Cream Rises to the Top: Efficient Reranking Method for Verilog Code Generation24 Sep 2025
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep 2025
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosis22 Jul 2025
1 more
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Aheadcited by 8
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 6
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosiscited by 1
- 2025The Cream Rises to the Top: Efficient Reranking Method for Verilog Code Generationcited by 1
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalizationcited by 1
- 2025Learning to Debug: LLM-Organized Knowledge Trees for Solving RTL Assertion Failurescited by 1
- 2025Mitigating hallucinations and omissions in LLMs for invertible problems: An application to hardware logic design automationcited by 0
- 2026EstRTL: Functional Estimation Guided RTL Code Generationcited by 0
- 2026CHORUS: Complementary Experts for High-Coverage Testbench Stimulus Generationcited by 0
- 2026CHORUS: Complementary Experts for High-Coverage Testbench Stimulus Generation10 Aug 2026
- 2026EstRTL: Functional Estimation Guided RTL Code Generation1 Jun 2026
- 2025Mitigating hallucinations and omissions in LLMs for invertible problems: An application to hardware logic design automation25 Nov 2025
- 2025Learning to Debug: LLM-Organized Knowledge Trees for Solving RTL Assertion Failures21 Nov 2025
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Ahead29 Oct 2025
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalization15 Oct 2025
- 2025The Cream Rises to the Top: Efficient Reranking Method for Verilog Code Generation24 Sep 2025
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosis22 Jul 2025
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Models16 May 2025