Algorithm Search⌘K

Definitioncore

Clique net model

Also called clique model of a net.

Replaces a net of p pins with a weighted clique on its pins, often with weight 1/(p - 1), so graph methods apply to a netlist.

The clique net model replaces each net of a circuit, a hypergraph edge with pp pins, by a complete graph on those pins whose (p2)\binom{p}{2} edges share a weight that depends on pp. Then graph tools apply: the Laplacian for spectral partitioning, Kernighan-Lin swaps, and the quadratic objective of quadratic placement. The two usual weights are 1/(p−1)1/(p-1) and 2/p2/p, and a page or a tool must say which one it uses. The model is exact for quadratic wirelength in a sense made precise below, but for the cut of a net and for HPWL it is exact only for p≤3p \le 3.

Definition

Let a net ee have weight wew_e and pins v1,…,vpv_1, \ldots, v_p, p≥2p \ge 2. The clique model with edge weight ω(p)\omega(p) replaces ee by the edges {vi,vj}\{v_i, v_j\}, i<ji < j, each of weight we ω(p)w_e \, \omega(p). Edges from different nets between the same two vertices add up. The common choices are:

  • ω(p)=1/(p−1)\omega(p) = 1/(p - 1). The edges at each pin have total weight wew_e, and a split that separates one pin from the rest costs exactly wew_e.
  • ω(p)=2/p\omega(p) = 2/p. The clique has total weight (p−1)we(p - 1) w_e, the number of edges of a spanning tree of the pins.
  • ω(p)=1\omega(p) = 1, the unweighted clique, which gives large nets far too much weight.

The star model is the alternative. It adds one new free vertex ses_e for the net and the pp edges {se,vi}\{s_e, v_i\}, each of weight we σ(p)w_e \, \sigma(p). It has pp edges instead of (p2)\binom{p}{2}, so it keeps the graph sparse for large nets.

A net of a netlist is cut by a partition when its pins lie in more than one part, and the cut counts it once (see hypergraph partitioning). The model replaces this count, and the bounding box length of the net, by sums over clique edges. The following facts say how close the sums are.

Fact 1 (cut). If a partition puts kk pins of ee on one side and p−kp - k on the other, the clique edges that cross have weight we ω(p) k(p−k)w_e \, \omega(p) \, k (p - k). For 1≤k≤p−11 \le k \le p - 1, k(p−k)k(p - k) lies between p−1p - 1 and ⌊p2/4⌋\lfloor p^2 / 4 \rfloor. With ω=1/(p−1)\omega = 1/(p-1) the cost of a cut net lies in [we, we⌊p2/4⌋/(p−1)][w_e, \, w_e \lfloor p^2/4 \rfloor / (p - 1)], so a 2:2 split of a 4-pin net costs 4/34/3 of a 1:3 split.

Fact 2 (no clique weighting is exact for p≥4p \ge 4). Let p≥4p \ge 4 and give the edges of the clique any real weights cijc_{ij}. Then some two splits of the pins have different crossing weights, while the cut-net count gives both the value 1. Proof. Suppose every split costs 1. The split {vi}\{v_i\} against the rest gives di=∑jcij=1d_i = \sum_j c_{ij} = 1 for every ii, so the total weight is C=12∑idi=p/2C = \frac12 \sum_i d_i = p/2. The split {vi,vj}\{v_i, v_j\} against the rest, which is a proper split because p≥4p \ge 4, costs di+dj−2cij=2−2cij=1d_i + d_j - 2 c_{ij} = 2 - 2 c_{ij} = 1, so cij=1/2c_{ij} = 1/2 for every pair and C=(p2)/2C = \binom{p}{2} / 2. Then p/2=p(p−1)/4p/2 = p(p-1)/4, so p=3p = 3, a contradiction. For p=3p = 3 the weight 1/2=1/(p−1)1/2 = 1/(p-1) is exact, and for p=2p = 2 the single edge is exact. □\square

Fact 3 (linear length). Let the pins have coordinates x(1)≤⋯≤x(p)x_{(1)} \le \cdots \le x_{(p)} along one axis, with gaps gt=x(t+1)−x(t)g_t = x_{(t+1)} - x_{(t)} and range R=∑tgtR = \sum_t g_t. The pair (i,j)(i, j) with i<ji < j spans the gaps t=i,…,j−1t = i, \ldots, j - 1, and gap tt is spanned by t(p−t)t (p - t) pairs, so

∑i<j∣x(i)−x(j)∣=∑t=1p−1t(p−t) gt,(p−1)R≤∑i<j∣xi−xj∣≤⌊p24⌋R.\sum_{i < j} |x_{(i)} - x_{(j)}| = \sum_{t=1}^{p-1} t (p - t) \, g_t, \qquad (p - 1) R \le \sum_{i<j} |x_i - x_j| \le \Big\lfloor \frac{p^2}{4} \Big\rfloor R.

So with ω=1/(p−1)\omega = 1/(p-1) the clique length in each axis is at least the range, and the clique length is at least the HPWL of the net. It equals the HPWL for every position when p≤3p \le 3, since then t(p−t)=p−1t(p - t) = p - 1 for all tt. For p≥4p \ge 4 equality needs gt=0g_t = 0 for 2≤t≤p−22 \le t \le p - 2, so in each axis all pins except the smallest and the largest must share one coordinate.

Fact 4 (quadratic length, clique equals star). For any reals x1,…,xpx_1, \ldots, x_p with mean xˉ\bar x,

