1
Return

CodeV: Empowering LLMs With HDL Generation Through Multilevel Summarization

delete2026-04-01
delete2
PRE
AI
赵洋 (Yang Zhao)
D
Di Huang
C
Chongxiao Li
P
Pengwei Jin
M
M Y Song
Y
Yinan Xu
Z
Ziyuan Nan
M
Mingju Gao
T
Tianyun Ma
Q
Qi Lei
P
Pan, Yansong
Z
Zhenxing Zhang
R
Rui Zhang
X
Xishan Zhang
Z
Zidong Du
Q
Qi Guo
X
Xing Hu *
DOI:10.1109/TCAD.2025.3604320delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The design flow of processors, particularly in hardware description languages (HDLs) like Verilog and Chisel, is complex and costly. While recent advances in large language models (LLMs) have significantly improved coding tasks in software languages such as Python, their application in HDL generation remains limited due to the scarcity of high-quality HDL data. Traditional methods of adapting LLMs for hardware design rely on synthetic HDL datasets, which often suffer from low quality because even advanced LLMs like GPT perform poorly in the HDL domain. Moreover, these methods focus solely on chat tasks and the Verilog language, limiting their application scenarios. In this article, we observe that: 1) HDL code collected from the real world is of higher quality than that generated by LLMs; 2) LLMs like GPT-3.5 excel in summarizing HDL code rather than generating it; and 3) an explicit language tag can help LLMs better adapt to the target language when there is insufficient data. Based on these observations, we propose an efficient LLM fine-tuning pipeline for HDL generation that integrates a multilevel summarization (MLS) data synthesis process with a novel Chat-FIM-Tag supervised fine-tuning method. The pipeline enhances the generation of HDL code from natural language descriptions and enables the handling of various tasks, such as chat and infilling incomplete code. Utilizing this pipeline, we introduce CodeV, a series of HDL generation LLMs. Among them, CodeV-All not only possesses a more diverse range of language abilities (Verilog and Chisel) and a broader scope of tasks (Chat and FIM), but also achieves performance on VerilogEval that is comparable to that of CodeV-Verilog fine-tuned on Verilog only, making them the first series of open-source LLMs designed for multiscenario HDL generation. The code, models, and dataset are available at https://github.com/IPRC-DIP/CodeV
Keywords:
Hardware design languages
Codes
Benchmark testing
Pipelines
Program processors
Training
Software
Python
Hardware
Encoding
Hardware design language (HDL) generation
large language models (LLMs)
processor design automation

Journal

I
IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
IF:
2.9
Papers:
564
Citations:
9.6K

Organization

U
university of chinese academy of sciences, cas
Scholars:
4.1W
Papers: 3.8W
Citations: 74
C
chinese academy of sciences
Scholars:
54.9W
Papers: 44.5W
Citations: 703
Cited Papers

Cited Papers

Citing Papers

Citing Papers