VRank: Enhancing Verilog Code Generation from Large Language Models via Self-Consistency
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated promising capabilities in generating Verilog code from module specifications. To improve the quality of such generated Verilog codes, previous methods require either time-consuming manual inspection or generation of multiple Verilog codes, from which the one with the highest quality is selected with manually designed testbenches. To enhance the generation efficiency while maintaining the quality of the generated codes, we propose VRank, an automatic framework that generates Verilog codes with LLMs. In our framework, multiple code candidates are generated with LLMs by leveraging their probabilistic nature. Afterwards, we group Verilog code candidates into clusters based on identical outputs when tested against the same testbench, which is also generated by LLMs. Clusters are ranked based on the consistency they show on testbench. To determine the best candidate, Chain-of-Thought is further applied to select the best candidate from the top-ranked clusters. By systematically analyzing diverse outputs of generated codes, VRank reduces errors and enhances the overall quality of the generated Verilog code. Experimental results on the VerilogEval-Human benchmark demonstrate a significant 10.5% average increase in functional correctness (passl1) across multiple LLMs, demonstrating VRank's effectiveness in improving the accuracy of automated hardware description language generation for complex design tasks.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 Jan 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 7; 2026: 4.
11 papers.
- 2025HDLCoRe: A Training-Free Framework for Mitigating Hallucinations in LLM-Generated HDLcited by 17
- 2025Understanding and Mitigating Errors of LLM-Generated RTL Codecited by 8
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Aheadcited by 8
- 2026GRPO with State Mutations: Improving LLM-Based Hardware Test Plan Generationcited by 4
- 2025Large Language Models (LLMs) for Electronic Design Automation (EDA)cited by 3
- 2025CorrectHDL: Agentic HDL Design with LLMs Leveraging High-Level Synthesis as Referencecited by 3
- 2026OSIRIS: Bridging Analog Circuit Design and Machine Learning with Scalable Dataset Generationcited by 3
- 2025DeepV: A Model-Agnostic Retrieval-Augmented Framework for Verilog Code Generation with a High-Quality Knowledge Basecited by 1
- 2025QiMeng-CRUX: Narrowing the Gap Between Natural Language and Verilog via Core Refined Understanding eXpression for Circuit Designcited by 1
- 2026NoTB: Oracle-Free Triage of LLM-Generated RTL via Cross-Model Formal Consensuscited by 1
- 2026Agentic Electronic Design Automation: A Handoff Perspectivecited by 0
- 2026NoTB: Oracle-Free Triage of LLM-Generated RTL via Cross-Model Formal Consensus22 Aug 2026
- 2026Agentic Electronic Design Automation: A Handoff Perspective18 Jun 2026
- 2026OSIRIS: Bridging Analog Circuit Design and Machine Learning with Scalable Dataset Generation27 Jan 2026
- 2026GRPO with State Mutations: Improving LLM-Based Hardware Test Plan Generation12 Jan 2026
- 2025QiMeng-CRUX: Narrowing the Gap Between Natural Language and Verilog via Core Refined Understanding eXpression for Circuit Design25 Nov 2025
- 2025CorrectHDL: Agentic HDL Design with LLMs Leveraging High-Level Synthesis as Reference20 Nov 2025
- 2025Large Language Model for Verilog Code Generation: Literature Review and the Road Ahead29 Oct 2025
- 2025DeepV: A Model-Agnostic Retrieval-Augmented Framework for Verilog Code Generation with a High-Quality Knowledge Base6 Oct 2025
- 2025Large Language Models (LLMs) for Electronic Design Automation (EDA)27 Aug 2025
- 2025Understanding and Mitigating Errors of LLM-Generated RTL Code7 Aug 2025
- 2025HDLCoRe: A Training-Free Framework for Mitigating Hallucinations in LLM-Generated HDL18 Mar 2025