potentialpaper

HDL-RepoBench: Multi-Paradigm Repository-Level Code Completion for Hardware Design Languages

Qingyun Zou, Jiahao Cui, Nuo Chen, Bingsheng He, Weng-Fai Wong

NeurIPS 2026

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Large language models (LLMs) have achieved strong performance on code completion in general-purpose programming languages, but existing repository-level benchmarks focus almost exclusively on software code and largely overlook hardware description languages. We present HDL-RepoBench, consisting of HDL-RepoBench-Train and HDL-RepoBench-Eval, the first benchmark for multilingual hardware code completion at the repository level with functional evaluation. HDL-RepoBench covers three major hardware design coding styles and annotates each completion target with code-structure-level and hardware-oriented semantic labels derived from concrete syntax tree analysis. Post-training billion-scale code LLMs on HDL-RepoBench-Train enables smaller open-weight models to outperform much larger general-purpose models under matched context windows. Beyond aggregate accuracy, our analysis surfaces four findings that distinguish hardware from software code completion: (i) performance varies sharply across HDLs, with HLS consistently easiest and VHDL hardest across functional pass rate and EM/ES; (ii) hardware accuracy is non-monotonic in code-structure depth, in contrast with the monotonic depth–accuracy curve known for software; (iii) accuracy plateaus once the input context exceeds 2,048 tokens, while software completion continues to benefit from longer context; and (iv) certain repository-level retrievers tuned on software underperform a no-retrieval baseline on HDL repositories because their structural and dependency assumptions are violated by hardware code.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…