Manuscript Offprint

arXiv:2610.05380

VHDL-REPOBENCH: A Repository-Level Benchmark for Evaluating Large Language Models on VHDL Design Generation

Prashanth Vijayaraghavan, Akul Malhotra, Ashutosh Jadhav, Ehsan Degan, Vandana Mukherjee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Prashanth Vijayaraghavan*, Akul Malhotra*, Ashutosh Jadhav, Ehsan Degan, Vandana Mukherjee

IBM Research

San Jose, CA, USA

{prashanthv,Akul.Malhotra}@ibm.com, {ashutosh,edehgha,vandana}@us.ibm.com,

Abstract—Large Language Models (LLMs) are increasingly applied in hardware design automation, demonstrating strong potential in generating and understanding hardware description languages. However, most existing benchmarks focus on Verilog, with limited evaluation of VHDL, which remains widely used in industry and academia for FPGA and safety-critical systems. To address this gap, we introduce VHDL-REPOBENCH, a large-scale, cross-file, repository-level benchmark for assessing LLM capabilities on realistic VHDL design generation and analysis tasks. VHDL-REPOBENCH curates ~100 open-source VHDL repositories, encompassing ~2.5k VHDL files and ~500 test-benches, and provides structured problem statements, module stubs, and self-verifying testbenches. The benchmark enables comprehensive evaluation across syntax, semantic correctness, hierarchical reasoning, cross-file dependency resolution, and functional verification. We evaluate several state-of-the-art models, including GPT-4o, Llama-3-70B, Qwen2.5-72B, CodeLlama-70B, and multi-step reasoning approaches such as Reflexion and CoDes. Results reveal that while current LLMs achieve moderate line- and block-level accuracy, substantial challenges remain in multi-file reasoning, hierarchical design understanding, and specification-to-module generation. VHDL-REPOBENCH represents the first large-scale VHDL-focused benchmark and provides a valuable resource for the hardware design community to evaluate, compare, and advance LLM capabilities for practical VHDL development.

Index Terms—VHDL, RTL, HDL, Repository-Level Benchmark, Large Language Models, Code Generation, Code Summarization, LLM, Functional Verification, Datasets

I. INTRODUCTION

Large language models (LLMs) are rapidly transforming hardware design automation by enabling automated generation, completion, and reasoning over Register-Transfer Level (RTL) code [1]–[7]. While most recent progress has focused on Verilog, VHDL remains widely used across industry, research, aerospace, and safety-critical domains. Compared to Verilog, VHDL enforces a richer type system, stricter modular structure, explicit package usage, and well-defined generic configurations. These features make VHDL more verbose and semantically constrained, demanding deeper structural and cross-file reasoning from LLMs.

Despite the prevalence of VHDL in real-world designs, there is no benchmark evaluating LLMs at the scale and complexity of entire VHDL repositories. Existing VHDL

Figure

Fig. 1. Overview of VHDL-REPOBENCH. Public GitHub repositories are processed via a preprocessing pipeline to construct the dataset. The benchmark supports 4 tasks: Next-Line Prediction (LP), Block Completion (BC), Specification-to-Module Generation (SMG), & Repository Summarization (RS). Verification module enables evaluation of LLM performance on multi-file VHDL reasoning & generation.

benchmarks, such as VHDL-Eval, focus on small, isolated modules and do not assess model capabilities on project-wide type definitions, shared packages, architectural variations, or hierarchical design. By contrast, recent Verilog benchmarks like RTL-Repo [8] highlight the importance of long-context modeling and cross-file dependency reasoning, but they are Verilog-specific and do not capture VHDL's unique semantics, compilation constraints, and hierarchical dependencies. In real VHDL repositories, packages define shared types and functions, architectures instantiate entities from other files, generics propagate constraints, and configuration units bind architectures to entities. Without evaluating these aspects, it is impossible to assess an LLM's readiness for industrial VHDL workflows. Addressing this gap requires a benchmark that preserves full repository granularity rather than reducing VHDL to isolated modules or single files.

In this work, we present VHDL-REPOBENCH, the first large-scale, multi-file, repository-level benchmark specifically for VHDL. We curate ~100 open-source VHDL repositories, encompassing ~2.5k files and ~500 verified testbenches, while maintaining complete project structures including entities, architectures, packages, configuration units, and testbenches. From these repositories, we construct a suite of tasks that reflect realistic RTL design workflows: repository-level line and block completion, specification-to-module generation conditioned on full project context, repository-aware natural-language (NL) summarization, and long-context retrieval for context-driven generation (refer Figure 1). RTL-Repo uses

∗^{*}These authors contributed equally to this work.

TABLE I COMPARISON OF VHDL-REPOBENCH WITH PRIOR RTL DATASETS. DATASET SIZE INDICATES THE NUMBER OF FILES OR PROBLEMS AS REPORTED. FUNCT. DENOTES FUNCTIONAL VERIFIABILITY AND LANG. INDICATES THE PROGRAMMING LANGUAGE.

DatasetSizeFunct.Cross-FileLang.
HUMANEVAL [13]264✓✕Python
REPOCODER [14]2k✓✕Python
VERILOGEVAL [15]156✓✕Verilog
VHDL-EVAL [16]202✓✕VHDL
RTLLM [17]30✓✕Verilog
RTLREWRITER [18]95✕✓Verilog
CVDP [19]783✓✓Verilog
RESBENCH [20]56✓✓Verilog
TURTLE [21]1k✓✓Verilog
RTL-REPO [8]4k✕✓Verilog
VHDL-REPOBENCH2.5k✓✓VHDL

edit-similarity metrics (Levenshtein distance) without test-bench execution, meaning a structurally plausible but functionally broken architecture scores highly. VHDL-REPOBENCH evaluates via GHDL compilation and testbench simulation, measuring functional correctness rather than surface similarity. We evaluate multiple state-of-the-art LLMs, including GPT-4o [9], Llama-3-70B [10], Qwen2.5-72B [11], CodeLlama-70B [12], and domain-tuned variants, and conduct detailed analysis across all tasks. Our experiments reveal that while current models perform reasonably well on localized syntax and line-level completion, they struggle with multi-file reasoning, hierarchical design understanding, and summarization of repository-level design intent.

Contributions: Our key contributions are: (a) the introduction of VHDL-REPOBENCH, the first large-scale, repository-level VHDL benchmark, containing approximately 2.5k real-world VHDL files with preserved hierarchy and semantics; (b) the development of a multi-task evaluation suite covering Next-Line Prediction (LP), Block Completion (BC), Specification-to-Module Generation (SMG), and Repository Summarization (RS) for VHDL; and (c) comprehensive evaluations of state-of-the-art LLMs, revealing core challenges in VHDL reasoning and highlighting research opportunities for next-generation AI-assisted RTL design tools

References (26)