HaVen: Hallucination-Mitigated LLM for Verilog Code Generation Aligned with HDL Engineers
Yiyao Yang, Fu Teng, Pengju Liu, Mengnan Qi, Chenyang Lv, Ji Li,, Xuhong Zhang, Zhezhi He

TL;DR
HaVen is a novel LLM framework that reduces hallucinations and aligns Verilog code generation with HDL engineering practices, significantly improving correctness over existing methods.
Contribution
Introducing HaVen, which employs a taxonomy, chain-of-thought reasoning, and data augmentation to enhance Verilog code generation accuracy and alignment with HDL engineers.
Findings
Outperforms state-of-the-art on VerilogEval and RTLLM benchmarks.
Effectively mitigates hallucinations in Verilog code generation.
Aligns generated code with practical HDL engineering practices.
Abstract
Recently, the use of large language models (LLMs) for Verilog code generation has attracted great research interest to enable hardware design automation. However, previous works have shown a gap between the ability of LLMs and the practical demands of hardware description language (HDL) engineering. This gap includes differences in how engineers phrase questions and hallucinations in the code generated. To address these challenges, we introduce HaVen, a novel LLM framework designed to mitigate hallucinations and align Verilog code generation with the practices of HDL engineers. HaVen tackles hallucination issues by proposing a comprehensive taxonomy and employing a chain-of-thought (CoT) mechanism to translate symbolic modalities (e.g. truth tables, state diagrams, etc.) into accurate natural language descriptions. Furthermore, HaVen bridges this gap by using a data augmentation…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsPhysical Unclonable Functions (PUFs) and Hardware Security · Low-power high-performance VLSI design · Security and Verification in Computing
