Docsity

Efficient VLSI Module Placement using Sequence-Pairs by Murata et al. - Prof. Sung Lim, Papers of Electrical and Electronics Engineering

Toggle sidebar
bg1
1518 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 15, NO. 12, DECEMBER 1996
VLSI Module Placement Based
on Rectangle-Packing by the
Sequence-Pair
Hiroshi Murata, Member, IEEE, Kunihiro Fujiyoshi, Member, IEEE, Shigetoshi Nakatake, Student Member, IEEE,
and Yoji Kajitani, Fellow, IEEE
Abstract— The earliest and the most critical stage in VLSI
layout design is the placement. The background of which is the
rectangle packing problem: Given set of rectangular modules of
arbitrary sizes, place them without overlap on a plane within
a rectangle of minimum area. Since the variety of the packing
is uncountably infinite, the key issue for successful optimization
is the introduction of a finite solution space which includes an
optimal solution. This paper proposes such a solution space where
each packing is represented by a pair of module name sequences,
called a sequence-pair. Searching this space by simulated an-
nealing, hundreds of modules have been packed efficiently as
demonstrated. For applications to VLSI layout, we attack the
biggest MCNC benchmark ami49 with a conventional wiring area
estimation method, and obtain a highly promising placement.
I. INTRODUCTION
LAYOUT IN PHYSICAL DESIGN of VLSI is, in short, to
pack all the circuit elements in a chip without violating
design rules, so that the circuit performs well and the pro-
duction yield is high. There are so much variety of targets in
different stages but the following problem is the core of them.
Rectangle Packing Problem: RP
Let be a set of rectangular modules of fixed orienta-
tions, whose heights and widths are given in real numbers. A
packing of is a nonoverlapping placement of the modules.
The minimum bounding rectangle of a packing is called the
chip. Find a packing of onto a chip of the minimum area.
A packing of six modules is shown in Fig. 1.
The decision version of our problem RP(A) is to decide
whether can be packed onto a chip of area . Baker,
Coffman, and Rivest [1] proved the -completeness of a
similar problem RP(H,W) : decide whether can be packed
onto the chip of height and width . We can show
RP(A) to be -complete using the fact that any instance
of RP(H,W) can be polynomially reducible to an instance of
Manuscript received February 20, 1996; revised September 24, 1996. This
work was supported in part by Research Body CAD21 at JAIST. This paper
was recommended by Associate Editor C.-K. Cheng.
H. Murata and K. Fujiyoshi are with the School of Information Science,
Japan Advanced Institute of Science and Technology, Tatsunokuchi, Ishikawa
923-12 Japan.
S. Nakatake and Y. Kajitani are with the Department of Electrical and
Electronic Engineering, Tokyo Institute of Technology, Meguro-ku, Tokyo
152, Japan.
Publisher Item Identifier S 0278-0070(96)09413-4.
Fig. 1. A packing on a chip
W
2
H
.
RP(A) by the following conversion.
the maximum width over modules
Our problem RP is harder than RP(A),so -hard.
Since the heights and widths of modules are real numbers,
RP is not simply a combinatorial optimization problem. In
fact, there have been several numerical approaches [2], [3].
They first generate a possibly overlapping arrangement of
modules, and then move modules to reduce the overlapping
cost. But the overlap elimination is very hard for the numerical
approaches without ad hoc post-processing.
An alternative approach is “combinatorial search”. In this
approach, a set of codes is defined as a solution space. Each
code represents a construction of placement. A code is said to
be feasible if the construction is consistent, i.e., there exists
a packing corresponding to the code. The evaluation of a
feasible code is the area of the chip, and the evaluation of an
infeasible code is infinitely negative. The combinatorial search
aims at finding a best code in the solution space. However,
exhaustive search of the whole space will take too much time.
Since the problem is NP-hard, the size of any such solution
0278–0070/96$05.00 1996 IEEE
pf3
pf4
pf5

Partial preview of the text

Download Efficient VLSI Module Placement using Sequence-Pairs by Murata et al. - Prof. Sung Lim and more Papers Electrical and Electronics Engineering in PDF only on Docsity!

1518 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 15, NO. 12, DECEMBER 1996

VLSI Module Placement Based

