RuC: HDL-Agnostic Rule Completion Benchmark Generation
Arnau Ayguad\'e Domingo, Miquel Alberti-Binimelis, Cristian Gutierrez-Gomez, Emanuele Parisi, Razine Moundir Ghorab, Miquel Moreto, Gokcen Kestor, Dario Garcia-Gasulla

TL;DR
This paper introduces RuC, a grammar-driven benchmark generator for RTL code completion tasks that enables controlled, scalable evaluation of LLMs' understanding of hardware description languages.
Contribution
RuC provides a language-agnostic, rule-selectable framework for generating RTL code completion benchmarks from HDL sources, allowing detailed assessment of LLMs' capabilities.
Findings
Completion performance varies with model type and prompt strategy.
Fill-in-the-Middle prompting yields the highest scores.
Grammar-driven benchmarks are valuable for RTL development evaluation.
Abstract
Large Language Models (LLMs) have rapidly improved in performance across code-related tasks, making their integration into Register Transfer Level (RTL) development increasingly attractive. Mimicking the behavior of inline code assistants, many benchmarks evaluate LLMs' capabilities in code completion, either assessing the generation of entire hardware modules or the completion of a single line within a module. However both of these approaches lack the ability to control the granularity of the code-completion sample size and the syntactic range of completions. To overcome these limitations, we present a framework for language-agnostic rule completion (RuC), a grammar-driven, rule-selectable benchmark generator that automatically produces RTL code-completion tasks from a set of input hardware description sources. RuC uses the target Hardware Description Language (HDL) grammar to mask…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