∑i<j(xi−xj)2=p∑i(xi−xˉ)2=pmin⁡s∑i(xi−s)2.\sum_{i < j} (x_i - x_j)^2 = p \sum_{i} (x_i - \bar x)^2 = p \min_{s} \sum_i (x_i - s)^2.

Proof. Expand: ∑i<j(xi−xj)2=12∑i,j(xi2−2xixj+xj2)=p∑ixi2−(∑ixi)2=p∑i(xi−xˉ)2\sum_{i<j} (x_i - x_j)^2 = \frac12 \sum_{i,j} (x_i^2 - 2 x_i x_j + x_j^2) = p \sum_i x_i^2 - (\sum_i x_i)^2 = p \sum_i (x_i - \bar x)^2. The function s↦∑i(xi−s)2s \mapsto \sum_i (x_i - s)^2 is least at s=xˉs = \bar x. □\square

So in a quadratic placer, where the star vertex is free and moves to its optimal position, a clique with edge weight ω\omega and a star with edge weight p ωp \, \omega give the same objective and the same optimal cell positions. The clique with ω=1/(p−1)\omega = 1/(p - 1) equals the star with σ=p/(p−1)\sigma = p/(p - 1). Big nets can use the star and small nets the clique, with no change to the optimum.

Examples and non-examples

  • A 4-pin net under a partition. Net {a,b,c,d}\{a, b, c, d\} with we=1w_e = 1. The cut-net metric gives 1 to every split. The clique gives:

    split crossing clique edges ω=1/3\omega = 1/3 ω=2/4\omega = 2/4
    {a}∣{b,c,d}\{a\} \mid \{b, c, d\} 3 1 1.5
    {a,b}∣{c,d}\{a, b\} \mid \{c, d\} 4 4/3 2
    not cut 0 0 0

    A graph partitioner that sees the clique prefers to cut off one pin of this net rather than split it evenly, while the circuit cost is the same.

  • Three pins, exact. For p=3p = 3 and ω=1/2\omega = 1/2, each split crosses two clique edges and costs 1, the cut-net value. In one axis, pins at 0,1,50, 1, 5 have clique length 12(1+5+4)=5\frac12 (1 + 5 + 4) = 5, the range.

  • Four pins in one axis. Pins at 0,1,2,30, 1, 2, 3: the clique sum is 1⋅3+2⋅2+3⋅1=101 \cdot 3 + 2 \cdot 2 + 3 \cdot 1 = 10, so with ω=1/3\omega = 1/3 the length is 10/310/3 against a range of 3. Pins at 0,0,0,30, 0, 0, 3: the sum is 9, the length is 3, equal to the range. Pins at 0,1,1,30, 1, 1, 3: the sum is 9 and the length is again 3. Pins at 0,0,3,30, 0, 3, 3: the sum is 12 and the length is 4.

  • Quadratic. Pins at 0,1,50, 1, 5, mean 2. The squared deviations sum to 4+1+9=144 + 1 + 9 = 14, and the clique sum of squared differences is 1+25+16=42=3⋅141 + 25 + 16 = 42 = 3 \cdot 14, as Fact 4 says.

  • Non-example: the clique as a hypergraph. Two different netlists can give the same weighted graph: one 3-pin net {a,b,c}\{a, b, c\} with ω=1/2\omega = 1/2, and three 2-pin nets ab,bc,caab, bc, ca of weight 1/21/2 each. So the model loses information, and a partition that is optimal for the graph need not be optimal for the netlist.

  • Cut-net metric and connectivity metric. The exact costs of a partition of a netlist, defined on hypergraph partitioning. Fiduccia-Mattheyses and hMETIS work with them directly and need no clique.
  • Edge coarsening. The multilevel hypergraph partitioner scores a pair of vertices by ∑we/(∣e∣−1)\sum w_e/(|e| - 1) over the nets they share, which is the clique model with ω=1/(p−1)\omega = 1/(p - 1).
  • Star model and hybrid models. The star with a free center vertex, as in Fact 4. Some placers use the clique for small nets and the star for large ones.
  • Graphs with extra vertices. One may ask for a graph with extra vertices whose minimum cuts match those of a net. Ihler, Wagner and Wagner (1993) study this question.
  • Wirelength models. HPWL is the target that the linear clique length bounds from above, and quadratic placement uses the quadratic clique or star.

References

  1. 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 2, Netlist and System Partitioning (netlists as hypergraphs and their graph models), and Chapter 4, Global and Detailed Placement (net models in quadratic placement)
  2. Edmund Ihler, Dorothea Wagner and Frank Wagner, Modeling hypergraphs by graphs with the same mincut properties, Information Processing Letters 45(4), 171 to 175, 1993, the question whether a graph can represent the cuts of a hyperedge exactly (general locator; the exact statement of the main theorem is not given on this page)
  3. George Karypis, Rajat Aggarwal, Vipin Kumar and Shashi Shekhar, Multilevel hypergraph partitioning, applications in VLSI domain, IEEE Transactions on VLSI Systems 7(1), 69 to 79, 1999, the edge coarsening scheme, which scores a pair of vertices by the sum of 1/(|e| - 1) over the nets that contain both
  4. Charles J. Alpert and Andrew B. Kahng, Recent directions in netlist partitioning, a survey, Integration, the VLSI Journal 19(1 to 2), 1 to 81, 1995, the section on net models and the conversion of hyperedges to graph edges

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/2SRSJX/text.yaml