1 PeF P oissons E quation Based Large-Scale Fixed-Outline F loorplanning

2025-05-01 0 0 1.1MB 14 页 10玖币
侵权投诉
1
PeF: Poisson’s Equation Based Large-Scale
Fixed-Outline Floorplanning
Ximeng Li, Keyu Peng, Fuxing Huang and Wenxing Zhu
Abstract—Floorplanning is the first stage of VLSI physical
design. An effective floorplanning engine definitely has positive
impact on chip design speed, quality and performance. In this
paper, we present a novel mathematical model to characterize
non-overlapping of modules, and propose a flat fixed-outline
floorplanning algorithm based on the VLSI global placement
approach using Poisson’s equation. The algorithm consists of
global floorplanning and legalization phases. In global floor-
planning, we redefine the potential energy of each module
based on the novel mathematical model for characterizing non-
overlapping of modules and an analytical solution of Poisson’s
equation. In this scheme, the widths of soft modules appear as
variables in the energy function and can be optimized. Moreover,
we design a fast approximate computation scheme for partial
derivatives of the potential energy. In legalization, based on the
defined horizontal and vertical constraint graphs, we eliminate
overlaps between modules remained after global floorplanning,
by modifying relative positions of modules. Experiments on the
MCNC, GSRC, HB+ and ami49 x benchmarks show that, our
algorithm improves the average wirelength by at least 2% and
5% on small and large scale benchmarks with certain whitespace,
respectively, compared to state-of-the-art floorplanners.
Index Terms—Fixed-outline floorplanning, Global floorplan-
ning, Poisson’s equation, Legalization, Constraint graph.
I. INTRODUCTION
FLOORPLANNING is the first stage of VLSI physical
design flow. With widespread usage of IP cores and huge
number of cells integrated in modern chips, floorplanning
needs to handle hundreds or even thousands of circuit modules
within a fixed-outline. Especially, some more complex issues
need to be considered during floorplanning, such as timing,
thermal, power and voltage-island [1], [2]. However, it is well
known that the fundamental floorplanning problem is NP-
hard. Hence designing a high performance algorithm for the
fundamental large-scale floorplanning is a challenge, which
will have an impact on the performance and yield of the final
ICs. In this paper, we focus on designing a flat analytical
engine for the fixed-outline floorplanning.
Fixed-outline floorplanning can be described as placing a set
of rectangular modules into a fixed rectangular area without
overlap, while minimizing the total wirelength among the
modules. Floorplanning usually includes two types of circuit
modules, hard modules and soft modules. The width and
height of a soft module can be changed within a certain range
meanwhile maintaining a certain area. So far, works for fixed-
outline floorplanning can be divided into three categories:
The authors are with the Center for Discrete Mathematics and Theoretical
Computer Science, Fuzhou University, Fuzhou 350108, China (Corresponding
author: Wenxing Zhu, e-mail: wxzhu@fzu.edu.cn).
heuristic methods for small-scale problem, multilevel heuristic
methods for large-scale problem, and analytical approaches.
Heuristic methods for small-scale fixed-outline floorplan-
ning problem first adopt a floorplan representation, then use
heuristic algorithms to search for an optimal solution in the
representation space, and finally decode the optimal represen-
tation to the corresponding floorplan. Floorplan representation
method also determines the complexity of transforming a floor-
plan into its representation, and the complexity of decoding
a representation into its corresponding floorplan. Floorplan
representation methods can be summarized in Table I.
TABLE I
SUMMARY OF FLOORPLAN REPRESENTATIONS
Representation Solution Space Packing Time Flexibility
Normalized Polish Expression O(n!22.6n/n1.5)O(n)slicing
Corner Block List [3]O(n!23n)O(n)Mosaic
Twin Binary Sequence [4]O(n!23n/n1.5)O(n)Mosaic
O-tree [5]O(n!22n/n1.5)O(n)compacted
B*-tree [6]O(n!22n/n1.5)O(n)compacted
Corner Sequence [7](n!)2O(n)compacted
Sequence Pair [8](n!)2O(n2)general
TCG-S [9](n!)2O(nlog n)general
ACG [10]O((n!)2)O(n2)general
In Table I, O-tree [5] and B*-tree [6] are two commonly
used floorplan representations, followed by the most preferred
simulated annealing algorithm. Parquet [11] used sequence
pair as the representation, on which a floorplan is also op-
timized using simulated annealing. Since the running time of
this kind of algorithms grows very fast with the problem scale,
they cannot be applied to large-scale floorplanning directly.
A methodology to cope with this issue is the multilevel
framework with the heuristic search methods.
The core idea of multilevel heuristic search methods is
reducing the size of solution space multilevelly by clustering
or partitioning, and thus can handle large-scale problem.
Clustering-based floorplanning methods, e.g., MB*-tree [12],
merge modules from the bottom to up, until the number of
modules is small enough, and then solve the floorplanning
problem. The solution is refined in each level of de-clustering,
leading finally to a solution of the original problem. A dis-
advantage of clustering-based floorplanning is that, modules
cannot be clustered from a global perspective in the early
clustering stage, which limits the solution quality. Instead,
partitioning-based methods decompose the original large-scale
floorplanning problem into several small-scale sub-problems,
until they are small enough and solved directly. Finally,
solutions of sub-problems are merged and optimized level
by level, leading to a solution of the original problem. Capo
[13], DeFer [14], IMF [15] and QinFer [16] are state-of-the-
arXiv:2210.03293v1 [cs.AR] 7 Oct 2022
2
art partitioning-based floorplanning methods. Most of them
use hMetis [17] for the partitioning. Compared to clustering-
based floorplanning methods, partitioning-based ones can con-
sider wirelength information in the early floorplanning stage.
However, they cannot accurately calculate the wirelength in
the partitioning stage.
Since floorplanning is similar to the VLSI placement prob-
lem in some degree, a number of analytical floorplanning
methods have been proposed based on the frameworks of
VLSI placement approaches. They include Analytical [18], AR
[19], UFO [20] and F-FM [1], etc. Generally, these methods
analogously have the global floorplanning stage which deter-
mines “rough” positions of modules, and a legalization stage
which eliminates the overlaps between modules and deter-
mines the exact positions of all modules and the widths of soft
modules. Furthermore, combining with multilevel framework,
these analytical methods can solve large-scale floorplanning
problems well. Table II summarizes the global floorplanning
and legalization stages of the above methods, respectively.
TABLE II
SUMMARY OF ANALYTICAL FLOORPLANNING METHODS
method global floorplanning legalization
Analytical [18]bell-shaped smoothing
and Density control function pl2sp() in Parquet-4 [11]
F-FM [1]placement model
based on NTUplace [21]
gradual partition based on
position and area +ST-Tree [22]
Ref. [2]placement model
based on NTUplace [21]SAINT [23]
AR [19]Attractor-Repeller model SOCP based on relative position matrix
UFO [20] Push-Pull model SOCP based on constraint graph
Floorplanners Analytical [18], F-FM [1] and Ref. [2] use
density-control in the global floorplanning stage. In Analytical
[18], cell density is calculated according to the current posi-
tions and widths of modules, in which soft modules are treated
as hard ones. Then the density function is smoothed using the
bell-shaped function. During legalization, overlaps between
modules are removed using the function pl2sp() in Parquet-4
[11] to get a legal floorplan. Similarly, F-FM [1] and Ref. [2]
treat all soft modules as hard blocks, and use global placement
for global floorplanning. In legalization, F-FM [1] uses the
ST-tree [22] with the gradual partition based on positions and
areas of modules, and then adopts the simulated annealing
algorithm to optimize the positions and widths of modules.
As for the floorplanner in Ref. [2], SAINT [23] is used for
legalization. The main idea is using polygon to approximate
the curve of area of every soft module, and building an ILP
model to achieve legalization of modules.
Earlier floorplanners AR [19] and UFO [20] directly regard
all soft and hard modules as squares, and further abstract
them as circles. Then, Attractor-Repeller and Push-Pull models
are proposed for global floorplanning respectively. Both of
them use second-order cone programming (SOCP) to obtain
legal solutions in the legalization stage. The difference is that,
AR uses relative position matrix, while UFO uses constraint
graph. It must be remarked that solving SOCP is rather time-
consuming when the problem size is moderate or large.
Note that floorplanning problem contains hard and soft
modules. However, state-of-the-art analytical floorplanners
Analytical [18], F-FM [1] and Ref. [2] take soft modules
as hard ones in global floorplanning. Moreover, they must
be incorporated in the multilevel framework to handle large-
scale floorplanning problem. Apparently, these will affect the
solution quality.
In this paper, we focus on the fundamental fixed-outline
floorplanning problem. This is because algorithms for floor-
planning with complex issues are extended from those for
the fundamental floorplanning. Notice that Poisson’s equation
based VLSI global placement methods [24], [25] do not use
multilevel framework. They are flat while achieve state-of-
the-art results. In this paper, we will propose a high perfor-
mance floorplanning engine by extending this type of methods
to large-scale fixed-outline floorplanning with hard and soft
modules.
To achieve this goal, we must not only consider optimizing
the shapes of soft modules in global floorplanning, but also
design a high performance legalization algorithm correspond-
ingly. Contributions of this paper are summarized as follows:
We propose a novel mathematical model to characterize
non-overlapping of modules. Then under the concept
of electrostatic system [24], we redefine the potential
energy of modules based on the analytical solution of
Poisson’s equation in [25]. This allows the widths of soft
modules to appear as variables in the established fixed-
outline global floorplanning model, and the derivative
with respect to the widths of soft modules can be easily
obtained.
We give a fast approximate computation scheme for the
partial derivative of the potential energy, and design a
fixed-outline global floorplanning algorithm based on the
global placement method using Poisson’s equation.
By defining horizontal and vertical constraint graphs,
we present a fast legalization algorithm to remove over-
laps between modules after global floorplanning. The
algorithm modifies relative positions of modules and
compresses the floorplan to obtain finally a legal solution.
Within acceptable running time, our floorplanning algo-
rithm obtains better results on large-scale benchmarks.
The average wirelength is at least 5% less than state-
of-the-art multilevel heuristic search algorithms, and is at
least 8% less than state-of-the-art analytical floorplanning
algorithms. On small-scale benchmarks, it has similar
improvements.
The remainder of this paper is organized as follows. Section
II is the preliminaries. Section III proposes a novel math-
ematical model to characterize non-overlapping of modules,
gives our global floorplanning model based on Poisson’s
equation, and provides a fast computation scheme for the
partial derivatives. In Section IV, we detail our fixed-outline
global floorplanning algorithm and legalization algorithm.
Experimental results and comparisons are presented in Section
V, and conclusion is summarized in Section VI.
II. PRELIMINARIES
This section presents the problem of fixed-outline floorplan-
ning, introduces the wirelength model and principle of the
Poisson’s equation method for handling modules overlap in
VLSI global placement.
3
A. Fixed-outline Floorplanning Problem
The floorplanning area is a rectangle with four edges parallel
to the coordinate axes, with the lower left corner at the origin,
and upper right corner at (W, H). Let V=VsVhbe the
set of rectangular modules, where Vsand Vhrepresent the
sets of soft and hard modules, respectively. For each module
viV, its width, height, area and the coordinate of the center
point are wi,hi,Aiand (xi, yi), respectively. For each module
viVs, the aspect ratio, calculated as the ratio of height to
width, is between ARl
iand ARu
i. Moreover, let Ebe the set
of nets ei,i= 1,2, . . . , m, for which W L(ei)is the half-
perimeter wirelength. Let W L(E) = PeiEW L(ei). Then
the fixed-outline floorplanning problem can be described as
min W L(E)
s.t. overlap = 0
aspect ratio is suitable
all modules are within the fixed-outline.
(1)
In this paper, the objective of model (1) adopts the LSE
(Log-Sum-Exp) wirelength function. Moreover, the first con-
straint in (1) ensures that all modules do not overlap. The
second constraint means that the aspect ratio of every soft
module meets the upper and lower bounds. The third constraint
indicates that all modules are located within the fixed-outline.
B. VLSI Global Placement Based on Poisson’s Equation
ePlace [24] is a representative VLSI global placement
method. In ePlace, each module viis regarded as a positively
charged particle with electric quantity qi, which is proportional
to its area Ai. Thus the placement problem is modeled as
a two-dimensional electrostatic system, in which the electric
potential ψ(x, y)and the electric field ξ(x, y)satisfy that
ξ(x, y)=(ξx, ξy) = −∇ψ(x, y). ePlace [24] characterizes
ψ(x, y)as the solution of the Poisson’s equation
2ψ(x, y) = ρ(x, y),(x, y)R, (2a)
ˆ
nψ(x, y) = 0,(x, y)R, (2b)
ZZR
ρ(x, y)dxdy=ZZR
ψ(x, y)dxdy= 0,(2c)
where Ris the rectangular placement area. Eq. (2a) is the
Poisson’s equation, ρ(x, y)is the charge density function
on R. Eq. (2b) is the Neumann boundary condition, where
Rand ˆ
nrepresent the boundary of area Rand the outer
normal vector of the boundary, respectively. Eq. (2c) is the
compatibility condition to ensure that the equation has a
unique solution.
The electric forces Fi=qiξ(xi, yi),i= 1,2, . . . , n,
guide the modules movement and henceforth reduce mod-
ules overlaps. Define the system potential energy N(V) =
PviVN(vi), where N(vi) = qiψ(vi)is the potential energy
of module vi. Then by ePlace [24], a necessary condition for
overlap = 0 is that the system potential energy N(V)is the
smallest. This allows to use the regularizing term N(V)to
transform the VLSI global placement problem into
min LSE(E) + λN(V)
s.t. all modules are in the placement area.(3)
Ref. [25] defines the density function
ρ(x, y) = X
viV
ρi(x, y),(x, y)[0, W ]×[0, H],
ρi(x, y) = (1, if (x, y)Ri;
0, else,
(4)
where Ri=xiwi
2, xi+wi
2×yihi
2, yi+hi
2, hi=
Ai
wi. Then by redefining
ρ(x, y),ρ(x, y)1
W H ZZR
ρ(x, y)dxdy,
Ref. [25] obtains an analytical solution of Eq. (2). The
truncated version is
ψ(x, y) =
K
X
u=0
K
X
p=0
aup cos
Wxcos
Hy,(5)
where Kis the truncation factor that controls the precision.
For fast global placement, assume that the placement area
is divided in to K×Kbins, and the density of each grid is
ˆρ(i, j) = X
vkV
Area(bini,j Rk)
Area(bini,j ), i, j = 0,1, . . . , K 1.
(6)
By a similar redefinition, Ref. [25] obtains an analytical
solution of Eq. (2), for which the truncated solution value at
(i+1
2, j +1
2)is
ˆ
ψ(i, j) =
K1
X
u,p=0
aup cos u(i+1
2)π
Kcos p(j+1
2)π
K.(7)
The coefficient calculations for Eqs. (5) and (7) can be found
in [25].
III. GLOBAL FLOORPLANNING MODEL AND GRADIENT
CALCULATION
In this paper, the fixed-outline floorplanning is decomposed
into two stages: global floorplanning and legalization. In global
floorplanning, partial overlaps between modules are allowed
and a “rough” floorplanning is built. In legalization, the over-
laps are eliminated and the final legal floorplan is obtained.
To be able to optimize the shapes of soft modules in global
floorplanning, we propose in this section a novel mathematical
model to characterize non-overlapping of modules, and then
modify the VLSI global placement model (3) for fixed-outline
global floorplanning. Based on the global floorplanning model,
we present a fast approximate scheme for calculating partial
derivatives of potential energy.
A. Global Floorplanning Model
First, we present a sufficient and necessary condition for
non-overlapping of modules. According to Eq. (4), we can
prove the following results. The details will be clarified in the
Appendix.
Lemma 1. Any two different modules viand vjVare
non-overlapping if and only if RRRiρj(u, v)dudv= 0.
Let Area(Ri)be the area of module vi, we have
摘要:

1PeF:Poisson'sEquationBasedLarge-ScaleFixed-OutlineFloorplanningXimengLi,KeyuPeng,FuxingHuangandWenxingZhuAbstract—FloorplanningistherststageofVLSIphysicaldesign.Aneffectiveoorplanningenginedenitelyhaspositiveimpactonchipdesignspeed,qualityandperformance.Inthispaper,wepresentanovelmathematicalmod...

展开>> 收起<<
1 PeF P oissons E quation Based Large-Scale Fixed-Outline F loorplanning.pdf

共14页,预览3页

还剩页未读, 继续阅读

声明:本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。玖贝云文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知玖贝云文库,我们立即给予删除!
分类:图书资源 价格:10玖币 属性:14 页 大小:1.1MB 格式:PDF 时间:2025-05-01

开通VIP享超值会员特权

  • 多端同步记录
  • 高速下载文档
  • 免费文档工具
  • 分享文档赚钱
  • 每日登录抽奖
  • 优质衍生服务
/ 14
客服
关注