Presentation is loading. Please wait.

Presentation is loading. Please wait.

VLSI Layout Algorithms CSE 6404 A 46 B 65 C 11 D 56 E 23 F 8 H 37 G 19 I 12J 14 K 27 X=(AB*CD)+ (A+D)+(A(B+C)) Y = (A(B+C)+AC+ D+A(BC+D)) Dr. Md. Saidur.

Similar presentations


Presentation on theme: "VLSI Layout Algorithms CSE 6404 A 46 B 65 C 11 D 56 E 23 F 8 H 37 G 19 I 12J 14 K 27 X=(AB*CD)+ (A+D)+(A(B+C)) Y = (A(B+C)+AC+ D+A(BC+D)) Dr. Md. Saidur."— Presentation transcript:

1 VLSI Layout Algorithms CSE 6404 A 46 B 65 C 11 D 56 E 23 F 8 H 37 G 19 I 12J 14 K 27 X=(AB*CD)+ (A+D)+(A(B+C)) Y = (A(B+C)+AC+ D+A(BC+D)) Dr. Md. Saidur Rahman

2 Circuit Partitioning

3 Problem Definition Given a graph G=(V,E), where each vertex v in V has a size s(v), and each edge e in E has a weight w(e), the problem is to divide the set V into k subsets V 1, V 2, ….V k, such that an objective function is optimized, subject to certain constraints. 5 6 421 3 4 5 6 2 3 1

4 Two-way partitioning problem Each node has unit size Each edge has unit weight Find two partitions V 1 and V 2 such that Each of V 1 and V 2 has equal size External wiring will be minimum (cut-set will have to minimmize)

5 Kernighan-Lin (KL) Algorithm Initialize –Bipartition G into V 1 and V 2, s.t., |V 1 | = |V 2 |  1 –n = |V| Repeat –for i=1 to n/2 Find a pair of unlocked vertices v ai  V 1 and v bi  V 2 whose exchange makes the largest decrease or smallest increase in cut-cost Mark v ai and v bi as locked Store the gain g i. –Find k, s.t.  i=1..k g i =Gain k is maximized –If Gain k > 0 then move v a1,...,v ak from V 1 to V 2 and v b1,...,v bk from V 2 to V 1. Until Gain k  0

6 Variation of Kernighan-Lin (KL) Algorithm Unequal Sized Blocks Total number of vertices 2n Number of vertices in Partition A: n 1 Number of vertices in Partition B: n 2 Without loss of generality assume n 1 < n 2

7 Divide V into blocks A and B; A contains n 1 vertices and B contains n 2 vertices. Add n 2 -n 1 dummy vertices to block A. Dummy vertices have no connections to the original graph. Apply K-L algorithm. Remove dummy vertices A B Unequal Sized Blocks

8 Unequal Sized elements Without loss of generality assume that the smallest element has unit size. Replace each element of size s with complete graph of s vertices having each edge of infinite weight. Apply K-L algorithm. Variation of Kernighan-Lin (KL) Algorithm

9 A B A B     3 2

10 K – way partitioning of kn vertices Begin with a random partition of k sets of n vertices each. Apply the two-way partitioning procedure on each pair of Partitions.

11 123654 m m m q q q p j k 1 3 2 4 5 6 j p m k Net cuts and Edge cuts Reducing the number of net cuts is more realistic than reducing the number of edge cut.

12 Fiduccia-Mattheyses Algorithm “A Linear-time Heuristics for Improving Network Partitions” 19 th DAC, pages 175-181, 1982. Given a circuit consisting of C cells connected by a set of N nets (where each net connects at least two cells), the problem is to partition circuit C into two blocks A and B such that the number of nets which have cells in both the blocks is minimized and the balance factor r is satisfied.

13 Ideas of FM Algorithm Similar to KL: –Work in passes. –Lock vertices after moved. –Actually, only move those vertices up to the maximum partial sum of gain. Difference from KL: –Not exchanging pairs of vertices. Move only one vertex at each time. –The use of gain bucket data structure.

14 Algorithm FM_TWPP Begin Step1: Compute gains of all cells. Step 2: i = 1 Select base cell and call it c i ; If no base cell Then Exit; Step 3. Lock cell c i ; update gains of cells of those affected critical nets; Step 4. If a free cell exists then i = i + 1 and select next base cell; Go to step 3; Step 5. Select best sequence of moves c 1,c 2,c 3, …,c k such that sum of gain is maximum; If G  0 Then Exit Step 6. Make all I moves permanent; Free all cells; Go to Step 1 End

