Classification-Based Automatic HDL Code Generation Using LLMs

Wenhao Sun, Bing Li, Grace Li Zhang, Xunzhao Yin, Cheng Zhuo +1 more
7/4/2024
cs.ARcs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

While large language models (LLMs) have demonstrated the ability to generate hardware description language (HDL) code for digital circuits, they still suffer from the hallucination problem, which leads to the generation of incorrect HDL code or misunderstanding of specifications. In this work, we introduce a human-expert-inspired method to mitigate the hallucination of LLMs and improve the performance in HDL code generation. We first let LLMs classify the type of the circuit based on the specifications. Then, according to the type of the circuit, we split the tasks into several sub-procedures, including information extraction and human-like design flow using Electronic Design Automation (EDA) tools. Besides, we also use a search method to mitigate the variation in code generation. Experimental results show that our method can significantly improve the functional correctness of the generated Verilog and reduce the hallucination of LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2024classificationbased,
  title  = {Classification-Based Automatic HDL Code Generation Using LLMs},
  author = {Wenhao Sun and Bing Li and Grace Li Zhang and Xunzhao Yin and Cheng Zhuo and Ulf Schlichtmann},
  year   = {2024},
  eprint = {2407.18326},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.18326v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.18326.svg)](https://codeofpaper.com/paper/2407.18326)

Discussion