on Rectangle-Packing by the

Sequence-Pair

Hiroshi Murata, Member, IEEE , Kunihiro Fujiyoshi, Member, IEEE , Shigetoshi Nakatake, Student Member, IEEE ,

and Yoji Kajitani, Fellow, IEEE

Abstract— The earliest and the most critical stage in VLSI layout design is the placement. The background of which is the rectangle packing problem : Given set of rectangular modules of arbitrary sizes, place them without overlap on a plane within a rectangle of minimum area. Since the variety of the packing is uncountably infinite, the key issue for successful optimization is the introduction of a finite solution space which includes an optimal solution. This paper proposes such a solution space where each packing is represented by a pair of module name sequences, called a sequence-pair. Searching this space by simulated an- nealing, hundreds of modules have been packed efficiently as demonstrated. For applications to VLSI layout, we attack the biggest MCNC benchmark ami49 with a conventional wiring area estimation method, and obtain a highly promising placement.

I. I NTRODUCTION

L

AYOUT IN PHYSICAL DESIGN of VLSI is, in short, to pack all the circuit elements in a chip without violating design rules, so that the circuit performs well and the pro- duction yield is high. There are so much variety of targets in different stages but the following problem is the core of them. Rectangle Packing Problem: RP Let be a set of rectangular modules of fixed orienta- tions, whose heights and widths are given in real numbers. A packing of is a nonoverlapping placement of the modules. The minimum bounding rectangle of a packing is called the chip. Find a packing of onto a chip of the minimum area. A packing of six modules is shown in Fig. 1. The decision version of our problem RP(A) is to decide whether can be packed onto a chip of area. Baker, Coffman, and Rivest [1] proved the -completeness of a similar problem RP(H,W) : decide whether can be packed onto the chip of height and width. We can show RP(A) to be -complete using the fact that any instance of RP(H,W) can be polynomially reducible to an instance of

Manuscript received February 20, 1996; revised September 24, 1996. This work was supported in part by Research Body CAD21 at JAIST. This paper was recommended by Associate Editor C.-K. Cheng. H. Murata and K. Fujiyoshi are with the School of Information Science, Japan Advanced Institute of Science and Technology, Tatsunokuchi, Ishikawa 923-12 Japan. S. Nakatake and Y. Kajitani are with the Department of Electrical and Electronic Engineering, Tokyo Institute of Technology, Meguro-ku, Tokyo 152, Japan. Publisher Item Identifier S 0278-0070(96)09413-4.

Fig. 1. A packing on a chip W  H.

RP(A) by the following conversion. the maximum width over modules

Our problem RP is harder than RP(A) , so -hard. Since the heights and widths of modules are real numbers, RP is not simply a combinatorial optimization problem. In fact, there have been several numerical approaches [2], [3]. They first generate a possibly overlapping arrangement of modules, and then move modules to reduce the overlapping cost. But the overlap elimination is very hard for the numerical approaches without ad hoc post-processing. An alternative approach is “combinatorial search”. In this approach, a set of codes is defined as a solution space. Each code represents a construction of placement. A code is said to be feasible if the construction is consistent, i.e., there exists a packing corresponding to the code. The evaluation of a feasible code is the area of the chip, and the evaluation of an infeasible code is infinitely negative. The combinatorial search aims at finding a best code in the solution space. However, exhaustive search of the whole space will take too much time. Since the problem is NP -hard, the size of any such solution 0278–0070/96$05.00  1996 IEEE

MURATA et al. : VLSI MODULE PLACEMENT 1519

