RTL++: Graph-enhanced LLM for RTL Code Generation
Mohammad Akyash, Kimia Azar, Hadi Kamali

TL;DR
RTL++ introduces a graph-enhanced LLM approach for RTL code generation, encoding code into control flow and data flow graphs to improve accuracy and understanding, outperforming existing models.
Contribution
It is the first to utilize graph representations of RTL code to enhance LLM-based code generation, addressing data diversity and quality issues.
Findings
RTL++ outperforms state-of-the-art models on VerilogEval benchmark.
Graph-based encoding improves code correctness and diversity.
Experimental results validate the effectiveness of graph-enhanced context.
Abstract
As hardware design complexity escalates, there is an urgent need for advanced automation in electronic design automation (EDA). Traditional register transfer level (RTL) design methods are manual, time-consuming, and prone to errors. While commercial (instruction-tuned) large language models (LLMs) shows promising performance for automation, they pose security and privacy concerns. Open-source models offer alternatives; however, they frequently fall short in quality/correctness, largely due to limited, high-quality RTL code data essential for effective training and generalization. This paper proposes RTL++, a first-of-its-kind LLM-assisted method for RTL code generation that utilizes graph representations of code structures to enhance the quality of generated code. By encoding RTL code into a textualized control flowgraphs (CFG) and data flow graphs (DFG), RTL++ captures the inherent…
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.
Taxonomy
TopicsNatural Language Processing Techniques · Model-Driven Software Engineering Techniques · Service-Oriented Architecture and Web Services
