AutoVCoder: A Systematic Framework for Automated Verilog Code Generation using LLMs
Recently, the use of large language models (LLMs) for software code generation, e.g., C/C++ and Python, has proven a great success. However, LLMs still suffer from low syntactic and functional correctness when it comes to the generation of register-transfer level (RTL) code, such as Verilog. To address this issue, in this paper, we develop AutoVCoder, a systematic open-source framework that significantly improves the LLMs' correctness of generating Verilog code and enhances the quality of its output at the same time. Our framework integrates three novel techniques, including a high-quality hardware dataset generation approach, a two-round LLM fine-tuning method and a domain-specific retrieval-augmented generation (RAG) mechanism. Experimental results demonstrate that AutoVCoder outperforms both industrial and academic LLMs in Verilog code generation. Code and models are available at https://github.com/sjtu-zhao-lab/AutoVCoder.
Authors
- Minyi Guo (ORCID: https://orcid.org/0000-0003-0034-2302)
- Jieru Zhao (ORCID: https://orcid.org/0000-0001-8211-2812)
- Gao Mingzhe
- Chao Li (ORCID: https://orcid.org/0000-0001-6218-4659)
- Feng Yu (ORCID: https://orcid.org/0000-0002-9502-3277)
- Zhe Lin (ORCID: https://orcid.org/0000-0002-2287-250X)
- W. Ding (ORCID: https://orcid.org/0000-0002-4614-956X)
- Xiaofeng Hou
Institutions
- Sun Yat-sen University (CN)
- Shanghai Jiao Tong University (CN)
- Fudan University (CN)
Publication Details
- Published
- 2024-11-18
- DOI
- https://doi.org/10.1109/iccd63220.2024.00033
- Citations
- 19
- Primary Topic
- Real-time simulation and control systems
- Type
- article
- Field-Weighted Citation Impact
- 6.24
Funders
- National Natural Science Foundation of China
- Basic and Applied Basic Research Foundation of Guangdong Province