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 pins, by a complete graph on those pins whose edges share a weight that depends on . Then graph tools apply: the Laplacian for spectral partitioning, Kernighan-Lin swaps, and the quadratic objective of quadratic placement. The two usual weights are and , 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 .
Definition
Let a net have weight and pins , . The clique model with edge weight replaces by the edges , , each of weight . Edges from different nets between the same two vertices add up. The common choices are:
- . The edges at each pin have total weight , and a split that separates one pin from the rest costs exactly .
- . The clique has total weight , the number of edges of a spanning tree of the pins.
- , the unweighted clique, which gives large nets far too much weight.
The star model is the alternative. It adds one new free vertex for the net and the edges , each of weight . It has edges instead of , 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 pins of on one side and on the other, the clique edges that cross have weight . For , lies between and . With the cost of a cut net lies in , so a 2:2 split of a 4-pin net costs of a 1:3 split.
Fact 2 (no clique weighting is exact for ). Let and give the edges of the clique any real weights . 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 against the rest gives for every , so the total weight is . The split against the rest, which is a proper split because , costs , so for every pair and . Then , so , a contradiction. For the weight is exact, and for the single edge is exact.
Fact 3 (linear length). Let the pins have coordinates along one axis, with gaps and range . The pair with spans the gaps , and gap is spanned by pairs, so
So with 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 , since then for all . For equality needs for , 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 with mean ,
Proof. Expand: . The function is least at .
So in a quadratic placer, where the star vertex is free and moves to its optimal position, a clique with edge weight and a star with edge weight give the same objective and the same optimal cell positions. The clique with equals the star with . 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 with . The cut-net metric gives 1 to every split. The clique gives:
split crossing clique edges 3 1 1.5 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 and , each split crosses two clique edges and costs 1, the cut-net value. In one axis, pins at have clique length , the range.
-
Four pins in one axis. Pins at : the clique sum is , so with the length is against a range of 3. Pins at : the sum is 9, the length is 3, equal to the range. Pins at : the sum is 9 and the length is again 3. Pins at : the sum is 12 and the length is 4.
-
Quadratic. Pins at , mean 2. The squared deviations sum to , and the clique sum of squared differences is , as Fact 4 says.
-
Non-example: the clique as a hypergraph. Two different netlists can give the same weighted graph: one 3-pin net with , and three 2-pin nets of weight each. So the model loses information, and a partition that is optimal for the graph need not be optimal for the netlist.
Related definitions
- 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 over the nets they share, which is the clique model with .
- 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
- 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)
- 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)
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 2SRSJX Edit this page History Report an error Markdown