Abstract
As the demand for specialized AI accelerators grows, the bottleneck in hardware engineering has shifted from raw performance to the human effort required for design and verification. This paper explores the potential of Large Language Models (LLMs) to automate hardware documentation through the "RTL-to-NL" task—translating complex Register-Transfer Level (RTL) code into human-readable natural language. By analyzing current model capabilities and the unique constraints of hardware description languages, the authors identify critical gaps in data availability, structural reasoning, and evaluation metrics.
The Hardware Bottleneck
In the race to build custom hardware accelerators like TPUs and specialized NPUs, the design process remains stubbornly manual. Engineers currently spend up to 70% of their time on verification and debugging. A significant portion of this time is dedicated to "interpretability": understanding what a specific block of RTL code, such as Verilog, is intended to do. This challenge is compounded by High-Level Synthesis (HLS) tools, which often generate logic that is functionally correct but humanly "unintelligible."
The RTL-to-NL Framework
The researchers define the RTL-to-NL task as a bridge to scale hardware design. Unlike standard software code summarization, hardware translation requires models to master three unique domains:
- Structural Reasoning: Understanding that RTL defines physical structures like gates and wires rather than just logical sequences.
- Concurrency: Recognizing that multiple blocks of code execute simultaneously in hardware.
- Foundational Logic: Developing an "internal physics engine" to grasp concepts like propagation delays and clock edges.
The Hardware Data Drought
A primary hurdle for training effective hardware-aware LLMs is the severe lack of open-source data. The footprint of hardware description languages on platforms like GitHub is orders of magnitude smaller than that of traditional software languages.
With a 129x difference in file counts between Java and Verilog, pre-training models from scratch for the hardware domain is nearly impossible without sophisticated synthetic data pipelines.
The Complexity of Hardware Descriptions
Hardware descriptions are inherently verbose. A simple algorithm that requires only a few hundred tokens in C can expand into tens of thousands of tokens in hand-written Verilog. This problem reaches an extreme with HLS-generated code, which can be 10x to 100x larger than hand-written counterparts.
This "wordiness" often exceeds the context windows of current LLMs, leading to a "lost in the middle" problem where the core logic is buried under thousands of lines of boilerplate code.
Evaluation and Future Directions
The authors argue that standard NLP metrics like BLEU or ROUGE are misleading for hardware. In RTL, a single missing "reset" signal—representing a tiny fraction of the text—can lead to catastrophic failure. To address this, they propose "Round-Trip Correctness": using one LLM to translate RTL to NL, and a second LLM to reconstruct the original RTL from that description. If the reconstructed logic is equivalent, the description is deemed successful.
Future research directions include: * LLM-Aware EDA Tools: Designing synthesis tools that prioritize human and model readability. * Specialized Tokenizers: Creating tokenizers that can compress repetitive hardware patterns to save context space. * Synthetic Data Pipelines: Using verification tools to automatically generate high-quality training data.
Summary updated