TL;DR
While Large Language Models (LLMs) excel at generating Verilog code, their capabilities in VHDL remain largely unmapped due to a lack of rigorous benchmarks. This paper introduces VHDLSuite, an automated data pipeline that bootstraps Verilog benchmarks into VHDL, creating VHDLBench—a new dataset of 206 fully validated problems used to evaluate and diagnose state-of-the-art LLMs.
What Problem Does This Paper Address?
Most AI-assisted hardware design research focuses heavily on Verilog. However, VHDL is a major industry standard with a fundamentally different philosophy: it is strongly typed, verbose, and strictly separates interface specifications (entity) from behavioral descriptions (architecture).
Traditional transpilers often fail to convert Verilog to VHDL accurately because of these rigid semantic rules. Without dedicated VHDL benchmarks, the hardware community cannot truly determine if LLMs are learning generalized hardware design principles or simply memorizing Verilog syntax patterns.
Methods
The authors developed VHDLSuite, which features an automated, simulation-driven data pipeline to translate existing Verilog benchmarks into VHDL:
- Preprocessing: Standardizes natural language descriptions, Verilog code, and testbenches into a uniform format.
- Iterative Code Translation: Uses an LLM with a VHDL-aware system prompt to translate the code. Because single-round translation often fails due to VHDL's strictness, the pipeline treats translation as a multi-round task.
- Simulation and Repair-driven Validation: VHDLSuite compiles and simulates the translated code using VUnit and GHDL. If a compilation failure or functional mismatch occurs, the error logs are fed back to the LLM for automated repair until it passes.
To evaluate LLMs without bias, the framework tests them in a no-feedback setting. It introduces a custom syntactic similarity metric based on the Tree-sitter parsing framework that prioritizes logic-heavy structures (like processes and assignments) over simple identifiers.
Datasets
The paper introduces VHDLBench, which consists of 206 problems categorized into easy, medium, and hard tiers. It bootstraps from two mature Verilog benchmarks:
- VerilogEval v2 (156 problems): Focuses on basic syntax, small modules, and state machines.
- RTLLM v2 (50 problems): Contains complex, industrial-scale Intellectual Property (IP) cores.
Each problem includes a natural language prompt, library dependencies, the VHDL Device Under Test (DUT), and a fully validated VHDL testbench.
Key Insights and Ideas
- Cross-Lingual Generalization is Model-Specific: Models do not perform uniformly across hardware languages. For instance, GPT-5.1 Codex Max performs significantly better on Verilog than VHDL, whereas Claude Sonnet 4.5 shows the opposite trend. This suggests that pretraining data composition heavily dictates an LLM's multi-HDL capability.
- VHDL Semantics Expose Unique Failure Modes: LLMs frequently struggle with VHDL's strict sequential analysis rules (e.g., compiling a lower-level entity before it is instantiated by a higher-level module) and signal initialization, leading to unique compilation errors that do not occur in Verilog.
- The Testbench Generation Trap: During automated dataset creation, a major hazard is that the LLM might write a perfectly correct hardware design (DUT) but fail the evaluation because it generated a buggy, self-checking testbench (e.g., wrong timing or incorrect hard-coded constants).
Key Results
- Top Performer: Gemini 3 Pro Preview dominated the benchmark, achieving the highest scores across all metrics, including a Pass@1 of 84.95% and a Pass@5 of 90.29%.
- Lowest Performer: GLM 4.6v struggled significantly, trailing behind the cohort with a Pass@1 of 62.14%.
- The Reasoning Trade-off: DeepSeek V3.2 Speciale exhibited a high compilation error rate due to "missing design units." This was traced back to its extended reasoning process failing to complete within the generation window, resulting in truncated or incomplete outputs.
Limitations and Future Work
The authors note that the automated translation process sometimes over-prescribes implementation details (like specific signal names or state counts) in the final prompts. This can artificially lower the difficulty of the problems by guiding the model too closely.
Future work will focus on optimizing token efficiency during translation, expanding the pipeline to support a wider variety of HDLs, and introducing benchmarks specifically designed to test advanced VHDL features like packages, generics, records, and explicit type conversions.
Summary updated