arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.10798cs.ARcs.AI
收藏

RTLREX:由大语言模型引导的精确高级寄存器传输级(RTL)恢复框架

RTLREX: LLM-Guided Framework for Exact High-Level RTL Recovery

National Tsing Hua University(清华大学);The Chinese University of Hong Kong(香港中文大学)

Wuqian Tang, Fangzhou Liu, Ruijie Wang, TingTing Hwang, Bei Yu, Chun-Yao Wang

AI总结:

RTLREX是LLM引导的框架,可从门级网表等低级表示精确恢复高级RTL,在ICCAD 2022等基准测试中恢复覆盖率优于WolFEx,且显著降低语法成本。

摘要:

当原始寄存器传输级(RTL)设计及其文档不可访问时,硬件设计可能仅以门级网表或输入输出描述的形式存在。低级表示会模糊字级计算及其有限位宽行为,因此从这类表示中恢复高级RTL有助于工程师理解电路功能,并实现RTL重写与重综合。仅合理的功能模型不够,除非生成的RTL在所有输入组合下都与原始电路等价。本文提出RTLREX,这是一个由大语言模型(LLM)引导的框架,它协调特定领域工具完成功能恢复、RTL生成、独立验证和成本引导重写。独立验证用于建立恢复的RTL与原始电路的等价性。LLM利用工具反馈选择进一步分析、修改候选RTL并提出语法成本降低方案。在ICCAD 2022 CAD竞赛A题的30个基准测试上的实验表明,RTLREX为所有基准测试恢复了等价的高级RTL,在恢复覆盖率上超越了最先进方法WolFEx;在两种方法均恢复的基准测试上,RTLREX相比WolFEx将平均语法成本降低了20.5%;在IWLS 2026竞赛的完整真值表基准测试上,在两种方法均验证的基准测试中,我们的框架相比LLM智能体基线将平均语法成本降低了95.7%。

英文摘要:

Hardware designs may be available only as gate-level netlists or input-output descriptions when the original register-transfer-level (RTL) design and documentation are not accessible. Low-level representations obscure word-level computation and its finite-width behavior. Recovering high-level RTL from such representations therefore helps engineers understand a circuit's functionality and enables RTL rewriting and resynthesis. A plausible function candidate is also insufficient unless the generated RTL is equivalent to the original circuit for all input combinations. In this paper, we present RTLREX, a large language model (LLM)-guided framework that coordinates domain-specific tools for function recovery, RTL generation, independent verification, and cost-guided rewriting. Independent verification establishes equivalence between the recovered RTL and the original circuit. The LLM uses tool feedback to select further analyses, revise RTL candidates, and propose syntax-cost reductions. Experiments on 30 benchmarks from Problem A of the ICCAD 2022 CAD Contest show that RTLREX recovers equivalent high-level RTL for all benchmarks, surpassing the state-of-the-art method WolFEx in recovery coverage. On benchmarks recovered by both methods, RTLREX reduces mean syntax cost by 20.5% relative to WolFEx. On complete truth-table benchmarks from the IWLS 2026 Contest, our framework reduces mean syntax cost by 95.7% relative to an LLM agent baseline on the benchmarks validated by both methods.

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

↑