DeepRTL: Bridging Verilog Understanding and Generation with a Unified Representation Model

Yi Liu, Changran Xu, Yunhao Zhou, Zeju Li, Qiang Xu
2/12/2026

No official code found. Best implementation: PeterLau61/DeepRTL (18 stars, last commit 2025-12-18).

Abstract

Recent advancements in large language models (LLMs) have shown significant potential for automating hardware description language (HDL) code generation from high-level natural language instructions. While fine-tuning has improved LLMs' performance in hardware design tasks, prior efforts have largely focused on Verilog generation, overlooking the equally critical task of Verilog understanding. Furthermore, existing models suffer from weak alignment between natural language descriptions and Verilog code, hindering the generation of high-quality, synthesizable designs. To address these issues, we present DeepRTL, a unified representation model that excels in both Verilog understanding and generation. Based on CodeT5+, DeepRTL is fine-tuned on a comprehensive dataset that aligns Verilog code with rich, multi-level natural language descriptions. We also introduce the first benchmark for Verilog understanding and take the initiative to apply embedding similarity and GPT Score to evaluate the models' understanding capabilities. These metrics capture semantic similarity more accurately than traditional methods like BLEU and ROUGE, which are limited to surface-level n-gram overlaps. By adapting curriculum learning to train DeepRTL, we enable it to significantly outperform GPT-4 in Verilog understanding tasks, while achieving performance on par with OpenAI's o1-preview model in Verilog generation tasks.

View on arXivView PDF

Code Implementations(1)

PeterLau61/DeepRTLCommunity69%

The official implementation of DeepRTL: Bridging Verilog Understanding and Generation with a Unified Representation Model (ICLR 2025)

182Mar 11, 202510 months ago

Similar Papers

Cite this paper

@article{liu2026deeprtl,
  title  = {DeepRTL: Bridging Verilog Understanding and Generation with a Unified Representation Model},
  author = {Yi Liu and Changran Xu and Yunhao Zhou and Zeju Li and Qiang Xu},
  year   = {2026},
  eprint = {2502.15832},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.15832},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.15832.svg)](https://codeofpaper.com/paper/2502.15832)

Discussion