arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.31040cs.LG
收藏

UniRTL:统一代码和图以实现稳健的RTL表示学习

UniRTL: Unifying Code and Graph for Robust RTL Representation Learning

Department of Computer Science and Engineering, The Chinese University of Hong Kong, Hong Kong SAR(计算机科学与工程系,香港中文大学,香港特别行政区);Noah's Ark Lab, Huawei, Hong Kong SAR(华为诺亚实验室,香港特别行政区)

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

AI总结:

提出UniRTL多模态预训练框架,通过互掩码建模和分层训练策略联合利用RTL代码与控制数据流图,实现细粒度对齐,在性能预测和代码检索任务上优于现有方法。

摘要:

为寄存器传输级(RTL)设计开发有效的表示对于加速硬件设计工作流至关重要。然而,现有方法通常依赖于单一数据模态,即RTL代码或其相关的基于图的表示,限制了所学表示的表达能力和泛化能力。对于RTL,控制数据流图(CDFG)提供了保留完整信息的全面结构表示,而代码模态显式编码了语义和功能信息。我们认为,整合这些互补模态对于全面理解RTL设计至关重要。为此,我们提出UniRTL,一种多模态预训练框架,通过联合利用代码和CDFG学习统一的RTL表示。UniRTL通过互掩码建模实现代码和图之间的细粒度对齐,并采用分层训练策略,该策略结合了预训练的图感知分词器以及在图集成之前对文本(即功能摘要)和代码进行分阶段对齐。我们在两种下游任务(性能预测和代码检索)的多种设置下评估UniRTL。实验结果表明,UniRTL始终优于先前的方法,使其成为推进硬件设计自动化的更稳健和更强大的基础。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