English

BetterV: Controlled Verilog Generation with Discriminative Guidance

Artificial Intelligence 2024-05-03 v3 Programming Languages

Abstract

Due to the growing complexity of modern Integrated Circuits (ICs), there is a need for automated circuit design methods. Recent years have seen rising research in hardware design language generation to facilitate the design process. In this work, we propose a Verilog generation framework, BetterV, which fine-tunes the large language models (LLMs) on processed domain-specific datasets and incorporates generative discriminators for guidance on particular design demands. The Verilog modules are collected, filtered and processed from internet to form a clean and abundant dataset. Instruct-tuning methods are specially designed to fine-tune the LLMs to understand the knowledge about Verilog. Furthermore, data are augmented to enrich the training set and also used to train a generative discriminator on particular downstream task, which leads a guidance for the LLMs to optimize the Verilog implementation. BetterV has the ability to generate syntactically and functionally correct Verilog, which can outperform GPT-4 on the VerilogEval benchmark. With the help of task-specific generative discriminator, BetterV can achieve remarkable improvement on various electronic design automation (EDA) downstream tasks, including the netlist node reduction for synthesis and verification runtime reduction with Boolean Satisfiability (SAT) solving.

Keywords

Cite

@article{arxiv.2402.03375,
  title  = {BetterV: Controlled Verilog Generation with Discriminative Guidance},
  author = {Zehua Pei and Hui-Ling Zhen and Mingxuan Yuan and Yu Huang and Bei Yu},
  journal= {arXiv preprint arXiv:2402.03375},
  year   = {2024}
}

Comments

Accepted by ICML 2024

R2 v1 2026-06-28T14:39:06.752Z