LLM-guided framework recovers exact high-level RTL from low-level designs
RTLREX: LLM-Guided Framework for Exact High-Level RTL Recovery
Hardware ArchitectureArtificial Intelligence
Summary
Sometimes engineers only have very detailed, low-level circuit descriptions without the original high-level code that explains what the circuit really does. This makes it hard to understand and improve those circuits. The authors created a system called RTLREX that uses a large language model along with specialized tools to rebuild the original high-level design exactly and verify it works perfectly. Their system outperforms previous methods in recovering these designs accurately and more simply.
What this means in practice
- •For hardware design engineers: Recover original high-level RTL from gate-level netlists to understand and modify circuits without original source code.
- •For electronic design automation teams: Improve RTL rewriting and resynthesis workflows by providing verified equivalent high-level models derived from low-level circuit representations.
Authors
Wuqian Tang, Fangzhou Liu, Ruijie Wang, TingTing Hwang, Bei Yu, Chun-Yao Wang
Abstract
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 model 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 candidate RTL, 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.