Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

UniRTL: Unifying Code and Graph for Robust RTL Representation Learning

About

Developing effective representations for register transfer level (RTL) designs is crucial for accelerating the hardware design workflow. Existing approaches, however, typically rely on a single data modality, either the RTL code or its associated graph-based representation, limiting the expressiveness and generalization ability of the learned representations. For RTL, the control data flow graph (CDFG) offers a comprehensive structural representation that preserves complete information, while the code modality explicitly encodes semantic and functional information. We argue that integrating these complementary modalities is essential for a thorough understanding of RTL designs. To this end, we propose UniRTL, a multimodal pretraining framework that learns unified RTL representations by jointly leveraging code and CDFG. UniRTL achieves fine-grained alignment between code and graph through mutual masked modeling and employs a hierarchical training strategy that incorporates a pretrained graph-aware tokenizer and staged alignment of text (i.e., functional summary) and code prior to graph integration. We evaluate UniRTL on two downstream tasks, performance prediction and code retrieval, under multiple settings. Experimental results show that UniRTL consistently outperforms prior methods, establishing it as a more robust and powerful foundation for advancing hardware design automation.

Yi Liu, Hongji Zhang, Lei Chen, Mingxuan Yuan, Qiang Xu• 2026

Related benchmarks

TaskDatasetResultRank
Natural Language Code SearchRTL code search benchmark
F1 Score66.2
17
RTL code functionality equivalence checkingDeepRTL2 Benchmark
AP74.5
17
RTL Area PredictionDeepRTL2
MAE0.3362
13
RTL Delay PredictionDeepRTL 2
MAE0.2302
13
Post-synthesis Area PredictionStructRTL SkyWater 130nm (val)
MAE0.351
12
Post-synthesis Delay PredictionStructRTL SkyWater 130nm (val)
MAE0.3384
12
Showing 6 of 6 rows

Other info

Follow for update