HiVeGen - Hierarchical LLM-based Verilog Generation for Scalable Chip Design

📅 2024-12-06
🏛️ arXiv.org
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Large language models (LLMs) often generate Verilog code lacking hierarchical structure, leading to frequent hallucinations and poor maintainability in complex hardware designs—especially domain-specific accelerators (DSAs). To address this, we propose the first hierarchical LLM-driven framework for HDL generation, integrating hierarchy-aware prompting, weight-guided code reuse, and real-time human-in-the-loop error correction. Our approach embeds design space exploration (DSE) directly into the LLM-based Verilog synthesis pipeline—enabling systematic trade-off analysis during code generation. Technically, it combines task decomposition, DSE-guided prompt engineering, vector-retrieval-enhanced code reuse, and interactive feedback-based fine-tuning, all implemented end-to-end on mainstream open-source LLMs. Experiments demonstrate a substantial reduction in hallucination rate, a 3.2× increase in module reuse, a 67% decrease in manual correction effort, and an overall functional correctness rate of 91.4%.

Technology Category

Application Category

📝 Abstract
With Large Language Models (LLMs) recently demonstrating impressive proficiency in code generation, it is promising to extend their abilities to Hardware Description Language (HDL). However, LLMs tend to generate single HDL code blocks rather than hierarchical structures for hardware designs, leading to hallucinations, particularly in complex designs like Domain-Specific Accelerators (DSAs). To address this, we propose HiVeGen, a hierarchical LLM-based Verilog generation framework that decomposes generation tasks into LLM-manageable hierarchical submodules. HiVeGen further harnesses the advantages of such hierarchical structures by integrating automatic Design Space Exploration (DSE) into hierarchy-aware prompt generation, introducing weight-based retrieval to enhance code reuse, and enabling real-time human-computer interaction to lower error-correction cost, significantly improving the quality of generated designs.
Problem

Research questions and friction points this paper is trying to address.

Generates hierarchical Verilog code for scalable chip design
Reduces hallucinations in complex hardware design generation
Enables modular code reuse and human-computer interaction
Innovation

Methods, ideas, or system contributions that make the work stand out.

Hierarchical decomposition of Verilog generation tasks
Automatic design space exploration in prompts
Weight-based retrieval for enhanced code reuse
🔎 Similar Papers
No similar papers found.