Definitioncore
Shape function
Also called shape curve.
The staircase curve of allowed width and height pairs of a block, which for a slicing tree is combined bottom up by adding widths or heights.
A shape function tells, for each width, the least height of a rectangle that holds a block, so it describes all the shapes that the block can take. A hard block of fixed size that can turn by a quarter turn has a staircase with two steps. A soft block of fixed area has a curve between two limits of the aspect ratio. Shape functions are the tool that makes slicing floorplans easy to size: at a horizontal cut the shape functions of the two parts add up, and at a vertical cut their inverse functions add up. So a pass from the leaves of the slicing tree to the root gives the shape function of the whole chip, and its lowest point of is the least area. The corners of a staircase are the Pareto front of the shapes, and Stockmeyer's algorithm is this pass on lists of corners.
Definition
Shape function of a block. Let be the set of shapes that a block can take: each shape is a rectangle of width and height that the block fills. A room of width and height holds the block if some has and . The shape function of the block is
with when no shape is narrow enough. The function is nonincreasing, and the set of rooms that hold the block is the region above its graph, which is closed upward and to the right. The inverse shape function describes the same region from the other side.
Staircase and corners. If is finite, is a step function. Its corners are the shapes in that no other shape in dominates, that is, the points with no other with and . Sorted by width, the corners have strictly increasing widths and strictly decreasing heights, and the list of corners stores exactly.
Common blocks.
- A hard block with that can turn has the two corners and . A square block, or a block that cannot turn, has one corner.
- A soft block of area whose aspect ratio must lie in has the widths from to . Its shape function is for , equal to for , and equal to for , since a wider room can hold the widest shape. This function is convex on : the slope increases with , and it then jumps up to .
Combination at a cut. Let a node of a slicing tree have the children and with shape functions and and inverse functions and .
- At an node, is above . A room of width holds both exactly when its height is at least , so .
- At a node, is to the right of . In the same way, a room of height holds both exactly when its width is at least , so .
For the node, put at the bottom in its best shape for width and on top of it in its best shape for width : the height is . Conversely, in any room of width the two parts have widths at most , so their heights are at least and because and are nonincreasing. The case is the same with the two axes swapped.
Number of corners. If has corners and has corners, then has at most corners. The sum changes only at a width where or changes, so each corner of the sum has the width of a corner of or of . The sum is finite only from on. If the two first widths differ, the smaller one is below and gives no corner. If they are equal, they give the same width. In both cases at most widths remain. The same holds at a node with heights in place of widths. By induction, a node with hard blocks below it, each with two corners, has at most corners, and the merge of two sorted corner lists takes time linear in their lengths.
Convexity is kept. For soft blocks the shape functions are convex. A sum of convex functions is convex, so an node keeps convexity. The region above the graph of a convex nonincreasing function is a convex set, so its inverse function is convex too, and a node, which adds the inverse functions, keeps convexity as well. So a slicing tree of soft blocks has a convex shape function, and the sizing of soft blocks can be done with convex methods such as geometric programming.
Examples and non-examples
Take three hard blocks that can turn: is , with corners and . is the square , with the one corner . is , with corners and .
Side by side. adds widths at each height. For the least widths are and , which gives the corner . For the block needs width , which gives . Below height the square does not fit. So the corners are and .
Stacked. adds heights at each width. At the heights are and , which gives , and at they are and , which gives . So the corners are and .
A whole tree. The four trees with and below and added at the root give these corner lists:
| expression | corners | least area |
|---|---|---|
| , | ||
| , , | ||
| , | ||
| , , |
None of them is the best slicing floorplan. The expression first stacks on : at widths , and the heights are , and , so the corners are , and , which is corners, the bound. Then the square goes to the right, and each width grows by : the corners are , and . The corner has area , the least over all slicing trees of these three blocks. The blocks have area , so the best slicing floorplan leaves units empty. A node must keep all its corners, not only the one of least area: in the root uses both corners of , and the corner of area , which is larger than the of , gives the root corner with the least height.
Non-example: a dominated shape. A block with the allowed shapes and has the one corner . The shape is not on the staircase, because each room that holds it also holds .
Non-example: a floorplan without a cut. In the pinwheel of five rooms no segment runs from one side of the chip to the other. The least height at width is then not a sum of the shape functions of two parts, and the combination rules do not apply. For floorplans that are not slicing, the choice of the orientations of the blocks is NP-complete (Stockmeyer 1983).
Related definitions
- Pareto front and Pareto dominance. The corners of a staircase are the Pareto front of the shapes under the order of both coordinates.
- Stockmeyer floorplan sizing. The merge of corner lists up a slicing tree with the time bound for depth .
- Normalized Polish expression and Wong-Liu floorplanning. The annealing search over slicing trees that evaluates each tree by its shape function.
- Slicing floorplan. The structure on which the combination rules hold.
- Floorplanning. The design problem where the shapes of the blocks are chosen.
References
- Ralph H. J. M. Otten, Automatic floorplan design, Proceedings of the 19th Design Automation Conference, 261 to 267, 1982, shapes of blocks and of slicing structures
- Ralph H. J. M. Otten, Efficient floorplan optimization, Proceedings of the IEEE International Conference on Computer Design, 1983, shape functions and their addition at the cuts of a slicing tree
- Larry Stockmeyer, Optimal orientations of cells in slicing floorplan designs, Information and Control 57(2-3), 91 to 101, 1983, the merge of lists of non-dominated shapes and the bound on their lengths
- Andrew B. Kahng, Jens Lienig, Igor L. Markov and Jin Hu, VLSI Physical Design, From Graph Partitioning to Timing Closure, second edition, Springer, 2022, Chapter 3, Chip Planning (floorplan sizing with shape functions; general locator)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag CXGS6Q Edit this page History Report an error Markdown