DeepRTL: Bridging Verilog Understanding and Generation with a Unified Representation Model
Yi Liu, Changran Xu, Yunhao Zhou, Zeju Li, Qiang Xu

TL;DR
DeepRTL is a unified model based on CodeT5+ that improves both understanding and generation of Verilog code from natural language, addressing previous weak alignment issues and introducing new benchmarks and evaluation metrics.
Contribution
The paper introduces DeepRTL, the first unified model for Verilog understanding and generation, along with a new benchmark and semantic evaluation metrics.
Findings
DeepRTL outperforms GPT-4 in Verilog understanding tasks.
DeepRTL achieves comparable performance to OpenAI's o1-preview in Verilog generation.
New benchmarks and metrics better capture semantic understanding of Verilog code.
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…
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
Taxonomy
TopicsSoftware Engineering Research · Machine Learning in Materials Science · Adversarial Robustness in Machine Learning
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Absolute Position Encodings · Linear Layer · Layer Normalization · Dense Connections · Attention Dropout · Residual Connection · Discriminative Fine-Tuning · Label Smoothing
