arrow
返回

A data-centric chip design agent framework for Verilog code generation

delete2025-11-01
delete0
PRE
AI
K
Kaiyan Chang *
W
Wenlong Zhu
K
Kun Wang
X
Xinyang He
N
Nan Yang
Z
Zhirong Chen
D
Dantong Jin
C
Cangyuan Li
Y
Yunhao Zhou
H
Hao Yan
Z
Zhuoliang Zhao
Y
Yuan Cheng
M
Mengdi Wang
S
Shengwen Liang
Y
Yinhe Han
X
Xiaowei Li
H
Huawei Li
Y
Ying Wang
DOI:10.1145/3727980delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Recent advances in large language models (LLMs) have demonstrated significant potential for automated hardware description language (HDL) code generation from high-level specifications. However, two critical challenges limit further progress in this domain: the scarcity of quality Verilog training data and the inability of current approaches to generate RTL code optimized for power, performance, and area (PPA) metrics. This article presents a comprehensive data-centric framework that addresses these limitations through innovations in both pre-fine-tuning data preparation and after-fine-tuning optimization strategies. In the pre-fine-tuning phase, we tackle the data scarcity problem with an automated design-data augmentation framework that generates high-volume, high-quality natural language specifications aligned with corresponding Verilog code and EDA scripts. Our approach creates a complete RTL-level feedback loop by augmenting EDA scripts, RTL code, and EDA tool feedback. In the after-fine-tuning phase, we focus on generating PPA-aware RTL code through a novel search and prompt framework. Our approach implements iterative filtering and selection of LLM-generated Verilog variants while providing high-quality predefined prompts, including composition and interface specifications. To evaluate the effectiveness of our data augmentation method, we fine-tune Llama 2-13B and Llama 2-7B models using the dataset generated by our augmentation framework. The results demonstrate a significant improvement in the Verilog generation tasks with LLMs. Moreover, the accuracy of Verilog generation surpasses that of the current state-of-the-art open-source Verilog generation model, increasing from 58.8% to 70.6% with the same benchmark. Our 13B model has a pass rate improvement compared with GPT-3.5 in Verilog generation and outperforms in EDA script (i.e., SiliconCompiler) generation with only 200 EDA script data. Additionally, to evaluate the effectiveness of the our agent framework, we compare the PPA on the GPT-3.5, where the results show that the agent refined RTL code can have a better quality than the generated RTL code only with GPT-3.5.
Keyword:
Large language model
hardware generation
data augmentation

期刊

A
ACM Transactions on Design Automation of Electronic Systems
IF:
2
论文数:
112
被引数:
1.2K

机构

U
university of chinese academy of sciences, cas
学者数:
4.1W
论文数: 3.8W
被引数: 75
I
institute of computing technology, cas
学者数:
1.0K
论文数: 878
被引数: 1
C
Chinese Academy of Sciences
学者数:
3.9W
论文数: 1.5W
被引数: 58.4W
学者 查看更多机构
引用论文

引用论文

ADAPT: Action-aware Driving Caption Transformer
err2023-05-29
err0
errOAAI
errBu Jin; Xinyu Liu; Yupeng Zheng; Pengfei Li; Hao Zhao; Tong Zhang; Yuhang Zheng; Guyue Zhou; Jingjing Liu
err分享
err收藏
err分享
err收藏
(Security) Assertions by Large Language Models(安全性) 大型语言模型的断言
err2024-01-01
err10
errOAAI
errKande, Rahul; Pearce, Hammond; Tan, Benjamin; Dolan-Gavitt, Brendan; Thakur, Shailja; Karri, Ramesh; Rajendran, Jeyavijayan
err分享
err收藏
Curriculum learning课程学习
err2009-06-14
err0
PREAI
errYoshua Bengio; Jérôme Louradour; Ronan Collobert; Jason Weston
err分享
err收藏
学者 查看更多内容