space is expected to be exponential. Several heuristics have been proposed to find a good solution in a moderate time, for example, simulated annealing and genetic algorithms. Given a time limit, such a heuristic stops the search half-way and outputs the best solution found so far. For this search to be effective, the minimum requirement of the solution space is the following four items.

  1. The solution space is finite.
  2. Every solution is feasible.
  3. Realization of a code is possible in polynomial time.
  4. There exists a code which corresponds to one of the optimal solutions. The solution space that satisfies the above four requirements is called P-admissible. The reasons for 1), 3), and 4) are obvious. That for 2) is most heuristics pick up one solution after another along the neighboring structure defined on the space, consulting with the difference of evaluations (gain) to the previous solution. Therefore, if infeasible solutions are included, the continuity will be destroyed and convergence to a feasible solution is not guaranteed. A known practical solution space is one derived from the slicing floorplan proposed by Otten [4] and others. It satisfies 1), 2), and 3). Several optimization heuristics are applied for the space, and one of the most successful approaches uses simulated annealing [5]. However, since the optimal solution can be nonslicing, 4) is not satisfied. This fact discourages us to start searching for the best in the space. Efforts have been paid to let the space include nonslicing structures [6], [7], but they have not been successful to satisfy 4). Another approach is proposed by Onodera, Taniguchi, and Tamaru [8]. They construct a solution space by assigning one out of the four relations, “left of,” “right of,” “above,” and “below,” to every pair of modules. This space satisfies 4) since any packing satisfies a combination of the relations. But there are many infeasible codes such as; module is left of module , is left of and is left of. Thus their space is not P-admissible either. As a consequence, the space does not admit heuristics such as simulated annealing. In their paper, exhaustive search with a branch-and-bound technique is applied to find an exactly optimal solution, but the size of tractable problems is limited up to six modules. This paper provides a P-admissible solution space, in which each code is a pair of module name sequences. By searching this space, it has become possible to pack hundreds of modules efficiently, as demonstrated in Figs. 7 and 8. To utilize this solution space of RP for VLSI layout design, the evaluation of a packing has to be modified to consider wires. Some evaluating functions are available for estimating the final chip area [5], [8]. Among them, we use the formula proposed by [8]. The largest MCNC building-block benchmark was successfully placed by simulated annealing in about 30 min (Fig. 9). This paper is organized as follows. In Section II, a mapping from a given packing to a pair of module name sequences is given. It is proved that at least one of the optimal solutions is included in the space. Section III provides a procedure for an

Fig. 2. Positive step-lines.

inverse mapping from a sequence pair to a packing. Section IV demonstrates how the space can be utilized in VLSI placement problems. Section V then concludes with final remarks. An early version of this paper was presented in [9].

II. FROM A PACKING TO A SEQUENCE -PAIR

Let be a packing on chip. See Fig. 1 for an example. We describe a procedure called Gridding , which encodes to a sequence-pair , an ordered pair of module name sequences.

A. Gridding For each module , we draw lines using a pebble (which is regarded as the nib of a pen). The pebble is initially located at the upper right corner of and starts to move upward. It turns its direction alternatively right and up until it reaches the upper right corner without crossing: i) boundaries of other modules, ii) previously drawn lines, and iii) the boundary of the chip. The drawn line is called the up-right step-line of module. Similarly, the down-left step-line of is drawn. The union of these two step-lines and the connecting diagonal line of is called the positive step-line of. It is always possible to draw such positive step-line for a module. They are referred to by the corresponding module names. An example of resultant positive step-lines is shown in Fig. 2. From the construction, we have that no two positive step- lines cross each other. It implies that these positive step-lines can be linearly ordered, as well as the corresponding modules. Here we order the positive step-lines from left. Let be the module name sequence in this order. In Fig. 2, “ ” is obtained. Negative step-lines are drawn similarly as the positive step- lines. The difference is that a negative step-line is the union of the left-up step-line and right-down step-line , whose direction changing policies are “left, up, left, up, ,” and “right, down, right, down, ,” respectively. We order the negative step-lines also from left. Let be the module name sequence in this order.

MURATA et al. : VLSI MODULE PLACEMENT 1521

Fig. 4. A packing on an oblique grid for (+; ) = (ecadf b; f cbead).

  1. : and for each module , and if and only if bb^ (“left of” constraint)
  2. Vertex-weight: zero for and , width of module for the other vertices Similarly, the vertical-constraint graph is con- structed using “below” constraint and the height of each module. Neither of these graphs contains any directed cycle. We set the X-coordinate of to be the longest path length from to in. The Y-coordinate of is set independently using. If two modules and are in horizontal relation, then there is an edge between and in , hence they do not overlap horizontally in the resultant placement. Similarly, if and are in vertical relation, they do not overlap vertically. Thus no two modules overlap each other in the resultant placement because any pair of modules are either in horizontal or vertical relation. The width and the height of the chip is determined by the longest path length between the source and the sink in and , respectively. Since the width and the height of the chip is independently minimum, the resultant packing is the best of all the packings under the constraint. The longest path length calculation on each graph can be done in time, proportional to the number of edges in the graph. As an example, and are shown in Fig. 5 for

