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.

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.
| Notation | Explanation |
| Design configuration at round : RTL source and synthesis algorithms | |
| PPA score used as the optimization objective | |
| Post-synthesis netlist of | |
| Whole-design WNS, TNS, cell area, and power | |
| An RTL fragment and the corresponding subgraphs of the full design’s CDFG and AIG. is the set of candidate regions at round | |
| Optimization branch for region | |
| Candidate configuration obtained by optimizing region through branch from | |
| PPA score gain 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 and synthesis algorithms through the joint design configuration at round :
where each specifies a synthesis algorithm (e.g., rewrite). Synthesis produces the post-synthesis netlist :
We measure its worst negative slack (WNS) , total negative slack (TNS) , cell area , and power . denotes the candidate region set at round .
Across rounds, we select a configuration minimizing the weighted PPA score:
where are post-synthesis measurements for , subscript 0 denotes their values for the initial configuration , and are preference weights. We assume that the initial design violates timing, with and .
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 , we perform bottleneck analysis using the post-synthesis netlist , its associated design configuration , and the PPA score 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 into a CDFG and partition it into logic-cone regions, forming the candidate region set . Each region comprises a portion of RTL source code implementing that local logic cone, together with its corresponding CDFG subgraph and pre-optimization AIG subgraph .
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:
where and encode the region’s RTL and AIG structures, respectively. The resulting representation 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 , optimizing region through branch produces a candidate configuration . 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:
Using the regional embedding and branch as inputs, the GP directly models the PPA score gain as
where is the latent GP gain function and 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 over their graph embeddings:
Here, 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 and denote the posterior mean and variance of the latent gain . For each feasible region–branch pair , the upper confidence bound is
where 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 , the region’s pre-optimization embedding , and branch . 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 , all regional optimizations start from the same parent configuration . We then greedily integrate optimized RTL code and synthesis algorithm changes for regions, as shown in Figure 3 (d). The resulting design configuration 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 denote the optimization knowledge for branch at round . The RTL worker rewrites only the RTL source code implementing the selected region. The SYN worker holds fixed and applies its modified synthesis algorithm only to the AIG subgraph of the selected region. For each selected region–branch pair , the worker uses this knowledge to generate a candidate configuration from the common parent :
Each candidate applies only the selected region’s changes and undergoes functional equivalence checking before synthesis and whole-design PPA evaluation. Its score gain 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 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.
Here, ranges over the evaluated regions assigned to branch at round . 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 in the next round.
Design Configuration Update via Regional Integration
As shown in Figure 3 (d), after PPA evaluation, we select the candidate configurations with positive PPA score gains for integration. We next integrate the regional changes to form the next design configuration . 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 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 through branch , the gain determines the integration order:
We initialize the current configuration as . At step , applies the stored changes from to form a trial configuration . We synthesize the trial configuration to evaluate its PPA score. The update is
After all candidates have been considered, we set . 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 to obtain an initial WNS of approximately .
| Design | Initial 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.7E5 | 6.3E2 | 6.7E2 | −2.0E3 | −3.7E5 | 6.3E2 | 6.7E2 | −1.5E3 | −3.3E5 | 6.4E2 | 6.7E2 | −3.7E3 | −5.9E5 | 6.6E2 | 6.7E2 | −7.0E2 | −1.1E5 | 6.3E2 | 5.1E2 |
| DSP | −6.7E2 | −1.3E4 | 3.7E2 | 3.0E2 | −2.4E2 | −2.8E3 | 3.5E2 | 3.1E2 | 3.1E2 | 0 | 3.6E2 | 3.0E2 | −2.4E1 | −1.2E2 | 4.5E2 | 3.1E2 | 3.3E2 | 0 | 3.6E2 | 2.5E2 |
| aes | −4.9E2 | −3.2E5 | 2.8E3 | 5.5E3 | −9.8E1 | −6.1E4 | 3.0E3 | 4.0E3 | −3.6E2 | −2.5E5 | 2.7E3 | 5.3E3 | −9.8E2 | −2.9E5 | 2.7E3 | 5.2E3 | 1.1E2 | 0 | 2.5E3 | 3.7E3 |
| arm_cpu1 | −5.2E3 | −4.5E6 | 2.1E3 | 1.0E3 | −1.6E3 | −4.1E5 | 2.1E3 | 1.0E3 | −1.3E3 | −2.2E5 | 2.1E3 | 1.0E3 | −1.4E3 | −7.0E5 | 2.0E3 | 1.0E3 | −4.7E2 | −4.1E4 | 2.0E3 | 8.9E2 |
| arm_cpu2 | −9.8E2 | −9.3E4 | 8.1E2 | 7.8E2 | −2.7E2 | −1.1E4 | 8.0E2 | 7.8E2 | −3.5E2 | −3.9E4 | 8.1E2 | 7.8E2 | −1.1E3 | −1.9E5 | 8.2E2 | 7.8E2 | 1.1E2 | 0 | 8.0E2 | 6.6E2 |
| controller | −2.1E2 | −3.4E3 | 1.5E1 | 6.7E1 | −7.4E1 | −1.3E3 | 1.5E1 | 7.0E1 | −9.0E1 | −1.3E3 | 1.4E1 | 6.4E1 | −1.5E2 | −2.8E3 | 1.5E1 | 6.8E1 | −6.7E1 | −8.9E2 | 1.4E1 | 7.0E1 |
| cpu_fsm | −8.9E3 | −2.0E5 | 2.3E3 | 2.2E3 | 1.7E4 | 0 | 2.3E3 | 2.2E3 | −8.8E3 | −2.0E5 | 2.3E3 | 2.2E3 | −7.0E3 | −1.2E5 | 2.3E3 | 2.2E3 | 1.8E4 | 0 | 2.1E3 | 6.6E2 |
| cpu_pipe | −3.2E2 | −1.8E4 | 4.6E2 | 5.8E2 | −3.2E2 | −1.8E4 | 4.6E2 | 5.8E2 | −2.8E2 | −1.5E4 | 4.6E2 | 5.8E2 | −9.6E2 | −1.9E5 | 4.8E2 | 5.7E2 | −2.6E2 | −7.9E3 | 4.5E2 | 5.6E2 |
| datapath | −4.8E2 | −1.9E5 | 8.7E2 | 1.6E3 | −4.8E2 | −1.9E5 | 8.7E2 | 1.6E3 | −4.8E2 | −1.3E5 | 8.6E2 | 1.7E3 | −5.4E2 | −1.9E5 | 8.5E2 | 1.6E3 | 2.3E2 | 0 | 8.7E2 | 1.5E3 |
| i2c | −1.9E2 | −4.9E3 | 9.0E1 | 4.3E2 | −1.5E2 | −4.3E3 | 8.9E1 | 4.3E2 | −8.3E1 | −2.2E3 | 9.0E1 | 4.3E2 | −1.0E2 | −3.3E3 | 9.1E1 | 4.4E2 | −8.2E1 | −1.6E3 | 9.1E1 | 4.2E2 |
| router | −8.5E2 | −3.0E5 | 3.6E2 | 1.6E3 | −8.5E2 | −3.0E5 | 3.6E2 | 1.6E3 | −8.5E2 | −3.0E5 | 3.6E2 | 1.6E3 | −8.3E2 | −1.3E5 | 3.7E2 | 1.6E3 | −1.2E2 | −9.3E3 | 3.6E2 | 1.6E3 |
| simple_spi | −2.3E2 | −6.8E3 | 7.9E1 | 5.7E2 | −1.5E2 | −5.5E3 | 7.7E1 | 5.7E2 | −7.3E1 | −1.9E3 | 7.8E1 | 5.7E2 | −1.1E2 | −3.9E3 | 8.1E1 | 5.7E2 | −6.3E1 | −1.7E3 | 7.8E1 | 5.7E2 |
| ticket_machine | −1.4E2 | −9.2E2 | 4.4E0 | 1.1E2 | −7.0E1 | −4.9E2 | 5.1E0 | 1.2E2 | −7.6E1 | −5.8E2 | 5.2E0 | 1.2E2 | −9.7E1 | −6.5E2 | 4.7E0 | 1.1E2 | −4.4E1 | −2.9E2 | 4.5E0 | 1.1E2 |
| fpadd | −1.4E3 | −4.0E4 | 2.1E2 | 1.3E2 | −7.3E2 | −2.1E4 | 2.4E2 | 1.6E2 | −3.2E1 | −7.4E3 | 2.1E2 | 1.3E2 | −3.6E2 | −1.0E4 | 2.2E2 | 1.2E2 | 6.4E1 | 0 | 2.2E2 | 1.2E2 |
| fpmul | −9.8E2 | −1.4E4 | 1.7E2 | 1.5E2 | −7.7E2 | −1.1E4 | 1.5E2 | 1.4E2 | −3.7E2 | −5.4E3 | 1.7E2 | 1.5E2 | −8.2E2 | −1.2E4 | 1.8E2 | 1.5E2 | −5.1E1 | −5.3E2 | 1.6E2 | 1.4E2 |
| pdpu | −3.3E3 | −4.9E4 | 1.1E3 | 3.7E2 | −1.0E3 | −1.4E4 | 1.2E3 | 4.0E2 | −2.7E2 | −2.2E3 | 1.2E3 | 3.9E2 | −2.8E3 | −4.2E4 | 1.1E3 | 3.7E2 | 3.4E1 | 0 | 1.2E3 | 2.9E2 |
| Average | −1.6E3 | −3.8E5 | 7.7E2 | 1.0E3 | −1.3E3 | −8.8E4 | 7.9E2 | 9.2E2 | −1.3E3 | −1.9E5 | 8.0E2 | 1.0E3 | −1.3E3 | −1.6E5 | 7.7E2 | 9.8E2 | 1.0E3 | −1.0E4 | 7.4E2 | 7.5E2 |
| Improvement (%) | — | — | — | — | 55.47 | 44.96 | −2.43 | −1.22 | 51.52 | 50.97 | −1.52 | −1.01 | 2.30 | −39.61 | −3.30 | 0.09 | 103.27 | 87.63 | 1.23 | 13.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 , and power in . 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 be its initial value and the method’s result. Improvement (%) is calculated as for WNS/TNS and 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 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 for WNS and TNS, and for power and area, where and 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 , compared with 2.2 mW and 2,300 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 and consumes 108.23 , 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.

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.

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]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]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]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]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]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]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]A. Mishchenko, S. Cho, S. Chatterjee, and R. Brayton, “Combinational and sequential mapping with priority cuts,” in Proc. ICCAD, 2007, pp. 354–361.
- [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]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]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]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]R. Brayton and A. Mishchenko, “ABC: An academic industrial-strength verification tool,” in Proc. CAV. Springer, 2010, pp. 24–40.DOI
- [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]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]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]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]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]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]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]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]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]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]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]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.