15 Gain calculation Assume that Cell i is moved from F(i) to T(i). Gain g(i) from this movement g(i) = FS(i) –TE(i) Where FS(i) = the number of nets connected to cell I and not connected to any other cell in F(i) TE(i) = the number of nets that are connected to cell i and not crossing the cut.

16 1 3 2 4 5 6 j p m k Cell iFTFS(i)TE(i)g(i) 1AB01 2AB21+1 3AB01 4BA110 5BA110 6BA10+1 A B

17 Critical Net Concepts Gain Bucket Data Structure

18 Distribution of a net n A(n) : the number of cells of net n in A B(n): the number of cells of net n in B A B

19 Distribution of a net n A(n) : the number of cells of net n in A B(n): the number of cells of net n in B A B

20 Distribution of a net n A(n) : the number of cells of net n in A B(n): the number of cells of net n in B Critical Net: A net is critical if it has a cell which if moved will change its cutstate. A net is critical if and only if (i) A(n) is either 0 or 1, or (ii) B(n) is either 0 or 1.

21 Features of FM Algorithm Modification of KL Algorithm: –Can handle non-uniform vertex weights (areas) –Allow unbalanced partitions –Extended to handle hypergraphs –Clever way to select vertices to move, run much faster.

22 Gain Bucket Data Structure Cell # Cell # Max Gain +pmax -pmax 1 2n

23 Performance Driven Partitioning The partitioning algorithms which deal with high performance circuits are called performance driven partitioning algorithms. A B C PCB1 D x 10x 20x PCB2 If a critical path is cut many times by the partition, the delay in the path may be too large to meet the goals of the high performance circuit.

24 Problem Definition Let G=(V,E) be a weighted directed graph. Each vertex v i in V represents a components in the circuit and each edge represents a connection between two gates. Each vertex v i has a weight GD(v i ), specifying the gate delay associated with the gate corresponding to v i. Each edge (v i, v j ) has a delay associated with it, which depends on the partitions to which vi and vj belongs. The edge delay ED ij =(d 1, d 2, d 3 ) specifies the delay between v i and v j. d 1 : if the chip is cut at a chip level. d 2 : if the chip is cut at a board level. d 3 : if the chip is cut at a system level. Obtain optimal partition which minimize the delay on the critical path.

25 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 M: largest weight that can be accommodated in a cluster. M = 4

26 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 M: largest weight that can be accommodated in a cluster. 0 M = 4

27 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 M: largest weight that can be accommodated in a cluster. 0 0 M = 4

28 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 M: largest weight that can be accommodated in a cluster. 0 0 0 M = 4

29 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 M: largest weight that can be accommodated in a cluster. 0 0 0 1 M = 4

30 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 M: largest weight that can be accommodated in a cluster. 0 0 0 1 1 1 M = 4

31 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 M: largest weight that can be accommodated in a cluster. 0 0 0 1 1 1 2 M = 4

32 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 M: largest weight that can be accommodated in a cluster. 0 0 0 1 1 1 2 2 M = 4

33 Clustering a circuit Objective is to minimize delay Given: capacity constraints on the cluster. 2 1 1 4 2 2 3 1 0 0 0 1 1 1 2 2 M = 4 The label represent the maximum delay of a signal when the signal reaches the vertex.

34 Other Partitioning algorithms. Simulated Annealing Simulated Evolution Crystallization Biological evolution

35 References and Copyright Some of the slides are used from the following references (with some modification if necessary). –[©Sarrafzadeh] © Majid Sarrafzadeh, 2001; Department of Computer Science, UCLA –[©Sherwani] © Naveed A. Sherwani, 1992 (companion slides to [She99]) –[©Keutzer] © Kurt Keutzer, Dept. of EECS, UC-Berekeley http://www-cad.eecs.berkeley.edu/~niraj/ee244/index.htm –[©Gupta] © Rajesh Gupta UC-Irvine http://www.ics.uci.edu/~rgupta/ics280.html –[©Kang] © Steve Kang UIUC http://www.ece.uiuc.edu/ece482/ http://www.ece.uiuc.edu/ece482/ –[@Kia] @ Kia Bazargan, University of Minnesota –[@Pan] @ Prof. David Z. Pan, http://users.ece.utexas.edu/~dpan/2008Fall_EE382V/Prof. David Z. Pan


Download ppt "VLSI Layout Algorithms CSE 6404 A 46 B 65 C 11 D 56 E 23 F 8 H 37 G 19 I 12J 14 K 27 X=(AB*CD)+ (A+D)+(A(B+C)) Y = (A(B+C)+AC+ D+A(BC+D)) Dr. Md. Saidur."

Similar presentations


Ads by Google