. The resultant placement after the longest path length calculation is shown in Fig. 6.

C. The P-admissible Solution Space

Previous discussions conclude: Theorem 3: The set of all sequence-pairs is a P-admissible solution space of RP. More precisely, it consists of sequence-pairs, each of which can be mapped to a packing in time, and at least one of which corresponds to one of the optimal solutions of RP. Our discussion started for minimizing the area of the chip. However, all the discussions hold as long as the evaluating

(a)

(b) Fig. 5. Constraint graphs GH (above) and GV (below) (transitive edges are not drawn for simplicity).

function is independently nondecreasing with respect to the width and the height of the chip. Therefore, we may assume instead, for example, perimeter of the chip, area of the chip of prespecified aspect ratio, and the height of the chip when its width is fixed. This fact will extend the usefulness of our solution space. It has also been assumed that the orientation of each module (vertically laid or horizontally laid) is fixed. When the orientation is also requested to be optimized, we hold a {0,1} sequence of length , expressing the orientation of each module being horizontal or vertical. The size of the solution space increases to. (The orientation optimization for a fixed floorplan is known to be NP-hard [10].) This technique can be easily extended to so-called “soft” modules, by preparing three or more candidates of (width, height) pairs per module [11]. There is a sequence-pair for which another sequence-pair provides no worse packing, independent of the sizes of the modules. For example, if corresponds to an optimal packing, then or also corre- sponds to an optimal packing, regardless of the widths and the

1522 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 15, NO. 12, DECEMBER 1996

Fig. 6. A best packing under the constraint implied by (+; ) = (ecadf b; f cbead).

heights of modules and. Then, the former sequence- pair, , is redundant for our current objective to find a packing with smaller area. We extend our evaluating function to consider wires in the next section.

IV. USE OF THE SOLUTION SPACE AND EXPERIMENTS

A. Rectangle Packing

To show the usefulness of the proposed solution space, dimensions of 146 modules were extracted from a printed circuit board in a personal computer, and packed by standard simulated annealing method. It uses three kinds of pair- interchanges: i) two module names in , ii) two module names both in and , and iii) the width and the height of a module, where the last one is for orientation optimization. The initial sequence-pair was made as , which corresponds to a linear horizontal arrangement of modules. The temperature was decreased exponentially. From a heuristic point of view, operation i) was selected with higher probability in higher temperature, and operation iii) was selected with higher probability in lower temperature. The result is shown in Fig. 7. Computation on Sun Sparc- StationII stopped in 29.9 min reaching the terminating tem- perature. The algorithm searched at most 606 192 distinct sequence-pairs out of the solution space of size 146 1.23 10. Notice that, the search of only a fraction about 4.92 of the solution space was enough to obtain the placement shown in Fig. 7. As another challenge, we tried 500 modules, using 18.83 h to get the result shown in Fig. 8.

B. Module Placement with Wires

For VLSI placement, we extend the evaluation to consider wires. Among various possible evaluations about wires, we focus on the final chip area after all wires are detailed-routed.

Fig. 7. Packing of 146 modules.

Fig. 8. Packing of 500 modules.

However, it is difficult at this moment and hence we made use of an estimate of the final chip area without the actual routing phase. Let be a sequence-pair, be one of the optimal packings under the constraint implied by , and and be the width and the height of. Terminals are given as fixed points on the boundary of each module. A net is a set of terminals (multiterminal net), which must be connected by wires, later in detailed-routing phase. A set of nets is given as the netlist. Given terminals of a net , which spread over , the width and the height of the smallest bounding box of

1524 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 15, NO. 12, DECEMBER 1996

