Abstract
Analytical floorplanning algorithms are prone to local convergence and struggle to generate high-quality results; therefore, this paper proposes a nonsmooth analytical placement model and develops a Q-learning-assisted conjugate subgradient algorithm (CSAQ) for efficient floorplanning that addresses these issues. By integrating a population-based strategy and an adaptive step size adjustment driven by Q-learning, the CSAQ strikes a balance between exploration and exploitation to avoid suboptimal solutions in fixed-outline floorplanning scenarios. Experimental results on the MCNC and GSRC benchmarks demonstrate that the proposed CSAQ not only effectively solves global placement planning problems but also significantly outperforms existing constraint graph-based legalization methods, as well as the improved variants, in terms of the efficiency of generating legal floorplans. For hard module-only placement scenarios, it exhibits competitive performance compared to the state-of-the-art algorithms.
1. Introduction
Floorplanning is a key stage in the physical design flow of very large-scale integration (VLSI) circuits and printed circuit Boards (PCB) [1]. With the rapid development of integrated circuit manufacturing technology, the complexity of VLSI/PCB design has increased dramatically, and modern design usually focuses on fixed-outline floorplanning (FOFP) problems [2]. Compared to layout planning problems without a fixed outline, the FOFP problem is more challenging, due to the additional constraint of placing a large number of modules within a given outline [3]. Additionally, the usage of an intellectual property (IP) core introduces hard modules into the VLSI floorplan, making it much more challenging to optimize the fixed-outline floorplan of mixed-size modules [4].
Floorplanning algorithms generally fall into two categories: floorplanning algorithms based on the combinatorial optimization model (FA-COMs) and floorplanning algorithms based on the analytic optimization model (FA-AOMs). By coding the relative positions of modules by combinatorial data structures, FA-COMs formulate floorplanning problems as combinatorial optimization problems addressed by heuristics and metaheuristics [5,6,7,8]. Although the combinatorial codes can be naturally converted into compact floorplans complying with the nonoverlapping constraint, the combinatorial explosion results in poor performance on large-scale cases. A remedy for this is to implement multilevel methods in which clustering or partitioning strategies are introduced to reduce the scale of the problem [3,9,10]. However, multilevel strategies typically optimize the placement in a local way, which, in turn, makes it difficult to converge to the globally optimal placement of VLSI and PCB designs.
FA-AOMs address analytical floorplanning models with continuous optimization algorithms, contributing to their low complexity and fast convergence in large-scale cases [11]. A typical FA-AOM consists of two stages: the global floorplanning stage, generating promising results, and the legalization stage that refines the positions of modules to eliminate constraint violations. However, the cooperative design of global floorplanning and legalization is extremely challenging due to the multimodal nonsmooth characteristics of floorplanning models. Global floorplanning is typically implemented by addressing a smoothed optimization model with a first-order gradient-based analytical algorithm [12,13]; however, the smoothing approximation can introduce some distortion to the characteristics of the mathematical model, and the first-order analytical algorithm usually converges to a local optimal solution. Legalization can be implemented through the refinement of constraint graphs [12,13] or the second-order cone programming strategy [14], which usually leads to a relatively high complexity that hinders their application in large-scale scenarios.
To address the fixed-outline floorplanning problem efficiently, this paper proposes a fixed-outline floorplanning algorithm based on the conjugate subgradient algorithm (CSA) where Q-learning is introduced to adaptively regulate the step size of the CSA. The main contributions of this paper are as follows:
- The nonsmooth wirelength and overlapping metrics are directly optimized by the CSA. Since the CSA searches the solution space using both a deterministic gradient-based search and stochastic exploration, it is much more likely to obtain the optimal floorplan by flexibly regulating its step size.
- The CSA is implemented in a population-based search pattern equipped with a dynamical step size regulated based on Q-learning, which contributes to its fast convergence to the optimal floorplan.
- Two improved variants are proposed for the CG-based legalization algorithm [12,13]. They take less time to obtain legal floorplans with a shorter wirelength.
- We propose a CSA-based fixed-outline floorplanning (CSF) algorithm where both global floorplanning and legalization are implemented by the CSA assisted by Q-learning (CSAQ). It strikes a balance between time complexity and floorplan quality, demonstrating competitive performance among the compared algorithms.
The remainder of this paper is organized as follows: Section 2 reviews related work. Section 3 introduces some preliminaries. Then, the proposed algorithm developed for fixed-outline floorplanning problems is presented in Section 4. The numerical experiment is performed in Section 5 to demonstrate the competitiveness of the proposed algorithm, and, finally, this paper is concluded in Section 6.
2. Related Work
By formulating the floorplanning problem as an analytic optimization model, Zhan et al. [15] constructed an algorithm framework consisting of a global floorplanning stage and a legalization stage which exhibited performance superior to Parquet-4 based on sequence pairs and simulated annealing [3]. Lin and Hung [14] modeled global floorplanning as a convex optimization problem where modules are transformed into circles, and a push–pull mode was proposed with consideration of wirelength. Then, second-order cone programming was deployed to legalize the floorplan. By incorporating the electrostatic field model proposed in eplace [16], a celebrated algorithm for standard cell placement of VLSI, Li et al. [13] created an analytic floorplanning algorithm for large-scale floorplanning cases. Then, a horizontal constraint graph (HCG) and a vertical constraint graph (VCG) were constructed to eliminate overlap of the floorplanning results. Huang et al. [12] further improved the electrostatics-based analytical method for fixed-outline floorplanning in which module rotation and sizing were introduced to obtain floorplanning results with a shorter wirelength. Yu et al. [17] developed a floorplanning algorithm based on the feasible-seeking approach, achieving better performance than the state-of-the-art floorplanning algorithms.
Since the typical wirelength and overlap metrics of analytical floorplanning models are not smooth, additional smoothing procedures are incorporated to make gradient-based optimization algorithms feasible. Popular smoothing approximation methods for the half-perimeter wirelength (HPWL) include the quadratic model, the logarithm-sum-exponential model, and the -norm model, and the bell-shaped smoothing method can be adopted to smooth the overlap metric [18]. In addition, Ray et al. [19] proposed a nonrecursive approximation to simulate the max function for the nonsmooth HPWL model, and Chan et al. [20] employed a Helmholtz smoothing technique to approximate the density function. However, the additional smoothing process not only introduces the extra time complexity of the FA-AOM, but also leads to its local convergence to a solution significantly different from that of the original nonsmooth model. Zhu et al. [21] proposed addressing the nonsmooth analytical optimization model of cell placement with the CSA, and Sun et al. [22] further developed a CSA-based floorplanning algorithm for scenarios without soft modules.
Recently, reinforcement learning (RL) was introduced to design general floorplanning algorithms. He et al. [23] employed agents guided by the Q-learning algorithm to alleviate the need for sufficient prior human knowledge in the search process. Mirhoseini et al. [24] proposed an RL-based method for chip floorplanning and developed an edge-based graph convolutional neural network architecture capable of learning the transferability of chips. By merging RL with a graph convolutional network (GCN), Xu et al. [25] constructed an end-to-end learning-based floorplanning framework named GoodFloorplan. Yang et al. [26] proposed an end-to-end RL framework for learning a floorplanning policy, and promising results were obtained with the assistance of an edge-augmented graph attention network, a position-wise multilayer perceptron, and a gated self-attention mechanism. Moldenhauer et al. [27] developed an open-source RL environment building upon the gymnasium API and compatible with stable-baselines3. DellaRovere et al. [28] proposed a hybrid method that combines RL with beam search. By constructing a search tree to expand the state space of the RL agent and periodically pruning it, this approach improves key floorplanning metrics such as area and wirelength. The generalization ability of well-trained RL algorithms can facilitate their potential applications in diverse floorplanning scenarios, but it is challenging to achieve the fast convergence of RL-based floorplanning algorithms in the case of inadequate training data.
3. Preliminaries
3.1. The Nonsmooth Analytical Optimization Model of Floorplanning
Let and be the vectors of the x-coordinate and y-coordinate of all modules, respectively. FOFP aims to place modules within a fixed outline such that all of them are mutually nonoverlapping and can be formulated as follows:
where , , and are the analytical metrics of wirelength, overlap, and boundary violation, respectively.
- The Total Wirelength
The total wirelength is here taken as the sum of the half-perimeter wirelength (HWPL):
- The Total Overlapping Area
The sum of the overlapping area is computed by
where and represent the overlapping lengths of module i and j in the X-axis and Y-axis directions, respectively [21]. Denoting , we know that
Denoting , we have
where and represent the width and height of module i.
- The Boundary Violation
For the fixed-outline floorplanning problem, the position of the ith module must meet the following constraints:
where and are the width and height of the fixed outline, respectively. They can be manually assigned or generated by
where A is the area sum of the modules, R is the width–height ratio, and is the ratio of whitespace.
For the boundary violation, we individually define the overflow of each module across the four boundaries (left, right, bottom, and top) as
and we define as
Subsequently, we employ the Lagrangian multiplier method to transform (1) into an unconstrained optimization model [22]
where , , and are weight coefficients to be confirmed.
In the global floorplanning stage, our objective is to optimize (8) with tailored parameters , , and . For the legalization stage, the weight of the wirelength function is set to 0 to obtain a legal solution, resulting in
which serves as the objective function for the legalization stage. Then, the nonsmooth objective functions of (8) and (9) are addressed by the CSA [21,22].
3.2. The Conjugate Subgradient Algorithm
The pseudo-code of the CSA is presented in Algorithm 1 [21]. The iteration process of the CSA starts with an initial solution and the subgradient , and the conjugate direction is initialized as . At generation k, the searching direction is determined according to the subgradient and the conjugate direction , and the searching step size is determined by dividing a scaling factor c by the norm of . When solution lies at a nonsmooth point of f, the computation of the subgradient is performed with a random scheme. Thus, the CSA is not necessarily gradient descendant. Consequently, the adaptive regulation of step size plays a critical role and has a significant influence on its convergence performance.
It was proved that the CSA presented in Algorithm 1 can converge to the neighborhood of the local optimum [21]. The CSA exhibits excellent per-iteration efficiency due to its streamlined computational design. The per-iteration cost is low, as the calculation of the -norm wirelength, the exact density function, and its subgradient are inherently simple and efficient. This approach avoids complex smoothing approximations, thereby reducing the computational overhead per iteration. Concurrently, the conjugate subgradient method requires storage of only the current and previous subgradients, resulting in a minimal memory footprint. To improve global exploration without sacrificing local exploitation, we propose to adaptively regulate the step size of the CSA based on Q-learning.
| Algorithm 1 |
| Input: Objective function , initial solution Output: Optimal solution
|
3.3. Q-Learning
We propose to update the scaling parameter c in Algorithm 1, a typical value-based RL algorithm, using Q-learning [29]. It aims to find for each state–action pair a Q-value that represents its long-term expected return. The Q-values record an individual’s learning experience, stored in a Q-table and updated by
where represents the Q-values of the state–action pair at steps k. and are the learning rate and the discount rate, respectively. is the reward function. In this paper, is confirmed as
where is a preset coefficient, and is the maximum Q-value across all actions of state l at iteration .
3.4. The Constraint Graph
The constraint graph (CG) is a directed acyclic graph (DAG) used to represent the relative position between modules in a layout. Modules are represented by vertexes of a CG, and arcs indicate the constraint relationships between modules. Accordingly, the horizontal constraint graph (HCG) and the vertical constraint graph (VCG) are constructed for a layout to indicate the left–right and down–up positional relationships between modules, respectively. If the lower-left corner coordinates of module A are less than those of module B, the arcs of the HCG and the VCG are constructed by the following proposed method [13]:
- If module A and B do not overlap in either the horizontal or vertical direction, add arc in the HCG and add arc in the VCG.
- If module A and B overlap in the vertical direction but not in the horizontal direction, add arc in the HCG. Add arc in the VCG if module A and B overlap in the horizontal direction but not in the vertical direction.
- For the case where module A and B overlap in both the horizontal and vertical directions, add arc in the VCG if the overlapping length in the horizontal direction is greater than that in the vertical direction; conversely, add arc in the HCG.
Given a set of modules to be placed, a CG pair (HCG, VCG) can be translated into a floorplan where all modules are mutually disjoint. Then, by constructing a CG pair (HCG, VCG) for the result of the global floorplanning and translating it into another floorplan of modules, the overlaps between modules can be eliminated and we obtain a compact floorplan for the modules to be placed.
4. The CSA-Based Fixed-Outline Floorplanning Algorithm
As presented in Section 3.1, global floorplanning and legalization can be implemented by addressing (8) and (9), respectively. Accordingly, we propose a CSA-based fixed-outline floorplanning algorithm (CSF) where the performance of the CSA is enhanced by adaptively regulating the scaling factor c of the step size via Q-learning.
4.1. The Framework of CSF
Figure 1 illustrates the overall flowchart of our algorithm. At the beginning, a solution population of size p is initialized, where the orientations of modules are randomly generated and Latin hypercube sampling (LHS) is employed to generate the initial position vector within the fixed outline. The characteristic of LHS is that it can make the generated samples distribute as evenly as possible in the parameter space, covering a broader solution space and promoting the likelihood of finding the global optimum. Then, the stages of global floorplanning and legalization are successively implemented. If a legal solution is obtained after the legalization stage, this solution is recorded as the final solution and the iteration is terminated. Otherwise, a 90-degree rotation operation is applied to a randomly selected subset of modules within .The framework of the CSF is presented as Algorithm 2.
| Algorithm 2 The Framework of |
| Input: Iteration buget ; Output: A floorplan ;
|
Figure 1.
The flowchart of the CSF.
4.2. The Conjugate Subgradient Algorithm Assisted by Q-Learning
The global floorplanning and legalization address problems (8) and (9) with the CSAQ, which employs a population-based iteration scheme with the principle of the CSA. Thanks to the gradient-like definition and the stochastic characteristics of the subgradient, the CSA incorporates both the fast convergence of gradient-based algorithms and the global convergence of metaheuristics. The parameter c of the CSA (Algorithm 1), which is updated by a Q-learning-assisted strategy, plays a crucial role in achieving a balance between exploration and exploitation [30].
For a solution population of size p, a Q-table is constructed, as shown in Table 1. In our Q-learning framework, the state is defined as the population’s individuals [30], and the actions correspond to discrete values of a control parameter c. The selection of an action in each iteration directly dictates the value of c that regulates the CSA’s step size. To balance the global exploration and local exploitation, we first define a valid range for c. During the global placement phase, a larger step size is desired to allow modules to move significantly from their initial positions, thereby optimizing the wirelength and ensuring strong global search capability. Based on the module dimensions in our benchmark tests, this requirement informs the upper bound of c. To enhance the local search with promising efficiency, a lower bound for c is also established. These two bounds collectively define the operational range for c throughout the iterative process.
Table 1.
The Q-table for the update of parameter c.
Subsequently, we construct the action space by equidistantly selecting m discrete values within this interval. The selection of m necessitates a trade-off; an excessively large m would result in insufficient differentiation among actions, whereas an overly small m would lead to a lack of diversity in the action space. To strike a balance, we set and , as suggested in [22]. Subsequently, the scaling factor c corresponding to state () is updated via probability distribution
where is the Q-value of state–action pair at the k-th iteration. At each iteration, the Q-values are updated by (10), where the reward function is confirmed by
where and are the pre-action value and the post-action value of the objective function f to be minimized and is a preset constant.
With the probability distribution confirmed by (12), the parameter c is updated every generation. Accordingly, we obtain the framework of the CSAQ as presented in Algorithm 3.
| Algorithm 3 |
| Input: The objective f, the population ; Output: The updated solution population ;
|
4.3. The Global Floorplanning
Global floorplanning is implemented by addressing problem (8) using the CSAQ described by Algorithm 3. Because the weight setting of depends on the case being investigated, we employ a dynamic setting of objective weight . As presented in Algorithm 4, the CSAQ is executed iteratively for the parameter setting , and q is set as in this paper. In this way, it tries to achieve a promising result by striking a balance between wirelength and constraint violation. The iteration process ceases if the total overlapping area of all individuals in the solution population is less than , where A is the sum of the areas of all modules and v is a preset constant.
| Algorithm 4 |
| Input: The objective , the population ; Output: The updated solution population ;
|
4.4. The Legalization
Li et al. [13] proposed a tailored legalization strategy based on a constraint graph (LA-CG) which generated promising results on large-scale floorplanning cases with soft modules. However, our preliminary experiment indicates that it does not work well on small cases without soft modules. Accordingly, we propose an improved legalization algorithm based on a constraint graph (ILA-CG). Moreover, we also perform legalization by solving problem (9). The CSAQ is demonstrated to be an efficient optimizer, and we obtain an efficient legalization algorithm based on the CSAQ (LA-CSAQ).
4.4.1. The Improved Variants of Legalization Based on a Constraint Graph
The LA-CG proposed by Li et al. [13] starts with the construction of the HCG and the VCG, which are then translated into a floorplan without overlap. If all modules are placed in the constrained region, we obtain a legal floorplan; otherwise, there are some modules placed outside the fixed outline, and constraint relationships in the critical path (the so-called critical path refers to a path composed of blocks that constrain each other in the same direction and are closely arranged [31]) of a CG are selected to be adjusted to eliminate the out-of-bound violation. Since the process to eliminate a horizontal out-of-bound violation is similar to that in the vertical direction, we only present the details of horizontal legalization.
To eliminate the horizontal out-of-bound violation, the LA-CG proposes several definitions for modules and arcs in the CG (please refer to Ref. [13] for the rigorous definitions):
- For module A, the maximum adjustment range of the x-coordinate tolerated by the HCG is defined as the horizontal slack ; similarly, is the vertical slack, defined as the maximum adjustment range of the y-coordinate.
- If , the arc (representing a relationship between A and B) in the HCG is termed as a horizontal critical relationship, which means the x-coordinates of modules A and B cannot be adjusted without overlapping with other modules. A vertical critical relationship in the VCG can be defined similarly. The arcs in the critical path of an HCG/VCG are a critical relationship.
- For a horizontal critical relationship , the weight is defined byThe weight for the vertical critical relationship can be defined similarly.
- Modules A and B have a compressible relationship in the horizontal/vertical direction if A or B may be moved horizontally/vertically such that the floorplan is more compact.
Then, the LA-CG modifies the HCG as follows:
- If an arc is compressible, it is removed from the HCG.
- The critical relationship with the maximum weight is removed from the HCG and a corresponding relationship is inserted into the VCG at the same time.
By modifying the critical relationship with the maximum weight, the LA-CG aims to reduce the vertical placement range to the greatest extent, employing a greedy strategy that sometimes fail to achieve the optimal modification in terms of wirelength minimization. The modification of the VCG is performed similarly.
Although modification of the critical relationship with the maximum weight can reduce the vertical placement range to the greatest extent, it is a greedy strategy that sometimes does not achieve the best modification in terms of wirelength minimization. To remedy the deficiency of the LA-CG, we propose an improved legalization strategy in the x-direction (named ), presented in Algorithm 5, and , for legalization in the y-direction, is implemented similarly.
According to the weight values quantified by (14), the proposed obtains k candidate relationships by selecting critical relationships with the top k weight values. Then, k candidate relationships are sorted in descending order by the potential wirelength increment, and we obtain a probability distribution , where for all . The distribution plays a significant role in the performance of the CG-based legalization, and we perform a numerical study in Section 5.2.
| Algorithm 5 |
| Input: Width of the fixed outline, the CG pair ; Output: after horizontal legalization.
|
By alternatively executing and , we try to obtain the improved legalization algorithm based on the constraint graph (ILA-CG) presented in Algorithm 6, trying to reduce the wirelength while legalization is implemented. The iteration ceases when a legal floorplan is obtained or the maximum number of iterations is reached.
| Algorithm 6 |
| Input: The population , width and height of the fixed outline; Output: The post-legalization solution/floorplan ;
|
4.4.2. The Legalization Algorithm Based on CSAQ
Since the ILA-CG does not explicitly optimize the wirelength, it sometimes generates a legalized floorplan with a poor wirelength metric. Accordingly, Sun et al. [22] proposed to legalize a floorplan by directly optimizing (9) via the CSA. However, the individual-based CSA with constant c can be further improved. Accordingly, we propose a population-based CSA to legalize floorplans. The CSAQ used in the legalization stage is similar to that deployed in the global floorplanning stage, while the iteration process is terminated when either the maximum number of iterations is reached or a legal individual (floorplan) is obtained. As presented in Algorithm 7, the optimization of problem (9) sometimes produces an floorplan that is not compact, which incurs unnecessary wirelength costs. Accordingly, the CG pair (HCG, VCG) is constructed to update the legalized floorplan to ensure the modules are compactly arranged (Figure 2).
| Algorithm 7 |
| Input: The population ; Output: The post-legalization solution/floorplan ;
|
Figure 2.
The floorplan compression implemented by the CG.
5. Experimental Results
To verify the competitiveness of the CSF, we perform numerical experiments on the GSRC and MCNC benchmarks, where the I/O pads are fixed at the given coordinates for all of the test circuits and all modules are set as hard modules. The characteristics of the benchmarks are presented in Table 2. The compared algorithms are implemented in C++ and run on a 64-bit Windows laptop with 2.4 GHz Intel Core i7-13700H and 16 GB of memory.
Table 2.
Characteristics of the benchmarks.
As presented in Table 2, the fixed-outline floorplanning is performed within two different settings of die size. For setting , the die sizes are generated by (6) with and . The size setting is cited from Ref. [17] to validate the wirelength minimization capability of the CSF. Via numerical experiments, we first show how the incorporated Q-learning enhances the performance of the CSF and then compare it with several selected floorplanning algorithms. The comparison is performed for the cases without soft modules to highlight how the CSF efficiently addresses the great challenge of minimizing the wirelength within a fixed outline for the scenarios containing only hard modules.
In the proposed CSAQ, the Q-learning strategy is introduced to automatically regulate the scale factor c of the CSA. Influenced by module sizes and the primary objectives of different stages, we specifically design the following distinct action groups for updating the c across various benchmarks:
- For the global floorplanning stage, the following apply:
- −
- On GSRC benchmarks, the action groups are [8, 12, 15, 20, 25];
- −
- For ami33, the action groups are [80, 100, 120, 140, 160];
- −
- For ami49, the action groups are [130, 180, 220, 270, 330].
- For the legalization stage, the following apply:
- −
- On GSRC benchmarks, the action groups are [0.1, 0.8, 5, 10, 20];
- −
- For ami33, the action groups are [1, 8, 30, 60, 90];
- −
- For ami49, the action groups are [10, 50, 100, 150, 200].
5.1. The Positive Effects of Q-Learning
The positive effect of Q-learning is validated by comparing the performance of different global floorplanning (GP) and legalization (LA) strategies, where the of (10) and (11) are 0.4, 0.8, and 0.6 respectively. The weights of (8) and (9), as well as the parameters of the CSA and CSAQ, are presented in Table 3. The fixed-outline die sizes are set as shown in of Table 2.
Table 3.
Parameter settings of the CSA and CSAQ in different stages.
This study involves multiparameter collaborative optimization and employs a systematic parameter calibration strategy. First, reasonable ranges for parameters are preliminarily delineated based on their functional roles, then a rigorous sensitivity analysis is performed through a single-factor experimental design. While ensuring the stability and generalization performance of parameter combinations, the optimal configuration is finally determined. Given the extensive nature of the complete sensitivity analysis, we present a representative example—taking the average wirelength and computational time from 30 independent runs of the CSF-qq algorithm on the n100 dataset (Figure 3)—to demonstrate the impact of varying core parameters (e.g., ) on performance. The calibration of the remaining parameters can be conducted following this methodology.
Figure 3.
Performance comparison among different parameter groups.
Table 4 presents the average wirelength (HPWL) and CPU time obtained from 30 independent runs of the CSF-qq algorithm under different parameter settings: learning rate , discount factor , and population size p. The parameters are used for our primary experiments, while all other settings serve as control cases. The values in parentheses indicate the specific value for each parameter.
Table 4.
Robustness analysis of parameters .
The results demonstrate that, when and are varied, the fluctuation in the HPWL is mostly within a 1% range. The variation in CPU time is also within a reasonable margin of stochastic fluctuation, indicating that our algorithm is highly robust to changes in these two parameters. In contrast, varying the population size p to 3 results in more significant changes in both the HPWL and CPU time. This is because a smaller population size reduces population diversity, which naturally leads to faster execution at the cost of inferior HPWL optimization.
5.1.1. The Performance of CSAQ-Based Global Floorplanning
To validate the promising effect of the CSAQ at the global floorplanning stage, we compare two CSF variants: (1) the CSF-cc implementing both global floorplanning and legalization via the CSA, (2) the CSF-qc implementing global floorplanning and legalization via the CSAQ and CSA. Due to the random characteristics of the CSA, the performances are compared using the averaged results of 30 independent runs. The average runtime of a single run of global floorplanning (), the average runtime of a single run of legalization (), the average runtime to complete the entire floorplanning process (), the success rate (SR), the average wirelength (HPWL), and the improvement ratio (IR) of the HPWL are included in Table 5. Moreover, the one-sided Wilcoxon rank-sum test is performed based on the wirelength data of 30 independent runs. The p-values and the test results (R) with a significance level of are also shown in Table 5, where “+” indicates that CSF-qc significantly outperforms CSF-cc and “∼” means that the difference is not significant. The null hypothesis for the test posits that the distribution of CSF-qc is stochastically greater than or equal to that of CSF-cc. A p-value less than the significance level of 0.05 leads to the rejection of , indicating that the distribution of CSF-qc is statistically significantly smaller than that of CSF-cc.
Table 5.
Performance comparison of CSA- and CSAQ-based global floorplanning.
Compared to CSF-cc, CSF-qc demonstrates an enhanced success rate at the cost of a marginally longer . However, the runtime of legalization is shorter, which indicates that the better floorplanning results obtained by the CSAQ can even shorten the runtime of the legalization implemented by the CSA. Consequently, the CSF-qc can compete with CSF-cc in terms of averaged wirelength for most of the test benchmarks. However, the CSAQ-assisted GP alone cannot improve the floorplanning results to a large extent, and the hypothesis test shows that CSF-qc only outperforms CSF-cc significantly on the n200 case.
5.1.2. The Superiority of CSAQ-Based Legalization to CSA-Based Legalization
The CSF-qc is further compared with the CSF-qq, where both global floorplanning and legalization are implemented by the CSAQ. The results are presented in Table 6, and the same hypothesis testing procedure is applied.
Table 6.
Performance comparison between CSA- and CSAQ-based legalization.
By employing the Q-learning strategy, the CSAQ leads to significantly better legalization results at the expense of slightly increased runtime. The statistical test indicates that CSF-qq outperforms CSF-qc on four benchmark circuits. Although the test does not demonstrate significant superiority of CSF-qq in the ami49 case, it still beats CSF-qc in terms of the average wirelength.
5.2. Comparison Between CG- and CSAQ-Based Legalization Algorithms
To further confirm the superiority of the CSAQ-based legalization algorithm, we compare the LA-CSAQ (Algorithm 7) with the LA-CG [13] by starting the legalization with initial floorplans generated by the CSAQ-based global floorplanning algorithm (Algorithm 4). Meanwhile, two variants of the ILA-CG (Algorithm 6) are investigated to highlight the superiority of the LA-CSAQ. Both variants of the ILA-CG set with two different probability distributions:
- ILA-CGm: , , ;
- ILA-CGs: , , .
The statistical results of 30 independent runs are included in Table 7, where MinW and HWSD represent the wirelength of minimum value and the standard deviation, respectively.
Table 7.
Performance comparison of the LA-CG and LA-CSAQ algorithms.
The results show that the improved CG-based legalization algorithms (ILA-CGm and ILA-CGs) generally outperform the LA-CG in terms of both the average wirelength and the minimum wirelength. Since the ILA-CGs always selects the candidate correction relationship contributing to the smallest wirelength, it optimizes the wirelength better than the ILA-CGm. Compared with the CG-based legalization methods, including the LA-CG, ILA-CGm, and ILA-CGs, the LA-CSAQ can obtain legal floorplans with a shorter wirelength, demonstrating its superiority in optimization of wirelength.
From the perspective of the average time and the success rate, the LA-CSAQ obtains legal floorplans with the shortest runtime and the highest success rate, and the significantly smaller HWSD values demonstrate its superior robustness regarding the wirelength of the floorplan. Although both the ILA-CGm and ILA-CGs outperform the LA-CG on circuits ami33, ami49, n100, and n200, none of the CG-based legalization algorithms can eliminate the constraint violations for the n300 circuit, which further confirms the superior performance of the LA-CSAQ in the task of floorplan legalization.
5.3. Comparison Between the CSF and the State-of-the-Art Floorplanning Algorithms
The competitiveness of the proposed CSAQ-based floorplanning algorithm is further validated by comparing CSF-qq (where both global floorplanning and legalization are addressed by the CSAQ) with some selected floorplanning algorithms, Parquet-4.5 [3], Fast-FA [8], FFA-CD [22], and Per-RMAP [17]. Among them, Parquet-4.5 and Fast-FA are based on the B*-tree coding structure of the floorplan, and the optimization of wirelength is addressed by the simulated annealing algorithm; FFA-CD utilizes the distribution evolution algorithm based on the probability model to optimize the orientation of modules and employs the CSA to optimize the module coordinates; and Per-RMAP models the floorplanning problem as a feasibility-seeking problem and then deals with the floorplanning problem by introducing a perturbed resettable strategy into the method of alternating projection.
For the fixed-outline floorplanning scenario, the introduction of a soft module is beneficial to achieve legal floorplans with a short wirelength. However, this paper is dedicated to a scenario involving fixed-outline floorplanning without soft modules. Note that the experimental data for Fast-FA and Per-RMAP are taken from Ref. [17], in which the success rates of the benchmark circuits are not presented.
5.3.1. Floorplanning Within Compact Layout Regions
We first validate the performance of CSF-qq on floorplanning scenarios with a tightly arranged layout region by comparing it with Parquet-4.5 and FFA-CD. The layout region is set as the setting presented in Table 2. The generated floorplans of CSF-qq on the GSRC benchmarks are illustrated in Figure 4, and the statistical results of 30 independent runs are presented in Table 8, where IR represents the wirelength improvement ratio of CSF-qq compared to other methods. Here, the “-” indicates that the data are not provided in the relevant papers.
Figure 4.
The floorplan compression implemented by the CG.
Table 8.
Performance comparison for floorplanning restricted in layout regions with 15% whitespace.
The numerical results show that CSF-qq is generally competitive with the compared algorithms. Compared to Parquet-4.5, the wirelength on the GSRC benchmarks is improved by 13.31∼23.39%, and the running time is reduced to a large extent. In comparison with FFA-CD, the CSF-qq generates floorplans on n100 and n200 with a shorter wirelength, and the wirelength of problem n300 is −0.14% worse than that of FFA-CD. Since a population-based CSA framework assisted by Q-learning is employed by CSF-qq, its running time on GSRC benchmarks is slightly longer than that of FFA-CD.
Meanwhile, the global convergence of CSF-qq is guaranteed by the optimizer CSAQ. It can address the MCNC benchmarks better, achieving 100% success rate (SR) on ami49. For ami33, a higher success rate is achieved at the cost of a certain degree of wirelength optimization performance. In comparison, the SR of Parquet-4.5 is 60%, and there are no reference data available for FFA-CD in Ref. [22].
5.3.2. Wirelength Minimization Within Spacious Layout Regions
To validate the performance of CSF-qq on the minimization of wirelength, we compare it with two representative algorithms, Fast-SA and Per-RMAP, and the fixed outlines of layout regions are generated according to the setting presented in Table 2 [17]. As presented in Table 9, CSF-qq outperforms both Fast-SA and Per-RMAP on the GSRC benchmarks in terms of wirelength; however, it obtains a slightly longer wirelength when addressing the MCNC benchmarks. With regard to the running time, both CSF-qq and Per-RMAP beat Fast-SA markedly. Note that the results for Per-RMAP are cited from Ref. [17], where it is implemented on a server equipped with two-way Intel Xeon Gold 6248R@3.0-GHz CPUs and 768 GB DDR4-2666 MHz memory. CSF-qq is competitive with Per-RMAP in terms of running time.
Table 9.
Performance comparison on [17] fixed-outline floorplanning.
6. Conclusions
This paper introduces a Q-learning-accelerated conjugate subgradient algorithm (CSF-qq) for fixed-outline floorplanning for directly optimizing the primal nonsmooth model where Q-learning is employed to tune the step size parameter for improved convergence. The incorporation of population-based CSA search with adaptive regulation of step size demonstrates significant improvements in global exploration and exploitation, contributing to both fast convergence and refined optimized wirelength. Experimental results show that CSF-qq achieves competitive wirelength optimization compared to existing methods in hard module-only scenarios.
Nevertheless, the algorithm’s performance is less satisfactory on the small-scale MCNC benchmark than on the GSRC, and its population-based strategy incurs a slight increase in runtime. This performance gap can be attributed to the inherent limitations of the analytical subgradient method when it is applied to the irregular problem structures presented by the MCNC benchmarks, which could be remedied by simultaneous optimization of the module orientations. Future work will focus on enhancing the algorithm through orientation optimization, reducing its time complexity, and scaling it to larger problems and mixed-module floorplanning.
Author Contributions
Conceptualization, X.M. and Y.C.; methodology, H.C.; software, X.M.; validation, X.M. and H.C.; formal analysis, Y.C.; investigation, J.H.; resources, N.X. and J.H.; writing—original draft preparation, X.M.; writing—review and editing, H.C.; supervision, Y.C.; project administration, N.X. and J.H.; funding acquisition, J.H. and Y.C. All authors have read and agreed to the published version of the manuscript.
Funding
This research is supported in part by Shenzhen Science and Technology Program (no. JCYJ20220818102002005), in part by the Science and Technology Planning Project of Guangdong Province (no. 2024B1212020007), and in part by the Fundamental Research Funds for the Central University (no. 104972024KFYjc0055).
Data Availability Statement
The datasets analyzed during the current study are available from the corresponding author for academic research.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Srinivasan, B.; Venkatesan, R.; Aljafari, B.; Kotecha, K.; Indragandhi, V.; Vairavasundaram, S. A Novel Multicriteria Optimization Technique for VLSI Floorplanning Based on Hybridized Firefly and Ant Colony Systems. IEEE Access 2023, 11, 14677–14692. [Google Scholar] [CrossRef] [Scilit]
- Kahng, A.B. Classical Floorplanning Harmful? In Proceedings of the 2020 International Conference on Computer-Aided Design, Virtual, 2–5 November 2000; pp. 207–213. [Google Scholar]
- Adya, S.N.; Markov, I.L. Fixed-Outline Floorplanning: Enabling Hierarchical Design. IEEE Trans. VLSI Syst. 2003, 11, 1120–1135. [Google Scholar] [CrossRef] [Scilit]
- Weng, Y.; Chen, Z.; Chen, J.; Zhu, W. A Modified Multi-Objective Simulated Annealing Algorithm for Fixed-Outline Floorplanning. In Proceedings of the 2018 IEEE International Conference on Automation, Electronics and Electrical Engineering (AUTEEE), Shenyang, China, 16–18 November 2018; pp. 35–39. [Google Scholar] [CrossRef] [Scilit]
- Zou, D.; Wang, G.; Pan, G.; Qi, H. A Modified Simulated Annealing Algorithm and an Excessive Area Model for Floorplanning Using Fixed-outline Constraints. Front. Inf. Technol. Electron. Eng. 2016, 17, 1228–1244. [Google Scholar] [CrossRef] [Scilit]
- Ye, Y.; Yin, X.; Chen, Z.; Hong, Z.; Fan, X.; Dong, C. A Novel Method on Discrete Particle Swarm Optimization for Fixed-Outline Floorplanning. In Proceedings of the 2020 IEEE International Conference on Artificial Intelligence and Information Systems (ICAIIS), Dalian, China, 20–22 March 2020; pp. 591–595. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.; Zhu, W. A Hybrid Genetic Algorithm for VLSI Floorplanning. In Proceedings of the 2010 IEEE International Conference on Intelligent Computing and Intelligent Systems, Xiamen, China, 29–31 October 2010; pp. 128–132. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.-C.; Chang, Y.-W. Modern Floorplanning Based on B*-Tree and Fast Simulated Annealing. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2006, 25, 637–650. [Google Scholar] [CrossRef] [Scilit]
- Ji, P.; He, K.; Wang, Z.; Jin, Y.; Wu, J. A Quasi-Newton-based Floorplanner for Fixed-Outline Floorplanning. Comput. Oper. Res. 2021, 129, 105225. [Google Scholar] [CrossRef] [Scilit]
- Yan, J.Z.; Chu, C. DeFer: Deferred Decision Making Enabled Fixed-Outline Floorplanning Algorithm. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2010, 29, 367–381. [Google Scholar] [CrossRef]
- Huang, Z.; Li, X.; Zhu, W. Optimization Models and Algorithms for Placement of Very Large Scale Integrated Circuits. Oper. Res. Trans. 2021, 25, 15–36. [Google Scholar] [CrossRef]
- Huang, F.; Liu, D.; Li, X.; Yu, B.; Zhu, W. Handling Orientation and Aspect Ratio of Modules in Electrostatics-Based Large Scale Fixed-Outline Floorplanning. In Proceedings of the 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), San Francisco, CA, USA, 28 October 2023–2 November 2023; pp. 1–9. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Peng, K.; Huang, F.; Zhu, W. PeF: Poisson’s Equation-Based Large-Scale Fixed-Outline Floorplanning. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2023, 42, 2002–2015. [Google Scholar] [CrossRef] [Scilit]
- Lin, J.-M.; Hung, Z.-X. UFO: Unified Convex Optimization Algorithms for Fixed-Outline Floorplanning Considering Pre-Placed Modules. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2011, 30, 1034–1044. [Google Scholar] [CrossRef] [Scilit]
- Zhan, Y.; Feng, Y.; Sapatnekar, S.S. A Fixed-Die Floorplanning Algorithm Using an Analytical Approach. In Proceedings of the 2006 Asia and South Pacific Conference on Design Automation, Yokohama, Japan, 24–27 January 2006; p. 6. [Google Scholar] [CrossRef] [Scilit]
- Lu, J.; Chen, P.; Chang, C.-C.; Sha, L.; Huang, D.J.-H.; Teng, C.-C.; Cheng, C.-K. ePlace: Electrostatics-Based Placement Using Fast Fourier Transform and Nesterov’s Method. ACM Trans. Des. Autom. Electron. Syst. 2015, 20, 17. [Google Scholar] [CrossRef] [Scilit]
- Yu, S.; Censor, Y.; Luo, G. Floorplanning with I/O Assignment via Feasibility-Seeking and Superiorization Methods. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2025, 44, 317–330. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chang, Y.-W.; Jiang, Z.-W.; Chen, T.-C. Essential Issues in Analytical Placement Algorithms. IPSJ Trans. Syst. LSI Des. Methodol. 2009, 2, 145–166. [Google Scholar] [CrossRef] [Scilit]
- Ray, B.N.B.; Balachandran, S. An Efficient Wirelength Model for Analytical Placement. In Proceedings of the 2013 Design, Automation & Test in Europe Conference & Exhibition, Melbourne, Australia, 18–22 March 2013; pp. 1711–1714. [Google Scholar] [CrossRef] [Scilit]
- Chan, T.F.; Cong, J.; Shinnerl, J.R.; Sze, K.; Xie, M. mPL6: Enhanced Multilevel Mixed-Size Placement. In Proceedings of the 2006 International Symposium on Physical Design, San Jose, CA, USA, 9–12 April 2006; pp. 212–214. [Google Scholar]
- Zhu, W.; Chen, J.; Peng, Z.; Fan, G. Nonsmooth Optimization Method for VLSI Global Placement. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2015, 34, 642–655. [Google Scholar] [CrossRef] [Scilit]
- Sun, J.; Cheng, H.; Wu, J.; Zhu, Z.; Chen, Y. Floorplanning of VLSI by Mixed-Variable Optimization. In Intelligence Computation and Applications; Springer Nature: Singapore, 2024; pp. 137–151. [Google Scholar]
- He, Z.; Ma, Y.; Zhang, L.; Liao, P.; Wong, N.; Yu, B.; Wong, M.D.F. Learn to Floorplan Through Acquisition of Effective Local Search Heuristics. In Proceedings of the 2020 IEEE 38th International Conference on Computer Design (ICCD), Hartford, CT, USA, 18–21 October 2020; pp. 324–331. [Google Scholar] [CrossRef] [Scilit]
- Mirhoseini, A.; Goldie, A.; Yazgan, M.; Jiang, J.W.; Songhori, E.; Wang, S.; Lee, Y.-J.; Johnson, E.; Pathak, O.; Nova, A.; et al. A Graph Placement Methodology for Fast Chip Design. Nature 2021, 594, 207–212. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Xu, Q.; Geng, H.; Chen, S.; Yuan, B.; Zhuo, C.; Kang, Y.; Wen, X. GoodFloorplan: Graph Convolutional Network and Reinforcement Learning-Based Floorplanning. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2022, 41, 3492–3502. [Google Scholar] [CrossRef] [Scilit]
- Yang, B.; Xu, Q.; Geng, H.; Chen, S.; Kang, Y. Miracle: Multi-Action Reinforcement Learning-Based Chip Floorplanning Reasoner. In Proceedings of the 2024 Design, Automation & Test in Europe Conference & Exhibition (DATE), Valencia, Spain, 25–27 March 2024; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Moldenhauer, T.; Uhlmann, Y.; Scheible, J. An Open-Source Environment for Evaluating Reinforcement Learning Algorithms for Analog IC Floorplanning. In Proceedings of the 2025 21st International Conference on Synthesis, Modeling, Analysis and Simulation Methods, and Applications to Circuits Design (SMACD), Istanbul, Turkiye, 7–10 July 2025; pp. 1–4. [Google Scholar] [CrossRef] [Scilit]
- Rovere, S.J.D.; Basso, D.; Bortolussi, L.; Videnovic-Misic, M.; Habal, H. Enhancing Reinforcement Learning for the Floorplanning of Analog ICs with Beam Search. In Proceedings of the 2025 21st International Conference on Synthesis, Modeling, Analysis and Simulation Methods, and Applications to Circuits Design (SMACD), Istanbul, Turkiye, 7–10 July 2025; pp. 1–4. [Google Scholar] [CrossRef] [Scilit]
- Watkins, C.J.C.H.; Dayan, P. Q-learning. Mach. Learn. 1992, 8, 279–292. [Google Scholar] [CrossRef] [Scilit]
- Li, H.; Gao, K.; Duan, P.-Y.; Li, J.-Q.; Zhang, L. An Improved Artificial Bee Colony Algorithm with Q-Learning for Solving Permutation Flow-Shop Scheduling Problems. IEEE Trans. Syst. Man Cybern. Syst. 2023, 53, 2684–2693. [Google Scholar] [CrossRef] [Scilit]
- Moffitt, M.D.; Ng, A.N.; Markov, I.L.; Pollack, M.E. Constraint-driven Floorplan Repair. In Proceedings of the 2006 43rd Annual Design Automation Conference, San Francisco, CA, USA, 24–28 July 2006; pp. 1103–1108. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).



