7. Hagen, L., Kahng, A.B.: Fast Spectral Methods for Ratio Cut Par-
titioning and Clustering. In: Proc. IEEE Int. Conf. on Computer- Aided Design, November 1991, pp. 10–13
8. Hu, T.C., Moerder, K.: Multiterminal Flows in a Hypergraph. In: Hu, T.C., Kuh, E.S. (eds.) VLSI Circuit Layout: Theory and Design, pp. 87–93. IEEE Press (1985)
9. Iman, S., Pedram, M., Fabian, C., Cong, J.: Finding Uni-Direc- tional Cuts Based on Physical Partitioning and Logic Restruc- turing. In: 4th ACM/SIGDA Physical Design Workshop, April 1993
10. Kirkpatrick, S., Gelatt, C.D., Vecchi, M.P.: Optimization by Simu- lated Annealing. Science4598, 671–680 (1983)
11. Kernighan, B., Lin, S.: An Efficient Heuristic Procedure for Parti- tioning of Electrical Circuits. Bell Syst. Tech. J., 291–307 (1970) 12. Liu, H., Wong, D.F.: Network-Flow-based Multiway Partitioning
with Area and Pin Constraints. IEEE Trans. CAD Integr. Circuits Syst.17(1), 50–59 (1998)
13. Riess, B.M., Doll, K., Frank, M.J.: Partitioning Very Large Cir- cuits Using Analytical Placement Techniques. In: Proc. 31th ACM/IEEE Design Automation Conf., 1994, pp. 646–651 14. Sanchis, L.A.: Multiway Network Partitioning. IEEE Trans. Com-
put.38(1), 62–81 (1989)
15. Wei, Y.C., Cheng, C.K.: Towards Efficient Hierarchical Designs by Ratio Cut Partitioning. In: Proc. IEEE Int. Conf. on Computer- Aided Design, November 1989, pp. 298–301
16. Yang, H., Wong, D.F.: Efficient Network Flow Based Min-Cut Bal- anced Partitioning. In: Proc. IEEE Int. Conf. on Computer-Aided Design, 1994, pp. 50–55
Circuit Placement
2000; Caldwell, Kahng, Markov 2002; Kennings, Markov 2006; Kennings, Vorwerk
ANDREWA. KENNINGS1, IGORL. MARKOV2
1Department of Electrical and Computer Engineering,
University of Waterloo, Waterloo, ON, Canada
2Department of Electrical Engineering and Computer
Science, University of Michigan, Ann Arbor, MI, USA Keywords and Synonyms
EDA; Netlist; Layout; Min-cut placement; Min-cost max- flow; Analytical placement; Mathematical programming
Problem Definition
This problem is concerned with efficiently determining constrained positions of objects while minimizing a mea- sure of interconnect between the objects, as in physical layout of integrated circuits, commonly done in 2-dimen- sions. While most formulations are NP-hard, modern cir- cuits are so large that practical algorithms for placement must have near-linear runtime and memory requirements,
but not necessarily produce optimal solutions. While early software for circuit placement was based on Simulated An- nealing, research in algorithms identified more scalable techniques which are now being adopted in the Electronic Design Automation industry.
One models a circuit by a hypergraphGh(Vh,Eh) with
(i) vertices Vh = fv1; : : : ;vng representing logic gates,
standard cells, larger modules, or fixed I/O pads and (ii) hyperedgesEh = fe1; : : : ;emgrepresenting connections
between modules. Every incident pair of a vertex and a hy- peredge connect through apinfor a total ofPpins in the hypergraph. Each vertexvi 2 Vh has width wi, height hiand areaAi. Hyperedges may also be weighted. Given Gh, circuit placement seeks center positions (xi,yi) for ver-
tices that optimize a hypergraph-based objective subject to constraints (see below). A placement is captured by x= (x1; ;xn) andy= (y1; ;yn).
Objective Let Ck be the index set of the hyper-
graph vertices incident to hyperedgeek. The total half-
perimeter wirelength (HPWL) of the circuit hyper- graph is given by HPWL(Gh) = Pek2EhHPWL(ek) = P
ek2Eh maxi;j2Ckjxixjj+ maxi;j2Ckjyiyjj
. HPWL is piece-wise linear, separable in thexandy di- rections, convex, but not strictly convex. Among many objectives for circuit placement, it is the simplest and most common.
Constraints
1. No overlap.The area occupied by any two vertices can- not overlap; i. e., either jxi xjj 12(wi + wj) or jyiyjj 12(hi+hj);8vi;vj2Vh.
2. Fixed outline.Each vertexvi 2Vhmust be placed en-
tirely within a specified rectangular region bounded by
xmin(ymin) andxmax(ymax) which denote the left (bot-
tom) and right (top) boundaries of the specified region. 3. Discrete slots.There is only a finite number of discrete positions, typically on a grid. However, in large-scale circuit layout, slot constraints are often ignored during
global placement, and enforced only duringlegalization
anddetail placement.
Other constraints may include alignment, minimum and maximum spacing, etc. Many placement techniques tem- porarily relax overlap constraints into density constraints to avoid vertices clustered in small regions. Amnreg- ular bin structureBis superimposed over the fixed outline and vertex area is assigned to bins based on the positions of vertices. LetDijdenote the density of binBi j 2 B, de-
fined as the total cell area assigned to binBijdivided by
its capacity. Vertex overlap is limited implicitly byDi j K;8Bi j2B;for someK1 (density target).
144
C
Circuit Placement Problem 1 (Circuit Placement)INPUT: Circuit hypergraph Gh(Vh,Eh) and a fixed outline for the placement area.
OUTPUT: Positions for each vertex vi 2 Vh such that (1) wirelength is minimized and (2) the area-density con- straints Di jK are satisfied for all Bi j2B.
Key Results
An unconstrained optimal position of a single placeable vertex connected to fixed vertices can be found in lin- ear time as the median of adjacent positions [8]. Uncon- strained HPWL minimization for multiple placeable ver- tices can be formulated as a linear program [7,10]. For each
ek 2Eh, upper and lower bound variablesUkandLkare
added. The cost ofek (x-direction only) is the difference
betweenUkandLk. EachUk(Lk) comes withpkinequal-
ity constraints that restricts its value to be larger (smaller) than the position of every vertexi 2 Ck. A hypergraph
withnvertices andmhyperedges is represented by a lin- ear program withn+ 2mvariables and 2Pconstraints.
Linear programming has poor scalability, and inte- grating constraint-tracking into optimization is difficult. Other approaches include non-linear optimization and partitioning-based methods.
Combinatorial Techniques for Wirelength Minimization
The no-overlap constraints are not convex and cannot be directly added to the linear program for HPWL minimiza- tion. Such a program is first solved directly or by casting its dual as an instance of the min-cost max-flow problem [12]. Vertices often cluster in small regions of high density. One can lower-bound the distance between closely-placed ver- tices with a single linear constraint that depends on the rel- ative placement of these vertices [10]. The resulting opti- mization problem is incrementally re-solved, and the pro- cess repeats until the desired density is achieved.
Themin-cut placementtechnique is based on balanced min-cut partitioning of hypergraphs and is more focused on density constraints [11]. Vertices of the initial hyper- graph are first partitioned in two similar-sized groups. One of them is assigned to the left half of the placement region, and the other one to the right half. Partitioning is per- formed by the Multi-level Fiduccia–Mattheyses (MLFM) heuristic [9] to minimize connections between the two groups of vertices (the net-cut objective). Each half is par- titioned again, but takes into account the connections to the other half [11]. At the large scale, ensuring the simi- lar sizes of bi-partitions corresponds to density constraints and cut minimization corresponds to HPWL minimiza-
tion. When regions become small and contain< 10 ver- tices, optimal positions can be found with respect to dis- crete slot constraints by branch-and-bound [2]. Balanced hypergaph partitioning is NP-hard [4], but the MLFM heuristic takesO((V+E) logV) time. The entire min-cut placement procedure takesO((V +E)(logV)2) time and can process hypergraphs with millions of vertices in sev- eral hours.
A special case of interest is that of one-dimensional placement. When all vertices have identical width and none of them are fixed, one obtains the NP-hard MIN-
IMUM LINEAR ARRANGEMENT problem [4] which can be approximated in polynomial time within O(logV) and solved exactly for trees inO(V3) time as shown by
Yannakakis. The min-cut technique described above also works well for the related NP-hard MINIMUM-CUTLIN-
EARARRANGEMENTproblem [4]. Nonlinear Optimization
Quadratic and generic non-linear optimization may be faster than linear programming, while reasonably approx- imating the original formulation. The hypergraph is rep- resented by a weighted graph where wij represents the
weight on the 2-pin edge connecting verticesviandvjin
the weighted graph. When an edge is absent,wi j= 0, and
in generalwi i=˙i¤jwi j.
Quadratic Placement A quadratic placement (x-direc- tion only) is given by
˚(x) =X i;j wi j (xixj)2= 1 2x TQx +cTx+ const: (1)
The global minimum of˚(x) is found by solvingQx+c=0 which is a sparse, symmetric, positive-definite system of linear equations (assuming 1 fixed vertex), efficiently solved to sufficient accuracy using any number of itera- tive solvers. Quadratic placement may have different op- tima depending on the model (clique or star) used to rep- resent hyperedges. However, for ak-pin hyperedge, if the weight on the 2-pin edges introduced is set toWcin the
clique mode andkWcin the star model, then the models
are equivalent in quadratic placement [7].
Linearized Quadratic Placement Quadratic placement can produce lower quality placements. To approximate the linear objective, one can iteratively solve Eq. (1) withwi j=
1/jxixjjcomputed at every iteration. Alternatively, one
can solve a single ˇ-regularized optimization problem given by˚ˇ(x) = minxPi;jwi j
q
Circuit Placement
C
145 e. g., using a Primal-Dual Newton method with quadraticconvergence [1].
Half-Perimeter Wirelength Placement HPWL can be provably approximated by strictly convex and differen- tiable functions. For 2-pin hyperedges, ˇ-regularization can be used [1]. For anm-pin hyperedge (m 3), one can rewrite HPWL as the maximum (l1-norm) of all
m(m1)/2 pairwise distancesjxixjjand approximate
thel1-norm by thelp-norm (p-th root of the sum ofp-
th powers). This removes all non-differentiabilities except at0which is then removed withˇ-regularization. The re- sulting HPWL approximation is given by
HPWLpˇreg(Gh) = X ek2Eh X i;j2Ck jxixjjp+ˇ 1/p (2) which overestimates HPWL with arbitrarily small relative error asp! 1andˇ!0 [7]. Alternatively, HPWL can be approximated via the log-sum-exp formula given by
HPWLlog-sum-exp(Gh) = ˛ X ek2Eh h ln X i2Ck expxi ˛ + ln X vi2Ck expxi ˛ i (3) where˛> 0 is a smoothing parameter [6]. Both approxi- mations can be optimized using conjugate gradient meth- ods.
Analytic Techniques for Target Density Constraints The target density constraints are non-differentiable and are typically handled by approximation.
Force-Based Spreading The key idea is to add constant forcesfthat pull vertices always from overlaps, and recom- pute the forces over multiple iterations to reflect changes in vertex distribution. For quadratic placement, the new optimality conditions areQx+c+f=0[8]. The constant force can perturb a placement in any number of ways to satisfy the target density constraints. The forcefis com- puted using a discrete version of Poisson’s equation. Fixed-Point Spreading A fixed point f is a pseudo- vertex with zero area, fixed at (xf,yf), and connected to
one vertex H(f) in the hypergraph through the use of a pseudo-edge with weightwf,H(f). Quadratic placement
with fixed points is given by˚(x) =Pi;jwi;j(xixj)2+
P
fwf;H(f)(xH(f)xf)2. Each each fixed pointf intro-
duces a quadratic termwf;H(f)(xH(f)xf)2. By manipulat-
ing the positions of fixed points, one can perturb a place- ment to satisfy the target density constraints. Compared to constant forces, fixed points improve the controllability and stability of placement iterations [5].
Generalized Force-Directed Spreading The Helmholtz equation models a diffusion process and makes it ideal for spreading vertices [3]. The Helmholtz equation is given by
@2(x;y) @x2 + @2(x;y) @y2 (x;y) =D(x;y); (x;y) 2 R@ @v = 0; (x;y) on the boundary ofR (4) where> 0, vis an outer unit normal,Rrepresents the fixed outline, andD(x,y) represents the continuous den- sity function. The boundary conditions,@/@v = 0, spec- ify that forces pointing outside of the fixed outline be set to zero – this is a key difference with the Poisson method which assumes that forces become zero at infinity. The valueijat the center of each binBijis found by discretiza-
tion of Eq. (4) using finite differences. The density con- straints are replaced byi j = ˆK;8Bi j 2 Bwhere ˆK is
a scaled representative of the density targetK. Wirelength minimization subject to the smoothed density constraints can be solved via Uzawa’s algorithm. For quadratic wire- length, this algorithm is a generalization of force-based spreading.
Potential Function Spreading Target density con- straints can also be satisfied via a penalty function. The area assigned to bin Bij by vertex vi is represented by
Potential(vi;Bi j) which is a bell-shaped function. The use
of piecewise quadratic functions make the potential func- tion non-convex, but smooth and differentiable [6]. The penalty term given by
Penalty = X Bi j2B X vi2Vh Potential(vi;Bi j)K 2 (5) can be combined with a wirelength approximation to ar- rive at an unconstrained optimization problem which is solved using an efficient conjugate gradient method [6]. Applications
Practical applications involve more sophisticated inter- connect objectives, such as circuit delay, routing conges- tion, power dissipation, power density, and maximum
146
C
Circuit Retimingthermal gradient. The above techniques are adapted to handle multi-objective optimization. Many such exten- sions are based on heuristic assignment of net weights that encourage the shortening of some (e. g., timing-critical and frequently-switching) connections at the expense of other connections. To moderate routing congestion, pre- dictive congestion maps are used to decrease the maximal density constraint for placement in congested regions. An- other application is in physical synthesis, where incremen- tal placement is used to evaluate changes in circuit topol- ogy.
Experimental Results
Circuit placement has been actively studied for the past 30 years and a wealth of experimental results are reported throughout the literature. A 2003 result demonstrated that placement tools could produce results as much as 1:41
to 2:09known optimal wirelengths on average (advances have been made since this study). A 2005 placement con- test found that a set of tools produced placements with wirelengths that differed by as much as 1:84on average. A 2006 placement contest found that a set of tools pro- duced placements that differed by as much as 1:39on av- erage when the objective was the simultaneous minimiza- tion of wirelength, routability and run time. Placement run times range from minutes for smaller instances to hours for larger instances, with several millions of variables. Data Sets
Benchmarks include the ICCAD ‘04 suite (http://vlsicad. eecs.umich.edu/BK/ICCAD04bench/), the ISPD ‘05 suite (http://www.sigda.org/ispd2005/contest.htm) and the ISPD ‘06 suite (http://www.sigda.org/ispd2006/contest. htm). Instances in these benchmark suites contain be- tween 10K to 2.5M placeable objects. Other common suites can be found, including large-scale placement in- stances problems with known optimal solutions (http:// cadlab.cs.ucla.edu/~pubbench).
Cross References
Performance-Driven Clustering
Recommended Reading
1. Alpert, C.J., Chan, T., Kahng, A.B., Markov, I.L., Mulet, P.: Faster minimization of linear wirelength for global placement. IEEE Trans. CAD17(1), 3–13 (1998)
2. Caldwell, A.E., Kahng, A.B., Markov, I.L.: Optimal partitioners and end-case placers for standard-cell layout. IEEE Trans. CAD 19(11), 1304–1314 (2000)
3. Chan, T., Cong, J., Sze, K.: Multilevel generalized force-directed method for circuit placement. Proc. Intl. Symp. Physical De- sign. ACM Press, San Francisco, 3–5 Apr 2005. pp. 185–192 (2005)
4. Ausiello, G., Crescenzi, P., Gambosi, G., Kann, V., Marchetti- Spaccamela, A., Protasi, M.: Complexity and Approximation: Combinatorial optimization problems and their approximabil- ity properties. Springer (1998)
5. Hu, B., Marek-Sadowska, M.: Multilevel fixed-point-addition- based VLSI placement. IEEE Trans. CAD 24(8), 1188–1203 (2005)
6. Kahng, A.B., Wang, Q.: Implementation and extensibility of an analytic placer. IEEE Trans. CAD24(5), 734–747 (2005) 7. Kennings, A., Markov, I.L.: Smoothing max-terms and analytical
minimization of half-perimeter wirelength. VLSI Design14(3), 229–237 (2002)
8. Kennings, A., Vorwerk, K.: Force-directed methods for generic placement. IEEE Trans. CAD25(10), 2076–2087 (2006) 9. Papa, D.A., Markov, I.L.: Hypergraph partitioning and cluster-
ing. In: Gonzalez, T. (ed.) Handbook of algorithms. Taylor & Francis Group, Boca Raton, CRC Press, pp. 61–1 (2007) 10. Reda, S., Chowdhary, A.: Effective linear programming based
placement methods. In: ACM Press, San Jose, 9–12 Apr 2006
11. Roy, J.A., Adya, S.N., Papa, D.A., Markov, I.L.: Min-cut floorplace- ment. IEEE Trans. CAD25(7), 1313–1326 (2006)
12. Tang, X., Tian, R., Wong, M.D.F.: Optimal redistribution of white space for wirelength minimization. In: Tang, T.-A. (ed.) Proc. Asia South Pac. Design Autom. Conf., ACM Press, 18–21 Jan 2005, Shanghai. pp. 412–417 (2005)