[2] L. Sha and R. W. Dutton, “An analytical algorithm for placement of arbitrarily sized rectangular blocks,” in Proc. 22th ACM/IEEE Design Automation Conf. , 1985, pp. 602–608. [3] A. Alon and U. Ascher, “Model and solution strategy for placement of rectangular blocks in the euclidean plane,” IEEE Trans. Computer-Aided Design , vol. 7, pp. 378–386, 1988. [4] R. H. J. M. Otten, “Automatic floorplan design,” in Proc. 19th ACM/IEEE Design Automation Conf. , 1982, pp. 261–267. [5] D. F. Wong and C. L. Liu, “A new algorithm for floorplan designs,” in Proc. 23rd ACM/IEEE Design Automation Conf. , 1986, pp. 101–107. [6] W. M. Dai and E. Kuh, “Simultaneous floorplanning and global routing for hierarchical building block layout,” IEEE Trans. Computer-Aided Design , vol. CAD-6, pp. 828–837, 1987. [7] T. C. Wang and D. F. Wong, “An optimal algorithm for floorplan area optimization,” in Proc. 27th ACM/IEEE Design Automation Conf. , 1990, pp. 180–186. [8] H. Onodera, Y. Taniguchi, and K. Tamaru, “Branch-and-bound place- ment for building block layout,” in Proc. 28th ACM/IEEE Design Automation Conf. , 1991, pp. 433–439. [9] H. Murata, K. Fujiyoshi, S. Nakatake, and Y. Kajitani, “Rectangle- packing-based module placement,” in IEEE Int. Conf. Computer-Aided Design , 1995, pp. 472–479. [10] L. Stockmeyer, “Optimal orientations of cells in slicing floorplan designs,” Inform. Contr. , vol. 59, pp. 91–101, 1983. [11] P. Pan, W. Shi, and C. L. Liu, “Area minimization for hierarchical floorplans,” in IEEE Int. Conf. Computer-Aided Design , 1994, pp. 436–440. [12] H. Esbensen and E. S. Kuh, “An MCM/IC timing-driven placement algorithm featuring explicit design space exploration,” in Proc. IEEE Multi-Chip Module Conf. , 1996, pp. 170–175. [13] Y. Kajitani, “Order of channels for safe routing and optimal compaction of routing area,” IEEE Trans. Computer-Aided Design , vol. 2, pp. 293–300, 1983.

Hiroshi Murata (M’95) was born in 1957. He re- ceived the B.E. degree in electrical engineering from Kanazawa University, Ishikawa, Japan, in 1980, and the M.E. degree in information science from Japan Advanced Institute of Science and Technol- ogy (JAIST), Ishikawa, in 1994. He is currently working toward the Ph.D. degree at JAIST. He joined Computer Applications Co., Ltd., Tokyo, Japan, in 1980, and moved to Komatsu Murata Mfg. Co., Ltd., Ishikawa, Japan, in 1984. He has been working on customizing their CAD environment for their Hybrid IC and PCB products. His research interests are in CAD algorithms for PCB’s and VLSI’s.

Kunihiro Fujiyoshi (M’96) was born in Tokyo, in

  1. He received the B.E., M.E., and D.E. degrees in electrical and electronic engineering from Tokyo Institute of Technology, Tokyo, Japan, in 1987, 1989 and 1994, respectively. He has been a research associate with the School of Information Science at the Japan Advanced In- stitute of Science and Technology since 1992. His research interests are in combinatorial algorithms and VLSI layout design.

Shigetoshi Nakatake (S’94) was born in 1969. He received the B.E. degree in electrical and electronic engineering from Tokyo Institute of Technology, in 1992 and M.E. degree in information science from the Japan Advanced Institute of Science and Technology in 1994. He was at the doctoral program of the Institute until 1996. Since 1996, he has been working as a research associate with the Department of Electrical and Electronic Engineering, Tokyo Institute of Tech- nology. His current research interests are in VLSI layout design and combinatorial algorithms.

Yoji Kajitani (F’92) was born in 1941. He received the B.S., M.S., and D.E. degrees from the Tokyo Institute of Technology, all in electrical engineering, in 1964, 1966, and 1969, respectively. He has been a Professor with the Department of Electrical and Electronic Engineering, Tokyo Insti- tute of Technology, since 1985. He was a Professor with the Japan Advanced Institute of Science and Technology from 1992 to 1995. His current research interest is in combinatorial algorithms applied to VLSI layout design.