PLLGSEDec 13, 2022

Benchmarking Large Language Models for Automated Verilog RTL Code Generation

arXiv:2212.11140v1221 citationsh-index: 62Has Code
Originality Synthesis-oriented
AI Analysis

This addresses automating hardware design to reduce human error, but it is incremental as it benchmarks existing methods on a new domain.

The paper tackled the problem of generating Verilog code for hardware design using large language models, finding that fine-tuning improved syntactic correctness to 25.9% and enabled an open-source model to outperform a commercial one by 6.5% in functional correctness.

Automating hardware design could obviate a significant amount of human error from the engineering process and lead to fewer errors. Verilog is a popular hardware description language to model and design digital systems, thus generating Verilog code is a critical first step. Emerging large language models (LLMs) are able to write high-quality code in other programming languages. In this paper, we characterize the ability of LLMs to generate useful Verilog. For this, we fine-tune pre-trained LLMs on Verilog datasets collected from GitHub and Verilog textbooks. We construct an evaluation framework comprising test-benches for functional analysis and a flow to test the syntax of Verilog code generated in response to problems of varying difficulty. Our findings show that across our problem scenarios, the fine-tuning results in LLMs more capable of producing syntactically correct code (25.9% overall). Further, when analyzing functional correctness, a fine-tuned open-source CodeGen LLM can outperform the state-of-the-art commercial Codex LLM (6.5% overall). Training/evaluation scripts and LLM checkpoints are available: https://github.com/shailja-thakur/VGen.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes