betaFeedback

WorksComputer Science

LLM-Assisted Co-Optimization of RTL and Synthesis Algorithms via Bottleneck Analysis

Abstract

Post-synthesis power, performance, and area (PPA) depend jointly on the register-transfer-level (RTL) code and the synthesis algorithms. However, the benefits of RTL optimization may be limited by bottlenecks in synthesis algorithms, and vice versa, leaving opportunities for better PPA unexplored by methods that optimize either level alone. In this work, we present a large language model (LLM)-assisted framework for regional co-optimization of RTL and synthesis algorithms via bottleneck analysis. A key insight behind our approach is that RTL structures and the Boolean networks used in synthesis expose complementary opportunities for addressing bottlenecks that lead to suboptimal PPA in different regions of the circuit. Our bottleneck analysis uses a Gaussian process (GP) to assess whether optimizing RTL or synthesis algorithms is more promising for each region. The GP learns from regional graph representations and PPA feedback. Using the GP's predictions and predictive uncertainty, Bayesian optimization (BO) provides guidance that an LLM Router combines with circuit analysis to choose how to address each region's bottlenecks. Self-improving LLM workers then optimize the RTL or synthesis algorithms in their assigned regions, and their regional changes are greedily integrated into the current design configuration. Experiments on 16 RTL designs show average improvements of 103.27% in worst negative slack (WNS), 1.23% in area, and 13.26% in power relative to the initial designs. These improvements exceed those of the strongest baseline for each metric by 47.80, 2.75, and 13.17 percentage points, respectively.

Introduction

Post-synthesis power, performance, and area (PPA) depend jointly on the quality of register-transfer-level (RTL) code and the effectiveness of synthesis algorithms. Functionally equivalent RTL descriptions can be implemented with different structures, while synthesis algorithms influence how these structures are transformed into gate-level netlists. Extensive research has therefore explored optimization at both levels. RTL optimization restructures arithmetic and control logic to obtain implementations with better post-synthesis PPA. Rule-based approaches use PPA feedback to guide the search for functionally equivalent RTL implementations [1], [2]. More recently, large language models (LLMs) have enabled automated RTL optimization guided by the semantics of circuit operations [3], [4]. Notably, RTLScout [5] rewrites RTL and replaces selected RTL fragments with synthesized netlists. However, it does not try to propose more powerful synthesis algorithms, thus we also classified it as an RTL optimization method. At the synthesis level, algorithms optimize Boolean structures through transformations such as rewriting and resubstitution, followed by technology mapping [6], [7]. Advances in window-based synthesis further expand the exploration of alternative logic structures [8]. Beyond developing individual algorithms, recent studies have investigated automated synthesis algorithm optimization with the help of LLMs [9].

Despite progress at both levels, the benefits of optimizing RTL or synthesis algorithms alone may be limited by unresolved bottlenecks at the other level. Here, a bottleneck is a structure in the RTL or Boolean network that leads to suboptimal timing, area, or power.

Such structures may arise from inefficient arithmetic or control organization in RTL, or persist because the complexity of the resulting Boolean networks makes them difficult for synthesis algorithms to optimize effectively. Different parts of the same design may contain distinct bottlenecks and respond differently to optimization at the two levels. The arithmetic and control computations in Figure 1 illustrate this situation.

Example of RTL and synthesis algorithm optimization for two regions in an arm_cpu2 design

Figure 1. An example of RTL and synthesis algorithm optimization of two regions in an arm_cpu2 design: (a) arithmetic and (b) control regions respond differently to optimization at the two levels. Tables report pre-mapping and-inverter graph (AIG) depth and AND-node counts for the two regions.

The example considers two regions of an arm_cpu2 design, each comprising an RTL code segment and its corresponding subgraphs in the control/data-flow graph (CDFG) and the pre-optimization Boolean network (in AIG format). The formal definition of a region is given in Section II-B. We refer to RTL rewriting and synthesis algorithm optimization as the RTL and SYN optimization branches, respectively. In the arithmetic region computing sum_middle, a carry-select RTL rewrite changes the arithmetic organization, reducing AIG depth from 65 to 45 levels. However, SYN optimization of the same region yields a smaller depth reduction to 61 levels, since RTL adder naturally forms deep carry-propagation logic if the RTL structure is not changed, which cannot be effectively optimized by synthesis algorithms like rewrite alone [10]. In the control region computing wait_en, the SYN worker edits ABC’s rewriting heuristic, raising the candidate subgraph limit from five to eight and the level weight from zero to one. With these edits, balancing reduces AIG depth from 13 to 11 levels, while the RTL rewrite leaves it at 13. These outcomes motivate us to examine, for each region, whether rewriting the RTL or modifying the synthesis algorithm would yield the larger whole-design PPA gain.

To examine such optimization potential at both RTL and SYN levels, we propose an LLM-assisted framework for co-optimization of RTL and synthesis algorithms via bottleneck analysis. We represent each region using its CDFG and AIG to capture computational semantics and logic structure. A Gaussian process (GP) learns from graph neural network (GNN) embeddings of these graphs and the whole-design PPA gains of past trials to predict the gain of each region–branch pair. Bayesian optimization (BO) ranks pairs by predicted gain and uncertainty. An LLM Router combines these guidance with its analysis of the regional graphs’ semantics to assign each regions with a branch to perform optimization. During optimization, RTL LLM workers rewrite the selected RTL, while SYN LLM workers can reorder synthesis passes or edit the heuristics implemented within an ABC pass. Both types of workers are self-improving LLM agents with a reviewer LLM that uses PPA feedback to refine their optimization knowledge for subsequent rounds, consolidating successful strategies and suppressing ineffective ones. The resulting regional changes are greedily integrated into the current design configuration to improve whole-design post-synthesis PPA.

The main contributions of this work are as follows:

  • We propose an LLM-assisted framework that co-optimizes RTL and synthesis algorithms to improve post-synthesis PPA.

  • We develop a bottleneck analysis method that combines LLM reasoning over regional RTL and Boolean structures with GP-guided Bayesian optimization. By incorporating structural information and optimization feedback, the method assigns promising optimization branches to regions with bottlenecks.

  • We develop LLM-based RTL and SYN workers for RTL rewriting and synthesis algorithm optimization. Reviewer feedback refines the workers’ optimization knowledge to improve their ability to optimize subsequent regions. Greedy integration accepts a regional change only if it reduces the current whole-design PPA score.

  • Across 16 RTL designs, our framework achieves average improvements of 103.27% in worst negative slack (WNS), 1.23% in area, and 13.26% in power relative to the initial configurations. These improvements exceed those of the strongest baseline for each metric by 47.80, 2.75, and 13.17 percentage points, respectively.

Preliminaries

We summarize frequently used notation in TABLE I.

RTL and Logic Synthesis

RTL describes computation and control logic; functionally equivalent descriptions can expose different synthesis opportunities and yield different post-synthesis PPA [2, 3]. RTL optimization rewrites arithmetic expressions and control logic while preserving functionality. Rule-based methods search for equivalent implementations through predefined rewrites [1, 2], while LLM-based methods such as RTLRewriter and Dr. RTL use synthesis feedback to guide iterative PPA optimization [3, 11].

Logic synthesis transforms RTL into a gate-level netlist through Boolean optimization and technology mapping [12]. Traditional methods include AIG rewriting and balancing [6] and cut rewriting [13]. Recent work applies LLMs to EDA algorithm optimization [14, 15, 16]; in logic synthesis, Self-Evolved ABC uses LLMs and PPA feedback to improve synthesis algorithms [9]. These optimization levels are complementary: the RTL methods discussed above keep synthesis algorithms fixed, while the synthesis methods keep the input RTL fixed.

NotationExplanation
Dt=(Rt,At)D_t = (R_t, A_t)Design configuration at round tt: RTL source RtR_t and synthesis algorithms AtA_t
S(D)S(D)PPA score used as the optimization objective
NtN_tPost-synthesis netlist of DtD_t
W,T,Area,PW, T, \mathrm{Area}, PWhole-design WNS, TNS, cell area, and power
r∈Rtr \in\mathcal{R}_tAn RTL fragment and the corresponding subgraphs of the full design’s CDFG and AIG. Rt\mathcal{R}_t is the set of candidate regions at round tt
b∈{RTL,SYN}b \in\{\mathrm{RTL}, \mathrm{SYN}\}Optimization branch for region rr
Dt,r,b′D'_{t,r,b}Candidate configuration obtained by optimizing region rr through branch bb from DtD_t
gt(r,b)g_t(r,b)PPA score gain S(Dt)−S(Dt,r,b′)S(D_t) - S(D'_{t,r,b}) from regional optimization

Table 1. TABLE I Frequently used notations.

CDFG and Boolean Network

A control/data-flow graph (CDFG) captures RTL computations and their data and control dependencies. CDFGs and related graph representations support dynamic behavior analysis [17] and PPA estimation [18, 19, 20]. A Boolean network represents the logic derived from RTL during synthesis. We use an and-inverter graph (AIG), which represents Boolean functions using two-input AND nodes and inverting edges. AIG-based synthesis commonly uses algorithms such as rewriting and balancing [6]. As illustrated in Figure 2, a region consists of an RTL fragment and the subgraphs of the full design’s CDFG and AIG that correspond to that fragment.

Figure 2. Example of a region represented by its RTL code and corresponding CDFG and AIG subgraphs.

Problem Formulation

We jointly optimize RTL source RtR_t and synthesis algorithms AtA_t through the joint design configuration at round tt:

Dt=(Rt,At),At=[α1,…,αmt],(1)D_t = (R_t, A_t), \qquad A_t = [\alpha_1, \ldots, \alpha_{m_t}], \tag*{(1)}

where each αi\alpha_i specifies a synthesis algorithm (e.g., rewrite). Synthesis produces the post-synthesis netlist NtN_t:

Nt=Synthesis⁡(Rt,At).(2)N_t = \operatorname{Synthesis}(R_t, A_t). \tag*{(2)}

We measure its worst negative slack (WNS) W(Nt)W(N_t), total negative slack (TNS) T(Nt)T(N_t), cell area Area⁡(Nt)\operatorname{Area}(N_t), and power P(Nt)P(N_t). Rt\mathcal{R}_t denotes the candidate region set at round tt.

Across rounds, we select a configuration minimizing the weighted PPA score:

D∗∈arg⁡min⁡D∈{Dt}tS(D),D^{*} \in\mathop{\arg\min}_{D \in\{D_t\}_t} S(D),
S(D)=ωWW−W0W0+ωTT−T0T0+ωAArea−Area0Area0+ωPP−P0P0,(3)\begin{aligned} S(D) ={}& \omega_W \frac{W-W_0}{W_0} + \omega_T \frac{T-T_0}{T_0} \\ &+ \omega_A \frac{\mathrm{Area}-\mathrm{Area}_0}{\mathrm{Area}_0} + \omega_P \frac{P-P_0}{P_0}, \tag*{(3)} \end{aligned}

where W,T,Area,PW,T,\mathrm{Area},P are post-synthesis measurements for D=(R,A)D=(R,A), subscript 0 denotes their values for the initial configuration D0D_0, and ωW,ωT,ωA,ωP>0\omega_W,\omega_T,\omega_A,\omega_P>0 are preference weights. We assume that the initial design violates timing, with W0<0W_0<0 and T0<0T_0<0.

Bottleneck Analysis

Our framework identifies bottlenecks in design regions and assesses whether RTL rewriting or synthesis algorithm optimization is more promising for each region. At round tt, we perform bottleneck analysis using the post-synthesis netlist NtN_t, its associated design configuration Dt=(Rt,At)D_t=(R_t,A_t), and the PPA score S(Dt)S(D_t) to identify bottlenecks in regions, as shown in Figure 3 (a) and (b).

Figure 3. LLM-assisted regional co-optimization of RTL and synthesis algorithms via bottleneck analysis. (a) Candidate regions with associated CDFG and AIG subgraphs, which are encoded using separate GNNs. (b) Active learning uses regional embeddings and PPA feedback to predict PPA gains with a GP and provide BO guidance based on predictions and uncertainty. The LLM Router analyzes bottlenecks by combining this numerical guidance with semantic reasoning to assign regions to RTL/SYN branches. (c) Self-improving worker LLMs optimize assigned regions from a common parent configuration. A reviewer uses the outcomes to refine their optimization knowledge. (d) Regional optimizations are greedily integrated to obtain an updated design configuration.

Section III-A describes how we construct candidate regions and represent their computational and Boolean structures using CDFG and AIG subgraphs, respectively. A Gaussian process (GP) learns from embeddings of these graphs and PPA feedback after regional optimization to assess the potential of each region–branch pair. Bayesian optimization (BO) uses the GP’s predictions and uncertainty to guide region–branch selection. The LLM Router combines this guidance with structural and semantic reasoning over the regional graphs to make the final branch assignments (Section III-B).

Graph Representation for Bottleneck Analysis

We model both the RTL computational structure and the AIG logic structure of each region to characterize optimization opportunities at the two levels. We first convert the current RTL RtR_t into a CDFG and partition it into logic-cone regions, forming the candidate region set Rt\mathcal{R}_t. Each region r∈Rtr \in\mathcal{R}_t comprises a portion of RTL source code implementing that local logic cone, together with its corresponding CDFG subgraph GrCDFGG_r^{\mathrm{CDFG}} and pre-optimization AIG subgraph GrAIGG_r^{\mathrm{AIG}}.

We use separate graph encoders to model the CDFG and AIG structures. The CDFG encoder captures RTL computation and control structure using operator type, bit width, signedness, and sequential roles as node attributes, with edges distinguishing data and control dependencies. The AIG encoder captures Boolean logic structure through the connectivity of two-input AND nodes and edge inversion. In each encoder, message passing aggregates information along graph edges, and mean pooling produces a regional embedding. We train both encoders through self-supervision to reconstruct masked node attributes and predict graph statistics, including operator composition, depth, and fanout, without requiring PPA labels.

We concatenate the two embeddings into a unified structural representation:

zr=[hrCDFG;hrAIG],(4)z_r = [h_r^{\mathrm{CDFG}}; h_r^{\mathrm{AIG}}], \tag*{(4)}

where hrCDFGh_r^{\mathrm{CDFG}} and hrAIGh_r^{\mathrm{AIG}} encode the region’s RTL and AIG structures, respectively. The resulting representation zrz_r provides complementary structural features to actively learn which optimization branches can reduce the PPA score, as later described in Section III-B.

Bottleneck Analysis with GP/BO Guidance and LLM Reasoning

The GP uses regional graph embeddings and feedback from prior trials to predict the whole-design PPA score gain for each region–branch pair. BO uses these predictions and their uncertainty to propose a branch for each region. The LLM Router analyzes the region’s RTL operations, data and control dependencies, and Boolean structure to assess how each branch could address its bottleneck. Drawing on this semantic reasoning and the available BO guidance, the Router determines whether to assign the region to RTL rewriting or synthesis algorithm optimization.

Starting from the parent configuration DtD_t, optimizing region rr through branch bb produces a candidate configuration Dt,r,b′D'_{t,r,b}. We synthesize this configuration and evaluate whole-design PPA to obtain the PPA score gain, defined as the reduction in the whole-design PPA score relative to the parent configuration:

gt(r,b)=S(Dt)−S(Dt,r,b′).(5)g_t(r,b)=S(D_t)-S(D'_{t,r,b}). \tag*{(5)}

Using the regional embedding zrz_r and branch b∈{RTL,SYN}b \in\{\mathrm{RTL},\mathrm{SYN}\} as inputs, the GP directly models the PPA score gain as

gt(r,b)∣f(zr,b)∼N(f(zr,b),σn2),(6)g_t(r,b) \mid f(z_r,b) \sim\mathcal{N}\left(f(z_r,b),\sigma_n^2\right), \tag*{(6)}

where ff is the latent GP gain function and σn2\sigma_n^2 denotes the observation-noise variance. To relate optimization feedback across structurally similar regions to guide branch selection, we use a Matérn-5/2 covariance k5/2k_{5/2} over their graph embeddings:

k((z,b),(z′,b′))=k5/2(δ) 1[b=b′],(7)k((z,b),(z',b')) = k_{5/2}(\delta)\,1[b=b'], \tag*{(7)}
δ=∥z−z′∥2ℓ.\delta= \frac{\lVert z-z'\rVert_2}{\ell}.

Here, ℓ>0\ell> 0 is the kernel length scale. The GP thus predicts the PPA score gain from optimizing a region through a given branch, providing numerical guidance based on PPA feedback from optimizing regions with similar structures.

BO uses the GP posterior to balance exploitation and exploration when proposing region–branch pairs. Let μ(zr,b)\mu(z_r,b) and v(zr,b)v(z_r,b) denote the posterior mean and variance of the latent gain f(zr,b)f(z_r,b). For each feasible region–branch pair (r,b)(r,b), the upper confidence bound is

a(r,b)=μ(zr,b)+κv(zr,b),(8)a(r,b) = \mu(z_r,b) + \kappa\sqrt{v(z_r,b)}, \tag*{(8)}

where κ\kappa controls the exploration–exploitation trade-off. For each candidate region, BO passes its proposed branch and any available acquisition scores to the LLM Router.

The LLM Router also receives the region’s RTL fragment and summaries of its CDFG and AIG. To assess the BO proposal, it examines the region’s RTL operations, control and data dependencies, and Boolean structure. It combines this analysis with the available BO guidance to make the final branch assignment for each selected region, choosing either RTL rewriting or synthesis algorithm optimization. Before optimization feedback is available, the LLM Router bases this choice on circuit semantics and structure.

The selected region–branch pairs are passed to the subsequent co-optimization stage, where each region is optimized through its assigned branch. After evaluating each candidate, we update the GP with its PPA gain gt(r,b)g_t(r,b), the region’s pre-optimization embedding zrz_r, and branch bb. The updated gain predictions and uncertainty inform the acquisition values used in subsequent rounds.

The next section describes how the RTL and SYN workers modify the regional RTL source or synthesis algorithms, respectively, and how the resulting changes are integrated into the current design configuration.

RTL and Synthesis Algorithm Co-Optimization

Following bottleneck analysis, self-improving LLM workers optimize the selected regions through their assigned RTL or SYN branches, as illustrated in Figure 3 (c). At round tt, all regional optimizations start from the same parent configuration Dt=(Rt,At)D_t=(R_t,A_t). We then greedily integrate optimized RTL code and synthesis algorithm changes for regions, as shown in Figure 3 (d). The resulting design configuration Dt+1D_{t+1} produces the netlist and PPA reports for the next round.

RTL and Synthesis Algorithm Optimization with Self-Improving LLM Workers

Each worker uses its branch-specific optimization knowledge to optimize the regions assigned to it by the LLM Router. Let Ktb\mathcal{K}_t^b denote the optimization knowledge for branch bb at round tt. The RTL worker rewrites only the RTL source code implementing the selected region. The SYN worker holds RtR_t fixed and applies its modified synthesis algorithm only to the AIG subgraph of the selected region. For each selected region–branch pair (r,b)(r,b), the worker uses this knowledge to generate a candidate configuration from the common parent DtD_t:

Dt,r,b′=Worker⁡b(Dt,r,Ktb).(9)D'_{t,r,b}=\operatorname{Worker}_b(D_t,r,\mathcal{K}_t^b). \tag*{(9)}

Each candidate applies only the selected region’s changes and undergoes functional equivalence checking before synthesis and whole-design PPA evaluation. Its score gain gt(r,b)=S(Dt)−S(Dt,r,b′)g_t(r,b)=S(D_t)-S(D'_{t,r,b}) measures the effect of the regional optimization relative to the parent configuration.

As optimization proceeds, obtaining further score gains from previously optimized regions can become harder, motivating refinement of the workers’ optimization knowledge. Inspired by TextGrad [21], we treat Ktb\mathcal{K}_t^b as a textual variable. The reviewer uses the parent configuration, the regional transformations, and their PPA gains to generate textual refinements of the current knowledge.

Kt+1b=Reviewer⁡(Ktb,Dt,{(Dt,r,b′,gt(r,b))}r).(10)\mathcal{K}_{t+1}^b=\operatorname{Reviewer}\left(\mathcal{K}_t^b,D_t,\left\{\left(D'_{t,r,b},g_t(r,b)\right)\right\}_r\right). \tag*{(10)}

Here, rr ranges over the evaluated regions assigned to branch bb at round tt. The resulting natural-language feedback consolidates successful optimization strategies and suppresses ineffective ones based on their observed PPA outcomes. The workers use the updated knowledge Kt+1b\mathcal{K}_{t+1}^b in the next round.

Design Configuration Update via Regional Integration

As shown in Figure 3 (d), after PPA evaluation, we select the MM candidate configurations {Dt,ri,bi′}i=1M\{D'_{t,r_i,b_i}\}_{i=1}^{M} with positive PPA score gains for integration. We next integrate the regional changes to form the next design configuration Dt+1D_{t+1}. However, combining regional changes can alter their effects on the synthesized design, so a change that improves the score on its own may lose that benefit after integration, given the NP-hard nature of synthesis [22]. In our setting, exhaustive integration can involve up to 2M2^M candidate combinations, with each feasible combination requiring whole-design synthesis and PPA evaluation. To limit this evaluation cost, our greedy strategy considers candidates in descending order of their individual PPA gains and keeps each change only if it reduces the current whole-design PPA score.

For a candidate produced by optimizing region rir_i through branch bib_i, the gain gt(ri,bi)=S(Dt)−S(Dt,ri,bi′)g_t(r_i,b_i)=S(D_t)-S(D'_{t,r_i,b_i}) determines the integration order:

gt(r1,b1)≥gt(r2,b2)≥⋯≥gt(rM,bM)>0.(11)g_t(r_1,b_1) \ge g_t(r_2,b_2) \ge\cdots\ge g_t(r_M,b_M) > 0. \tag*{(11)}

We initialize the current configuration as Dcur=DtD_{\mathrm{cur}}=D_t. At step ii, Integrate⁡(Dcur,ri)\operatorname{Integrate}(D_{\mathrm{cur}},r_i) applies the stored changes from Dt,ri,bi′D'_{t,r_i,b_i} to form a trial configuration DtrialD_{\mathrm{trial}}. We synthesize the trial configuration to evaluate its PPA score. The update is

Dcur{Dtrial,if S(Dtrial)<S(Dcur),Dcur,otherwise.(12)D_{\mathrm{cur}} \left\{ \begin{array}{ll} D_{\mathrm{trial}}, & \text{if } S(D_{\mathrm{trial}})<S(D_{\mathrm{cur}}),\\ D_{\mathrm{cur}}, & \text{otherwise.} \end{array} \right. \tag*{(12)}

After all candidates have been considered, we set Dt+1=DcurD_{t+1}=D_{\mathrm{cur}}. Its netlist and PPA reports support the next round of bottleneck analysis and co-optimization. The next section presents the experimental evaluation of our co-optimization framework.

Experimental Results

Experimental Setup

We collect 16 RTL designs listed in Table II, which contain an average of 1000 lines of RTL code and cover a wide range of applications, including CPU cores, DSPs, control circuits, etc. We use ABC [23] to synthesize all designs with the ASAP7 PDK [24]. We then evaluate the PPA of the resulting netlists using a commercial EDA tool. For each design, we shorten the target clock period TclkT_{\mathrm{clk}} to obtain an initial WNS of approximately −0.4Tclk-0.4T_{\mathrm{clk}}.

DesignInitial WNS ↑Initial TNS ↑Initial Area ↓Initial Power ↓RTLScout [5] WNS ↑RTLScout [5] TNS ↑RTLScout [5] Area ↓RTLScout [5] Power ↓Dr. RTL [11] WNS ↑Dr. RTL [11] TNS ↑Dr. RTL [11] Area ↓Dr. RTL [11] Power ↓Self-Evolved ABC [9] WNS ↑Self-Evolved ABC [9] TNS ↑Self-Evolved ABC [9] Area ↓Self-Evolved ABC [9] Power ↓Ours WNS ↑Ours TNS ↑Ours Area ↓Ours Power ↓
hsm−2.0E3−3.7E56.3E26.7E2−2.0E3−3.7E56.3E26.7E2−1.5E3−3.3E56.4E26.7E2−3.7E3−5.9E56.6E26.7E2−7.0E2−1.1E56.3E25.1E2
DSP−6.7E2−1.3E43.7E23.0E2−2.4E2−2.8E33.5E23.1E23.1E203.6E23.0E2−2.4E1−1.2E24.5E23.1E23.3E203.6E22.5E2
aes−4.9E2−3.2E52.8E35.5E3−9.8E1−6.1E43.0E34.0E3−3.6E2−2.5E52.7E35.3E3−9.8E2−2.9E52.7E35.2E31.1E202.5E33.7E3
arm_cpu1−5.2E3−4.5E62.1E31.0E3−1.6E3−4.1E52.1E31.0E3−1.3E3−2.2E52.1E31.0E3−1.4E3−7.0E52.0E31.0E3−4.7E2−4.1E42.0E38.9E2
arm_cpu2−9.8E2−9.3E48.1E27.8E2−2.7E2−1.1E48.0E27.8E2−3.5E2−3.9E48.1E27.8E2−1.1E3−1.9E58.2E27.8E21.1E208.0E26.6E2
controller−2.1E2−3.4E31.5E16.7E1−7.4E1−1.3E31.5E17.0E1−9.0E1−1.3E31.4E16.4E1−1.5E2−2.8E31.5E16.8E1−6.7E1−8.9E21.4E17.0E1
cpu_fsm−8.9E3−2.0E52.3E32.2E31.7E402.3E32.2E3−8.8E3−2.0E52.3E32.2E3−7.0E3−1.2E52.3E32.2E31.8E402.1E36.6E2
cpu_pipe−3.2E2−1.8E44.6E25.8E2−3.2E2−1.8E44.6E25.8E2−2.8E2−1.5E44.6E25.8E2−9.6E2−1.9E54.8E25.7E2−2.6E2−7.9E34.5E25.6E2
datapath−4.8E2−1.9E58.7E21.6E3−4.8E2−1.9E58.7E21.6E3−4.8E2−1.3E58.6E21.7E3−5.4E2−1.9E58.5E21.6E32.3E208.7E21.5E3
i2c−1.9E2−4.9E39.0E14.3E2−1.5E2−4.3E38.9E14.3E2−8.3E1−2.2E39.0E14.3E2−1.0E2−3.3E39.1E14.4E2−8.2E1−1.6E39.1E14.2E2
router−8.5E2−3.0E53.6E21.6E3−8.5E2−3.0E53.6E21.6E3−8.5E2−3.0E53.6E21.6E3−8.3E2−1.3E53.7E21.6E3−1.2E2−9.3E33.6E21.6E3
simple_spi−2.3E2−6.8E37.9E15.7E2−1.5E2−5.5E37.7E15.7E2−7.3E1−1.9E37.8E15.7E2−1.1E2−3.9E38.1E15.7E2−6.3E1−1.7E37.8E15.7E2
ticket_machine−1.4E2−9.2E24.4E01.1E2−7.0E1−4.9E25.1E01.2E2−7.6E1−5.8E25.2E01.2E2−9.7E1−6.5E24.7E01.1E2−4.4E1−2.9E24.5E01.1E2
fpadd−1.4E3−4.0E42.1E21.3E2−7.3E2−2.1E42.4E21.6E2−3.2E1−7.4E32.1E21.3E2−3.6E2−1.0E42.2E21.2E26.4E102.2E21.2E2
fpmul−9.8E2−1.4E41.7E21.5E2−7.7E2−1.1E41.5E21.4E2−3.7E2−5.4E31.7E21.5E2−8.2E2−1.2E41.8E21.5E2−5.1E1−5.3E21.6E21.4E2
pdpu−3.3E3−4.9E41.1E33.7E2−1.0E3−1.4E41.2E34.0E2−2.7E2−2.2E31.2E33.9E2−2.8E3−4.2E41.1E33.7E23.4E101.2E32.9E2
Average−1.6E3−3.8E57.7E21.0E3−1.3E3−8.8E47.9E29.2E2−1.3E3−1.9E58.0E21.0E3−1.3E3−1.6E57.7E29.8E21.0E3−1.0E47.4E27.5E2
Improvement (%)————55.4744.96−2.43−1.2251.5250.97−1.52−1.012.30−39.61−3.300.09103.2787.631.2313.26

Table II. PPA results of the initial design configurations, RTLScout [5], Dr. RTL [11], Self-Evolved ABC [9], and our method. WNS and TNS are in ps, area in μm2\mu\mathrm{m}^2, and power in μW\mu\mathrm{W}. Bold indicates the best results among the optimization methods, determined using unrounded values. Larger WNS/TNS and smaller area/power are better. For each design, let x0x_0 be its initial value and xx the method’s result. Improvement (%) is calculated as 100(x−x0)/∣x0∣100(x-x_0)/|x_0| for WNS/TNS and 100(x0−x)/x0100(x_0-x)/x_0 for area/power, then averaged over the 16 designs.

In terms of the optimization objective, we consider four metrics: WNS, TNS, area, and power. The score weights in Equation (3) are fixed at (ωW,ωT,ωA,ωP)=(0.4,0.3,0.15,0.15)(\omega_W,\omega_T,\omega_A,\omega_P)=(0.4,0.3,0.15,0.15) for WNS, TNS, area, and power, respectively. We compare our framework with RTL-only optimization methods including Dr. RTL [11] and RTLScout [5], and synthesis-only optimization methods including Self-Evolved ABC [9]. We run 10 optimization rounds and use DeepSeek-V4.1-Flash-1017 as the default backbone LLM for all methods.

Experimental Results

Table II compares the post-synthesis PPA results across all 16 designs. Higher WNS and TNS indicate better timing, whereas lower power and area are preferable. For each design, we compute the percentage improvement over the initial configuration as 100(x−x0)/∣x0∣100(x-x_0)/|x_0| for WNS and TNS, and 100(x0−x)/x0100(x_0-x)/x_0 for power and area, where x0x_0 and xx denote the initial and optimized metric values, respectively. Positive values indicate improvement, and we average these percentages over all 16 designs.

Across the 16 designs in Table II, our framework achieves the highest WNS on every design and matches or exceeds the best baseline TNS on each one. Relative to the initial configurations, our framework achieves average improvements of 103.27% in WNS and 87.63% in TNS. These improvements exceed those of the strongest baseline for each timing metric by 47.80 percentage points for WNS (RTLScout [5]) and 36.66 percentage points for TNS (Dr. RTL [11]).

Across the 16 designs, our framework achieves the largest average improvements in all four metrics, although individual designs exhibit area and power tradeoffs. On DSP, for example, RTLScout uses less area than our framework, while our framework consumes less power. On cpu_fsm, both RTLScout [5] and our framework achieve timing closure, but our implementation consumes 0.66 mW and occupies approximately 2,100 μm2\mu\mathrm{m}^2, compared with 2.2 mW and 2,300 μm2\mu\mathrm{m}^2 for RTLScout. Relative to the initial configurations, our framework reduces area by 1.23% and power by 13.26% on average. RTLScout [5], Dr. RTL [11], and Self-Evolved ABC [9] increase area by 2.43%, 1.52%, and 3.30% on average, respectively. These results support the effectiveness of performing co-optimization with RTL rewriting and synthesis algorithm optimization to improve overall PPA.

To illustrate the efficiency of our framework, we compare the optimization trajectories of ticket_machine in Figure 4. The timing advantage appears in the first round. Our framework reaches a WNS of −61.10 ps and a TNS of −440.31 ps, already surpassing the best final baseline values of −69.76 ps and −494.14 ps, both achieved by RTLScout [5]. By round 5, our design occupies 4.34 μm2\mu\mathrm{m}^2 and consumes 108.23 μW\mu\mathrm{W}, both below the best final baseline values achieved by Self-Evolved ABC [9]. From round 5 onward, our framework outperforms the final configurations of all three baselines on all four metrics.

PPA trajectories for ticket_machine at rounds 0–10

Figure 4. PPA trajectories for ticket_machine at rounds 0–10. Our method achieves best values earlier than baselines.

Case Study

Figure 5 shows how bottleneck analysis guides the choice between RTL rewriting and synthesis algorithm optimization for three regions of arm_cpu2 and how the optimized regions are integrated in a single optimization round. BO proposes an optimization branch for each region. The LLM Router reviews these proposals using the prompt shown in Figure 5 (a) and assigns each region to an RTL or SYN worker. In this round, the RTL workers rewrite the arithmetic region R01 and the decode region R03, and the SYN worker optimizes the synthesis algorithm for the control region R02. Regions R01 and R02 are the two regions shown in Figure 1. After RTL rewriting, the AIG depth of R01 decreases from 65 to 45 levels. Synthesis optimization reduces the AIG depth of R02 from 13 to 11 levels. Greedy integration ranks the candidates by their individual gains. In Figure 5 (b), the current configuration has a whole-design PPA score of −0.315259 after R01 is accepted and −0.467255 after R02 is added. Comparing the word-level comparison in R03 into bit-level logic leaves the synthesized implementation unchanged, so R03 is skipped and the score remains −0.467255. Overall, our framework addresses regional bottlenecks through RTL and synthesis co-optimization with bottleneck analysis and converts regional improvements into whole-design PPA gains through greedy integration.

Figure 5. One round of co-optimization of 3 regions on arm_cpu2: (a) LLM Router prompt; (b) illustration of region-branch assignments, co-optimization, and greedy integration procedures of regions R01, R02 and R03.

Ablation Study

To assess each component’s contribution to PPA, we remove greedy integration, the LLM Router, and active learning from our framework one at a time. Among the four configurations in Figure 6, the ablation experiment without greedy integration yields the smallest average gains in WNS, TNS, and power. Removing greedy integration also shifts the average area change from a 1.23% reduction to a 1.91% increase. This result suggests that regional changes that improve PPA individually can lose their benefit when integrated. Removing either the LLM Router or active learning also reduces gains across all four metrics. For example, the average WNS improvement falls from 103.27% with the full framework to 73.69% without the Router and 72.00% without active learning. These results suggest that a region’s semantics help the Router identify which branch is better suited to its bottleneck, while PPA feedback from earlier rounds with structural embeddings helps it recognize promising region–branch pairs. Together, these components enable the co-optimization framework assign regions with RTL rewriting or synthesis optimization and refine subsequent assignments as it learns which choices improve PPA on the design.

Average improvements in WNS, TNS, area, and power

Figure 6. Average improvements (%) in WNS, TNS, area, and power relative to the initial design configurations.

Conclusion

In this paper, we present an LLM-assisted framework for co-optimization of RTL and synthesis algorithms to improve post-synthesis PPA. Bottleneck analysis assesses whether RTL rewriting or synthesis algorithm optimization is more likely to improve regions in design that lead to sub-optimal PPA. This analysis combines LLM reasoning over regional CDFG and AIG structures with GP-guided Bayesian optimization informed by accumulated PPA feedback. Guided by the analysis, self-improving RTL and SYN workers address the identified bottlenecks through RTL rewriting and synthesis algorithm optimization, respectively. Their regional changes are then greedily integrated into the current design configuration under whole-design PPA evaluation. Across 16 RTL designs, our framework achieves the best WNS, TNS, area, and power compared with RTL-only and synthesis-only methods. By optimizing both RTL and synthesis algorithms with bottleneck analysis, this work takes a step toward the broader vision of co-optimizing hardware designs and EDA algorithms.

References

  1. [1]S. Coward, G. A. Constantinides, and T. Drane, “Automating constraint-aware datapath optimization using e-graphs,” in Proc. DAC, 2023, pp. 1–6.arxiv.org/abs/2303.01839
  2. [2]S. Coward, T. Drane, and G. A. Constantinides, “ROVER: RTL optimization via verified e-graph rewriting,” IEEE TCAD, vol. 43, no. 12, pp. 4687–4700, 2024.arxiv.org/abs/2406.12421
  3. [3]X. Yao, Y. Wang, X. Li, Y. Lian, R. Chen, L. Chen, M. Yuan, H. Xu, and B. Yu, “RTLRewriter: Methodologies for large models aided RTL code optimization,” in Proc. ICCAD, 2024.arxiv.org/abs/2409.11414
  4. [4]Y. Wang, W. Ye, P. Guo, Y. He, Z. Wang, B. Tian, S. He, G. Sun, Z. Shen, S. Chen, A. Srivastava, Q. Zhang, G. Qu, and A. Li, “SymRTLO: Enhancing RTL code optimization with LLMs and neuron-inspired symbolic reasoning,” in Proc. NeurIPS, vol. 38. Curran Associates, Inc., 2025, pp. 50 009–50 118.arxiv.org/abs/2504.10369
  5. [5]F. Arnold, R. Amaudruz, D. Tsaras, R. Andri, and L. Cavigelli, “RTLScout: Joint agentic code and synthesis optimization for efficient digital circuits,” 2026.arxiv.org/abs/2606.06530
  6. [6]A. Mishchenko, S. Chatterjee, and R. Brayton, “DAG-aware AIG rewriting: A fresh look at combinational logic synthesis,” in Proc. DAC, 2006, pp. 532–535.DOI
  7. [7]A. Mishchenko, S. Cho, S. Chatterjee, and R. Brayton, “Combinational and sequential mapping with priority cuts,” in Proc. ICCAD, 2007, pp. 354–361.
  8. [8]H. Riener, S.-Y. Lee, A. Mishchenko, and G. De Micheli, “Boolean rewriting strikes back: Reconvergence-driven windowing meets resynthesis,” in Proc. ASPDAC, 2022, pp. 395–402.DOI
  9. [9]C. Yu and H. Ren, “Autonomous evolution of EDA tools: Multi-agent self-evolved ABC,” in Proc. DAC. ACM, 2026.arxiv.org/abs/2604.15082
  10. [10]Y. Ma, S. Roy, J. Miao, J. Chen, and B. Yu, “Cross-layer optimization for high speed adders: A pareto driven machine learning approach,” IEEE TCAD, 2019.arxiv.org/abs/1807.07023
  11. [11]W. Fang, Y. Lu, S. Liu, J. Wang, Z. Guo, J. He, F. Tu, and Z. Xie, “Dr. RTL: Autonomous agentic RTL optimization through tool-grounded self-improvement,” 2024.
  12. [12]R. Brayton and A. Mishchenko, “ABC: An academic industrial-strength verification tool,” in Proc. CAV. Springer, 2010, pp. 24–40.DOI
  13. [13]H. Riener, W. Haaswijk, A. Mishchenko, G. De Micheli, and M. Soeken, “On-the-fly and DAG-aware: Rewriting boolean networks with exact synthesis,” in Proc. DATE, 2019, pp. 1649–1654.DOI
  14. [14]A. Ghose, A. B. Kahng, and B. Pramanik, “Special research session: Progress and roadmap toward an automated EDA R&D engineer,” in Proc. DAC. ACM, 2026.DOI
  15. [15]K. Zhu, “Provably good Prim-Dijkstra revisited: New theory and a practical algorithm for a classical VLSI routing problem with LLMs,” 2026.arxiv.org/abs/2607.17005
  16. [16]H. Liu, L. Zhou, Y. Ren, Y. Wu, and Z. Wang, “GoalEvolve: From handcrafted algorithm priors to goal-driven evolution of physical design algorithms,” 2026.arxiv.org/abs/2608.16733
  17. [17]R. Ma, Y. Zhou, Y. Wang, Y. Liu, Z. Shi, Z. Zheng, K. Chen, Z. He, L. Yan, G. Chen, Q. Xu, and G. Luo, “DynamicRTL: RTL representation learning for dynamic circuit behavior,” in Proc. AAAI, vol. 40, no. 1, 2026, pp. 836–843.arxiv.org/abs/2511.09593
  18. [18]Y. Liu, H. Zhang, Y. Wang, D. Tsaras, L. Chen, M. Yuan, and Q. Xu, “Beyond tokens: Enhancing RTL quality estimation via structural graph learning,” in Proc. ICML, ser. Proceedings of Machine Learning Research, vol. 306. PMLR, 2026, pp. 79 855–79 876.arxiv.org/abs/2508.18730
  19. [19]C. Xu, C. Kjelqvist, and L. W. Wills, “Sns’s not a synthesizer: a deep-learning-based synthesis predictor,” in Proc. ISCA, 2022, pp. 847–859.DOI
  20. [20]W. Fang, Y. Lu, S. Liu, Q. Zhang, C. Xu, L. W. Wills, H. Zhang, and Z. Xie, “Masterrtl: A pre-synthesis ppa estimation framework for any rtl design,” in Proc. ICCAD. IEEE, 2023, pp. 1–9.arxiv.org/abs/2311.08441
  21. [21]M. Yuksekgonul, F. Bianchi, J. Boen, S. Liu, Z. Huang, C. Guestrin, and J. Zou, “TextGrad: Automatic “differentiation” via text,” arXiv preprint arXiv:2406.07496, 2024. [Online]. Available: https://arxiv.org/abs/2406.07496
  22. [22]W.-N. Li, A. Lim, P. Agrawal, and S. Sahni, “On the circuit implementation problem,” IEEE transactions on computer-aided design of integrated circuits and systems, vol. 12, no. 8, pp. 1147–1156, 1993.
  23. [23]R. Brayton and A. Mishchenko, “Abc: An academic industrial-strength verification tool,” in International Conference on Computer Aided Verification. Springer, 2010, pp. 24–40.DOI
  24. [24]X. Xu, N. Shah, A. Evans, S. Sinha, B. Cline, and G. Yeric, “Standard cell library design and optimization methodology for asap7 pdk,” in Proc. ICCAD, 2017, pp. 999–1004.

Paper details

vlnc:W_tvcz6km9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents