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. Specifically, AutoVCoder shows a 0.5% and 2.2% improvement in functional correctness on the EvalMachine and EvalHuman benchmarks compared with BetterV, and also achieves a 3.4% increase in syntax correctness and a 3.4% increase in functional correctness on the RTLLM benchmark compared with RTLCoder.
Data is all you need: Finetuning LLMs for Chip Design via an Automated design-data augmentation framework
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Nanjing University(南京大学);Shanghai University(上海大学);Zhejiang University(浙江大学);Shanghai Innovation Center for Processor Technologies(上海处理器技术创新中心);FuDan University(复旦大学);Hangzhou Institute for Advanced Study, University of Chinese Academy of Sciences(中国科学院大学杭州高等研究院);University of Illinois at Urbana Champaign(伊利诺伊大学厄巴纳-香槟分校);Shanghai Jiao Tong University(上海交通大学);Zhejiang Lab(之江实验室)
Large Language Model for Verilog Code Generation: Literature Review and the Road Ahead
Zhejiang University \& Northwestern Polytechnical University China;Northwestern Polytechnical University China;Nantong University China;Zhejiang University China;Monash University Australia;Singapore Management University Singapore;Zhejiang University \& Northwestern Polytechnical University;Northwestern Polytechnical University;Nantong University;Zhejiang University;Monash University;Singapore Management University
EvoVerilog: Large Langugage Model Assisted Evolution of Verilog Code
Department of Computer Science, City University of Hong Kong, Hong Kong(香港城市大学计算机科学系);Department of Electrical Engineering, University of Maryland, Maryland, United States(马里兰大学电气工程系);Amazon, Seattle, United States(亚马逊公司)
VeriPilot: An LLM-Powered Verilog Debugging Framework
State Key Lab of Processors, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所国家专用集成电路设计实验室);University of Chinese Academy of Sciences(中国科学院大学);North China Electric Power University(华北电力大学)
Think with Self-Decoupling and Self-Verification: Automated RTL Design with Backtrack-ToT
State Key Lab of Processors, Institute of Computing Technology, CAS(处理器重点实验室,计算技术研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学);Beijing Normal University(北京师范大学);Peking University(北京大学);Chinese University of Hong Kong(香港中文大学)
CraftRTL: High-quality Synthetic Data Generation for Verilog Code Models with Correct-by-Construction Non-Textual Representations and Targeted Code Repair
UCAgent: An End-to-End Agent for Block-Level Functional Verification
State Key Lab of Processors, Institute of Computing Technology, CAS(中国科学院计算技术研究所处理器国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Beijing Institute of Open Source Chip(北京开源芯片研究院)
ChipGPT: How far are we from natural language hardware design
State Key Lab of Processors, Institute of Computing Technology, Chinese Academy of Sciences, China(处理器国家重点实验室,计算技术研究所,中国科学院,中国);University of Chinese Academy of Sciences(中国科学院大学);School of Information Science and Technology, ShanghaiTech University, China(信息科学与技术学院,上海科技大学,中国)
QiMeng-SALV: Signal-Aware Learning for Verilog Code Generation
State Key Lab of Processors, Institute of Computing Technology, CAS(处理器国家重点实验室,计算技术研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学);University of Science and Technology of China(中国科学技术大学)