Algorithmresearch
SimPL
Also called simple placer with lookahead legalization.
Kim, Lee and Markov's placer that alternates a quadratic solve with lookahead legalization by recursive spreading, and pulls cells toward the spread positions.
- Solves
- Placement
- Time
- O(k (t (n + P) + n log n log(K S))) worst · averageO(t (n + P) + n log n log(K S)) best
- Space
- O(n + P) extra
- Where
- K = the number of rows; P = the number of pins; S = the number of sites per row; k = the number of iterations; n = the number of movable cells; t = the number of conjugate gradient steps per solve
- Model
- Real RAM
- Properties
- deterministicnot exactrecursive
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Myung Chul Kim, Dong Jin Lee, Igor L. Markov, 2010
SimPL is a global placer for the placement problem of standard cells in chip design. It keeps two placements and improves them in turn. The lower-bound (LB) placement minimizes a quadratic model of the wirelength by a sparse linear solve, as in quadratic placement, and ignores overlap, so its cells crowd together. The upper-bound (UB) placement spreads the LB cells over the chip by lookahead legalization, a recursive bisection that splits the cells in proportion to the free room, so it has almost no overlap. Then each cell gets a pseudo-net to its UB position, an anchor, and the next LB solve pulls it there; the anchor weights grow, so the two placements meet. The names are informal: the LB wirelength is not a proved lower bound on the optimum. Kim, Lee and Markov published SimPL in 2010; the method is short and fast and was competitive with much larger placers on the benchmarks of its time.
In plain words
First tie all parts with rubber bands and let them go. They bunch up in the middle, which is good for the wires but not allowed. Then take that heap and spread it out: cut the board in half, send to each half as many parts as it has room for, keeping the parts on the same side as before, and repeat on each half.
Now each part has two places: where the bands want it, and where the spreading put it. Tie each part to its spread place with a new band, and let all go again. Make the new bands a little stronger every round. The two pictures come closer, and you stop when they nearly agree.
The problem
The input is a netlist with movable cells, nets with weights , pins and fixed pads, and rows of height 1 with sites of width 1. Cell has an integer width , and its pin is at its center. The output is a legal placement: each cell on a site of a row, inside the row, with no overlap, and a small total HPWL.
The LB placement. For a coordinate, the bound to bound (B2B) net model joins the two extreme pins of a net of pins to each other and joins each inner pin to both of them. Each edge between pins and has the weight , computed at the current coordinates . At those coordinates, the quadratic cost of the net is exactly twice its weighted span , if no two of its pins are closer than . With anchors and a weight , the LB step minimizes
and the same in . This is a positive definite linear system, solved by the conjugate gradient method. The B2B weights depend on the positions, so the solve is repeated a few times with new weights.
The UB placement. Lookahead legalization takes the LB positions and a region, starting with the whole chip. If the region has more than one row, it cuts the rows in half, sorts the cells by , and gives the lower half the prefix of cells whose width is closest to the share of the lower half in the room, among the prefixes that fit in both halves. In a single row it cuts the sites in half and splits the cells sorted by in the same way. A row segment with one cell, or with no split that fits, is packed: the cells keep their order and go to the nearest free sites. SimPL's own lookahead legalization works on the overfilled regions only and stops at regions of a few bins, where it spreads the cells by scaling their coordinates. The version here cuts down to single rows, so its UB placement is legal.
The algorithm
SIMPL(netlist, pads, K rows, S sites)- 1
put all cells near the center of the chip - 2
LB ← the B2B quadratic solve, repeated with new weights, with no anchors - 3
for k = 1, 2, ... - 4
UB ← lookahead legalization of LB by recursive bisection - 5
record HPWL(UB) and keep the best UB so far - 6
the anchor of each cell ← its position in UB - 7
LB ← the B2B quadratic solve with a pseudo-net of weight α k from each cell to its anchor - 8
compute HPWL(LB) - 9
if HPWL(UB) − HPWL(LB) ≤ gap · HPWL(UB) then stop - 10
return the best UB
Line L2 alone is quadratic placement with the B2B model. Line L7 is the same solve with one more term per cell, the pull of its anchor; the weight grows linearly with , so late iterations change the cells less and less. In SimPL the final UB placement then goes to a legalizer and a detailed placer.
Example
One lookahead legalization. Two rows of 4 unit sites, and six unit cells whose LB centers are
| cell | ||||||
|---|---|---|---|---|---|---|
| 1.2 | 1.5 | 1.8 | 2.1 | 2.4 | 2.0 | |
| 0.9 | 1.1 | 0.8 | 1.2 | 1.0 | 0.6 |
All six lie in a box near the center. Lookahead legalization first cuts the two rows. In order the cells are , and each row holds 4 of the total width 6, so the share of the lower row is 3: row 0 gets and row 1 gets . Row 0 is cut at site 2. In order its cells are (1.2), (1.8), (2.0); the share of the left half is , and the prefixes of width 1 and 2 both fit and are equally close, so the first, , goes left. The left half then packs at site 1, nearest to its left edge . The right half is cut once more, and goes to site 2 and to site 3. Row 1 in the same way gives site 1, site 2 and site 3.
| row | site 0 | site 1 | site 2 | site 3 |
|---|---|---|---|---|
| 1 | ||||
| 0 |
Each cell moved at most 1.5 in , and the cells kept their relative order in each cut. The tests check this result.
The B2B weights. A net of weight 1 on three pins at gets the edges with weight , with and with . The quadratic cost is , twice the span 5.
Correctness
The implementation returns a legal placement whenever lookahead legalization finds a split at every multi-row cut: every leaf is a row segment whose cells fit, and the packing of a segment never overlaps or leaves it. The returned HPWL is the least over the UB placements it computed, so it is at least the optimum of the placement problem, and on small instances the tests compare it with the exhaustive optimum. Each LB step solves its linear system exactly up to the tolerance of the conjugate gradient method, because the anchors make the matrix positive definite. See the proof.
Nothing proves that the LB wirelength is below the optimum, or that the gap closes. The B2B cost matches HPWL only at the point where the weights were built, and the anchors add a cost that HPWL does not have.
Proof: The B2B cost is twice the span at its build point, the anchored system is positive definite, and every placement that SimPL returns is legalfull
Lemma 1 (B2B at the build point). Let a net of weight have pins with coordinates , no two of them closer than , extreme pins and , and span . The B2B edges built at have the quadratic cost at .
Proof. An edge has weight , so its cost at is . The edge gives . An inner pin lies between and , so its two edges give . There are inner pins, so the total is .
Lemma 2 (the anchored system). For , the matrix of line L7 is symmetric positive definite. For it is positive definite if every cell has a path of edges to a pad.
Proof. The cost is with all . Its quadratic part in the cell coordinates is , where is the weight of the edges from cell to pads. With the last sum is positive for . With , forces constant along cell edges and zero at cells with a pad edge, so when every cell reaches a pad.
So each solve has a unique minimum, the solution of , which the conjugate gradient method finds in at most steps in exact arithmetic.
Lemma 3 (packing a row segment). Let cells with integer widths and total width at most be packed by the procedure of the page: in order of their targets, each goes to the site nearest its target, clamped to , but not left of the end of the previous cell; then, from the right, each cell is moved left to end at or before the start of the next cell, with the first limit . The result has every cell inside and no two cells overlapping.
Proof. Number the cells in the order. After the first pass, , so . The second pass sets and . By induction from down, : the first term of the minimum satisfies it, and for , while because the total width fits. So every . The second pass gives and , so no two cells overlap and all end by . All values are integers, so the cells are on sites.
Theorem 1 (lookahead legalization is legal). If lookahead legalization returns, every cell is on a site of a row, inside it, and no two cells overlap.
Proof. By induction on the recursion, every call gets a region of whole rows and sites and a set of cells whose total width is at most the room of the region. This holds at the top only if the cells fit the chip; otherwise a later check fails. A cut of the rows passes on only a split where both halves fit, or stops with an error. A cut of a single row does the same, or packs the whole segment, whose cells fit. A leaf is a single row segment whose cells fit, so Lemma 3 places them legally inside it. Different calls get disjoint regions, so cells from different leaves do not overlap.
Theorem 2 (the result). If SimPL returns, its result is legal, and its HPWL is the least HPWL among the UB placements computed, so it is at least the optimum of the placement problem on the same rows.
Proof. Line L5 keeps the UB placement of least HPWL, and each is legal by Theorem 1. A legal placement is a feasible point of the placement problem, so its HPWL is at least the least HPWL of all legal placements.
Theorem 3 (termination and running time). SimPL stops after at most the given number of iterations, in time with conjugate gradient steps per solve.
Proof. The loop of line L3 has a bound. A net of pins has at most B2B edges, so the matrix has entries and is built in that time; each conjugate gradient step multiplies by it once. The recursion of lookahead legalization halves the rows or the sites at each level, so it has levels; the cells of the regions of one level are disjoint, so the sorts of one level cost . Line L5 and line L8 cost .
Complexity
- LB step. The B2B model has at most edges. Building them and the matrix costs , and conjugate gradient steps cost . A constant number of weight updates keeps this bound.
- UB step. The recursion has depth , and each level sorts at most cells, per level, plus the packing of the rows, in total.
- HPWL. per placement.
So iterations cost time, and the space is . Nothing bounds or in terms of the input; both are limits that the user sets.
Properties
What is proved.
- At the coordinates where they are built, the B2B weights give a quadratic cost equal to twice the weighted span of each net, when no two of its pins are closer than .
- With the LB system is positive definite, so the LB step has a unique solution.
- The packing of a row segment whose cells fit is legal, so each UB placement is legal when lookahead legalization succeeds, and so is the result.
- The result is legal, so its HPWL is at least the optimum; the method stops after the iteration limit.
What is measured. The numbers come from the implementation of this page on toy inputs, not from benchmarks. On 20 random netlists of 6 unit cells in 2 rows of 4 sites (seed 10), the result equals the exhaustive optimum on 3 and is on average 1.20 times the optimum. On 10 random netlists of 30 cells of width 1 or 2 in 6 rows of 10 sites (seed 11, 20 iterations), the first UB placement has a mean HPWL of 189.7, the best UB 158.8, and the last LB 93.3; the gap does not close, because the LB placement still has overlap. SimPL's paper reports HPWL and run times on the ISPD 2005 and 2006 benchmarks that match or beat the placers of its time; see the paper for the numbers.
Variants and improvements
- ComPLx. Kim and Markov (2012) recast SimPL as a primal-dual Lagrangian method, with the anchors as the projection onto a feasible set, which explains the growing anchor weights.
- MAPLE and POLAR. Later placers keep the LB and UB loop but use nonlinear wirelength models or better spreading.
- Region expansion. SimPL's lookahead legalization finds clusters of overfilled bins, expands each until it has enough room, and bisects only those regions. This changes cells far from crowds less.
- Other net models. The clique or star model can replace B2B; B2B is closer to HPWL.
- Routability. Later versions inflate cells in congested regions before lookahead legalization.
When to use it
Use SimPL, or its loop of a quadratic solve and a spreading step, when you need a fast, simple and robust global placer for standard cells. It needs only a sparse linear solver and a recursive bisection. For the smallest wirelength on large designs, nonlinear placers such as electrostatics-based placement do somewhat better at more cost per iteration. For mixed-size designs with many macros, the macros need separate handling.
Pitfalls
- Calling LB a lower bound. The LB wirelength is a heuristic estimate. It can even exceed the optimum, because B2B and the anchors are not HPWL.
- B2B weights with coincident pins. Two pins at the same place give a division by zero. Use a floor on the distance.
- Anchor weights that grow too fast. The LB placement then freezes on the first UB placement, and the result is no better than one round of spreading.
- A full chip. If the rows are nearly full, the area split may not fit both halves, as in legalization; the version here then fails. Leave some free room or use a full legalizer at the end.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/simpl-placement/. The authors are listed in prov/S9RKW6.jsonl.
"""SimPL on a small standard cell layout.
Rows 0 .. K-1 of height 1 and S sites of width 1. Cell i has an integer width W[i].
Pins 0 .. n-1 are the cells and pins n, n+1, ... are the fixed pads (points).
A legal position is (x, r): left edge on a site x, row r, so the pin is at (x + W/2, r + 1/2).
The lower bound (LB) placement solves the quadratic program of the bound-to-bound
net model with pseudo-nets to anchors. The upper bound (UB) placement is lookahead
legalization by recursive bisection; here the bisection goes down to single rows and
packs each row, so every UB placement is legal.
"""
from fractions import Fraction
# ---------- wirelength ----------
def pin_points(x, r, W, pads):
"""Pin points of all cells (left edge x, row r) followed by the pads."""
return [(x[i] + Fraction(W[i], 2), r[i] + Fraction(1, 2)) for i in range(len(x))] + [tuple(p) for p in pads]
def hpwl_points(pts, nets, weights):
total = 0
for e, w in zip(nets, weights):
xs = [pts[p][0] for p in e]
ys = [pts[p][1] for p in e]
total += w * (max(xs) - min(xs) + max(ys) - min(ys))
return total
# ---------- the lower bound: bound-to-bound model and a linear solve ----------
def b2b_edges(coord, nets, weights, eps):
"""Edges (a, b, w) of the bound-to-bound model for one coordinate.
The two extreme pins are joined, and every inner pin is joined to both,
each with weight 2 w_e / ((p - 1) max(|c_a - c_b|, eps))."""
edges = []
for e, we in zip(nets, weights):
pins = list(dict.fromkeys(e))
p = len(pins)
if p < 2:
continue
lo = min(pins, key=lambda q: (coord[q], q))
hi = max(pins, key=lambda q: (coord[q], -q))
if lo == hi:
hi = next(q for q in pins if q != lo)
def wt(a, b):
return 2 * we / ((p - 1) * max(abs(coord[a] - coord[b]), eps))
edges.append((lo, hi, wt(lo, hi)))
for q in pins:
if q != lo and q != hi:
edges.append((q, lo, wt(q, lo)))
edges.append((q, hi, wt(q, hi)))
return edges
def quadratic_cost(coord, edges):
return sum(w * (coord[a] - coord[b]) ** 2 for a, b, w in edges)
def solve_spd(A, b, tol=1e-12):
"""Conjugate gradients for a symmetric positive definite A given as sparse rows {j: a_ij}."""
n = len(b)
x = [0.0] * n
r = list(b)
p = list(r)
rr = sum(v * v for v in r)
limit = tol * tol * max(rr, 1e-300)
for _ in range(4 * n + 20):
if rr <= limit:
break
Ap = [sum(a * p[j] for j, a in row.items()) for row in A]
alpha = rr / sum(pi * qi for pi, qi in zip(p, Ap))
x = [xi + alpha * pi for xi, pi in zip(x, p)]
r = [ri - alpha * qi for ri, qi in zip(r, Ap)]
rr_new = sum(v * v for v in r)
p = [ri + rr_new / rr * pi for ri, pi in zip(r, p)]
rr = rr_new
return x
def lower_bound(cx, cy, n, nets, weights, pads, anchors=None, alpha=0.0, eps=0.5, rounds=3):
"""Cell centers that minimize the B2B quadratic cost plus alpha |p_i - anchor_i|^2.
The B2B weights are rebuilt from the current centers `rounds` times."""
cx, cy = list(cx), list(cy)
for _ in range(rounds):
out = []
for k, cur in ((0, cx), (1, cy)):
coord = [float(v) for v in cur] + [float(p[k]) for p in pads]
A = [dict() for _ in range(n)]
b = [0.0] * n
for a, c, w in b2b_edges(coord, nets, weights, eps):
for u, v in ((a, c), (c, a)):
if u < n:
A[u][u] = A[u].get(u, 0.0) + w
if v < n:
A[u][v] = A[u].get(v, 0.0) - w
else:
b[u] += w * coord[v]
if anchors is not None and alpha > 0:
for i in range(n):
A[i][i] = A[i].get(i, 0.0) + alpha
b[i] += alpha * float(anchors[i][k])
out.append(solve_spd(A, b))
cx, cy = out
return cx, cy
# ---------- the upper bound: lookahead legalization ----------
def pack_row(cells, tx, W, s0, s1):
"""Left edges for the cells of one row segment [s0, s1), in the order of their targets.
Each cell goes to the site nearest its target, pushed right past the previous cell;
then a pass from the right pulls cells back inside the segment."""
order = sorted(cells, key=lambda i: (tx[i], i))
pos = {}
end = s0
for i in order:
want = int(round(tx[i] - W[i] / 2))
pos[i] = max(end, min(max(want, s0), s1 - W[i]))
end = pos[i] + W[i]
limit = s1
for i in reversed(order):
pos[i] = min(pos[i], limit - W[i])
limit = pos[i]
return pos
def lookahead_legalize(tx, ty, W, K, S):
"""Recursive bisection of the cells over the rows and sites, splitting the cells
at the point where their area matches the capacity of the two halves.
Returns legal (x, r), or raises ValueError if a split cannot fit both halves."""
n = len(W)
x, r = [0] * n, [0] * n
def rec(cells, r0, r1, s0, s1):
if not cells:
return
if r1 - r0 > 1:
mid = (r0 + r1) // 2
cap_lo, cap_hi = (mid - r0) * (s1 - s0), (r1 - mid) * (s1 - s0)
order = sorted(cells, key=lambda i: (ty[i], tx[i], i))
key = lambda i: ty[i]
else:
if sum(W[i] for i in cells) > s1 - s0:
raise ValueError("a row segment has more cell width than sites")
if len(cells) == 1 or s1 - s0 < 2:
for i, p in pack_row(cells, tx, W, s0, s1).items():
x[i], r[i] = p, r0
return
mid = (s0 + s1) // 2
cap_lo, cap_hi = mid - s0, s1 - mid
order = sorted(cells, key=lambda i: (tx[i], i))
key = lambda i: tx[i]
total = sum(W[i] for i in order)
want = total * cap_lo / (cap_lo + cap_hi)
best, acc = None, 0
for k in range(len(order) + 1):
if k:
acc += W[order[k - 1]]
if acc <= cap_lo and total - acc <= cap_hi:
if best is None or abs(acc - want) < abs(best[1] - want):
best = (k, acc)
if best is None:
if r1 - r0 == 1: # no split fits: pack the whole segment, which fits
for i, p in pack_row(cells, tx, W, s0, s1).items():
x[i], r[i] = p, r0
return
raise ValueError("lookahead legalization found no split that fits")
k = best[0]
rec(order[:k], r0, mid, s0, s1) if r1 - r0 > 1 else rec(order[:k], r0, r1, s0, mid)
rec(order[k:], mid, r1, s0, s1) if r1 - r0 > 1 else rec(order[k:], r0, r1, mid, s1)
rec(list(range(n)), 0, K, 0, S)
return x, r
# ---------- SimPL ----------
def simpl(n, nets, pads, W, K, S, weights=None, iterations=12, alpha0=0.05, gap=0.05, history=None):
"""Return the legal placement (x, r) of least HPWL among the UB placements."""
if weights is None:
weights = [1] * len(nets)
cx = [S / 2 + 0.01 * (i % 7) for i in range(n)] # @line L1
cy = [K / 2 + 0.01 * (i % 5) for i in range(n)]
cx, cy = lower_bound(cx, cy, n, nets, weights, pads, rounds=5) # @line L2
best = None
for k in range(1, iterations + 1): # @line L3
ux, ur = lookahead_legalize(cx, cy, W, K, S) # @line L4
ub = hpwl_points(pin_points(ux, ur, W, pads), nets, weights) # @line L5
if best is None or ub < best[0]:
best = (ub, ux, ur)
anchors = [(ux[i] + W[i] / 2, ur[i] + 0.5) for i in range(n)] # @line L6
cx, cy = lower_bound(cx, cy, n, nets, weights, pads, anchors, alpha0 * k) # @line L7
lb = hpwl_points(list(zip(cx, cy)) + [tuple(map(float, p)) for p in pads], nets, weights) # @line L8
if history is not None:
history.append((float(lb), ub))
if ub - lb <= gap * ub: # @line L9
break
return best[1], best[2] # @line L10
test_simpl_placement.py 139 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/simpl-placement/. The authors are listed in prov/S9RKW6.jsonl.
import random
from fractions import Fraction
from itertools import permutations
from simpl_placement import (
b2b_edges,
hpwl_points,
lookahead_legalize,
lower_bound,
pin_points,
quadratic_cost,
simpl,
)
def instance(rng, n, K, S, q=4):
pads = [(0, rng.randint(0, K)), (S, rng.randint(0, K)), (rng.randint(0, S), 0), (rng.randint(0, S), K)][:q]
nets = []
for i in range(n): # a net to a pad or to an earlier cell, so every cell is tied to a pad
nets.append([i, n + rng.randrange(q)] if i == 0 or rng.random() < 0.3 else [i, rng.randrange(i)])
for _ in range(n // 2):
nets.append(rng.sample(range(n + q), rng.randint(2, 3)))
return nets, pads
def legal(x, r, W, K, S):
used = set()
for i in range(len(x)):
if not (0 <= r[i] < K and 0 <= x[i] and x[i] + W[i] <= S):
return False
for s in range(x[i], x[i] + W[i]):
if (r[i], s) in used:
return False
used.add((r[i], s))
return True
def direct_hpwl(x, r, W, nets, pads):
"""HPWL computed from scratch with doubled integer coordinates, then halved."""
total = 0
for e in nets:
xs, ys = [], []
for p in e:
if p < len(x):
xs.append(2 * x[p] + W[p])
ys.append(2 * r[p] + 1)
else:
xs.append(2 * pads[p - len(x)][0])
ys.append(2 * pads[p - len(x)][1])
total += max(xs) - min(xs) + max(ys) - min(ys)
return Fraction(total, 2)
def exhaustive_optimum(n, nets, pads, K, S):
sites = [(s, r) for r in range(K) for s in range(S)]
return min(direct_hpwl([p[0] for p in perm], [p[1] for p in perm], [1] * n, nets, pads)
for perm in permutations(sites, n))
def test_b2b_cost_is_twice_the_span_at_the_build_point():
rng = random.Random(1)
checked = 0
for _ in range(200):
pts = rng.randint(2, 9)
coord = [Fraction(rng.randint(0, 40), 4) for _ in range(pts)]
nets = [rng.sample(range(pts), rng.randint(2, min(5, pts))) for _ in range(rng.randint(1, 4))]
weights = [rng.randint(1, 3) for _ in nets]
eps = Fraction(1, 8)
edges = b2b_edges(coord, nets, weights, eps)
expect = 0
for e, w in zip(nets, weights):
vals = [coord[p] for p in e]
if all(abs(coord[a] - coord[b]) >= eps or a == b for a in e for b in e):
expect += 2 * w * (max(vals) - min(vals))
else:
expect = None
break
if expect is not None:
checked += 1
assert quadratic_cost(coord, edges) == expect
assert checked >= 40
def test_page_example_of_lookahead_legalization():
tx = [1.2, 1.5, 1.8, 2.1, 2.4, 2.0]
ty = [0.9, 1.1, 0.8, 1.2, 1.0, 0.6]
assert lookahead_legalize(tx, ty, [1] * 6, 2, 4) == ([1, 1, 2, 2, 3, 3], [0, 1, 0, 1, 1, 0])
def test_lookahead_legalization_is_legal():
rng = random.Random(2)
for _ in range(300):
K, S = rng.randint(1, 5), rng.randint(3, 12)
W = []
while sum(W) < 0.7 * K * S - 3:
W.append(rng.choice([1, 1, 2, 3]))
tx = [rng.uniform(0, S) for _ in W]
ty = [rng.uniform(0, K) for _ in W]
try:
x, r = lookahead_legalize(tx, ty, W, K, S)
except ValueError:
continue
assert legal(x, r, W, K, S)
def test_lower_bound_with_strong_anchors_reaches_the_anchors():
rng = random.Random(3)
n, K, S = 8, 3, 6
nets, pads = instance(rng, n, K, S)
anchors = [(rng.uniform(0, S), rng.uniform(0, K)) for _ in range(n)]
cx, cy = lower_bound([S / 2] * n, [K / 2] * n, n, nets, [1] * len(nets), pads, anchors, alpha=1e7)
assert all(abs(cx[i] - anchors[i][0]) < 1e-4 and abs(cy[i] - anchors[i][1]) < 1e-4 for i in range(n))
def test_simpl_is_legal_and_its_hpwl_matches_a_direct_sum():
rng = random.Random(11)
for _ in range(4):
n, K, S = 30, 6, 10
W = [rng.choice([1, 1, 2]) for _ in range(n)]
nets, pads = instance(rng, n, K, S)
hist = []
x, r = simpl(n, nets, pads, W, K, S, history=hist, iterations=8)
assert legal(x, r, W, K, S)
value = hpwl_points(pin_points(x, r, W, pads), nets, [1] * len(nets))
assert value == direct_hpwl(x, r, W, nets, pads)
assert value == min(ub for _, ub in hist)
def test_simpl_never_beats_the_exhaustive_optimum_on_6_cells():
rng = random.Random(10)
for _ in range(3):
n, K, S = 6, 2, 4
nets, pads = instance(rng, n, K, S)
x, r = simpl(n, nets, pads, [1] * n, K, S)
assert legal(x, r, [1] * n, K, S)
assert direct_hpwl(x, r, [1] * n, nets, pads) >= exhaustive_optimum(n, nets, pads, K, S)
History
Kim, Lee and Markov presented SimPL at ICCAD 2010 and in IEEE TCAD in 2012. The idea of spreading by anchors in a quadratic placer was older, in FastPlace and Kraftwerk; SimPL's point was that a short, plain loop of a lower-bound solve and a lookahead legalization was enough to match the best placers of the ISPD contests. Kim and Markov then gave the loop a Lagrangian form in ComPLx (2012).
References
- Myung-Chul Kim, Dong-Jin Lee and Igor L. Markov, SimPL, an effective placement algorithm, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 31(1), 50 to 60, 2012, the lower-bound and upper-bound placements, lookahead legalization, the pseudo-nets to anchors, and the experiments
- Myung-Chul Kim, Dong-Jin Lee and Igor L. Markov, SimPL, an effective placement algorithm, Proceedings of the IEEE/ACM International Conference on Computer-Aided Design (ICCAD), 649 to 656, 2010, the conference version of the method
- Peter Spindler, Ulf Schlichtmann and Frank M. Johannes, Kraftwerk2, a fast force-directed quadratic placement approach using an accurate net model, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 27(8), 2008, the bound to bound net model used by SimPL for the lower-bound placement (general locator)
- 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 4, Global and Detailed Placement (quadratic placement with spreading; 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 | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag S9RKW6 Edit this page History Report an error Markdown