Presentation is loading. Please wait.

Presentation is loading. Please wait.

Architecture and Details of a High Quality, Large-Scale Analytical Placer Andrew B. Kahng, Sherief Reda and Qinke Wang VLSI CAD Lab University of California,

Similar presentations


Presentation on theme: "Architecture and Details of a High Quality, Large-Scale Analytical Placer Andrew B. Kahng, Sherief Reda and Qinke Wang VLSI CAD Lab University of California,"— Presentation transcript:

1 Architecture and Details of a High Quality, Large-Scale Analytical Placer Andrew B. Kahng, Sherief Reda and Qinke Wang VLSI CAD Lab University of California, San Diego http://vlsicad.ucsd.edu/ Work partially supported by the MARCO Gigascale Systems Research Center. ABK is currently with Blaze DFM, Inc., Sunnyvale, CA.

2 2 Outline History of APlace From APlace1.0 to APlace2.0 Anatomy of APlace2.0 New techniques in APlace2.0 Experimental Results Conclusions and Future Work

3 3 History of APlace Research to study Synopsys patent –Naylor et al., US Patent 6,301,693 (2001) Extensible foundation: APlace1.0 –Timing-driven placement –Mixed-size placement –Area-I/O placement ISPD-2005 placement contest  APlace2.0 –Many parts of APlace rewritten –Superior performance

4 4 Outline History of APlace From APlace1.0 to APlace2.0 Anatomy of APlace2.0 New techniques in APlace2.0 Experimental Results Conclusions and Future Works

5 5 APlace Problem Formulation Constrained Nonlinear Optimization: Divide the layout area into uniform bins, and seek to minimize HPWL etc. so that total cell area in every bin is equalized – : density function that equals the total cell area in a global bin g –D : average cell area over all global bins

6 6 Nonlinear Optimization Smooth approximation of placement objectives: wirelength, density function, etc. Quadratic Penalty method –Solve a sequence of unconstrained minimization problems for a sequence of µ → 0 Conjugate Gradient (CG) solver –Useful for finding an unconstrained minimum of a high-dimensional function –Adaptable to large-scale placement problems: memory requirement is linear in problem size

7 7 Wirelength Approximation Half-Perimeter Wirelength (HPWL) –Half-perimeter of net’s bounding box –Simple, close measure of routing congestion –Not strictly convex, or everywhere differentiable Log-Sum-Exp approximation –Naylor et al., US Patent 6,301,693 (2001) –Precise, closer to HPWL when α → 0 –Strictly convex, continuously differentiable

8 8  : Smoothing Parameter “Significance criterion” for choosing nets with large wirelength to minimize –Larger gradients for longer nets –Minimize long nets more efficiently than short nets Two-pin net Partial gradient for x 1 –close to 0, when net length |x 1 - x 2 | is small compared to  –close to 1 or -1, o.w.

9 9 Area Potential Function Overlap area = –overlap along the x and y directions –0/1 function with cell size ignored Area potential function: defines an “area potential” exerted by a cell to nearby grids –smooth bell-shaped function for standard cells [Naylor et al., US Patent 6,301,693 (2001)]

10 10 Module Area Potential Function Mixed-size placement: decide scope of area potential based on module's dimension p(d) : potential function –d : distance from module to grid –radius r = w/2 + 2w g for block with width w 1-a*d 2 b*(r-d) 2 d p(d) -w/2-2 w g w/2+ w g –convex curve d < w/2 + w g –concave curve w/2 + w g < d < w/2+ 2w g –smooth at d = w/2 + w g

11 11 Changes: APlace1.0  APlace2.0 Strong scalability from new clustering algorithm Dynamic adjustment of weights for wirelength and overlap penalty during global placement Improvements to legalization, detailed placement –whitespace compaction –cell reordering algorithms –global greedy cell movement APlace2.0 vs. APlace1.0: up to 19% WL reduction 1.5-2x speedup

12 12 IBM BigBlue4 Placement 2.1M instances, HPWL = 833.21, CPU = 23h

13 13 Outline History of APlace From APlace1.0 to APlace2.0 Anatomy of APlace2.0 New techniques in APlace2.0 Experimental Results Conclusions and Future Works

14 14 Anatomy of APlace 2.0 Clustering Adaptive APlace engine WS arrangement Cell order polishing Unclustering Global moving Legalization Global Phase Detailed Phase

15 15 New Feature 1: Multi-Level Clustering Objective: cluster to reduce runtime and allow scalable implementations with no compromise to quality  Multi-level approach using best- choice clustering (ISPD’05)  Clustering ratio  10  #Top-level clusters  2000  Wirelength calculation –assume modules located at cluster center –only consider inter-cluster parts of nets netlist reduce netlist size by 10x size ~ 2000? global placement uncluster flat? Legalization yes no yes no

16 16 Best-Choice Clustering Each clustering level uses the best-choice heuristic with lazy updates and tight area control  For each clustering level:  Calculate the clustering score of each node to its neighbors based on the number of connections and areas  Sort all nodes based on their best scores using a heap  Until target clustering ratio is reached:  If top node of heap is “valid” then cluster it with its closest neighbor  Else recalculate the top node score and reinsert in heap; Continue  calculate the clustering score of the new node and reinsert into the heap  update netlist and mark all neighbors of the new node as invalid

17 17 Two Clustering Concerns Mark boundaries of clustering hierarchy at each clustering level  allow exact reversal of clustering during unclustering Meet target number of objects by avoiding “saturation”  bypass small fixed objects during clustering cluster fixed object bypass fixed objects

18 18 Multiple Levels of Grids Adaptive grid size based on average cluster size Better global optimization –use solution of placement problem constrained with coarser grids as initial solution for problem constrained with finer grids Better scalability –larger grid size spreads modules faster Different levels of relaxation for density constraints –According to grid size

19 19 New Feature 2: Adaptive WL Weight Important to QOR Initial weight value –For each cluster level and grid level –Based on wirelength and density partial derivatives –Goal: Magnitudes of gradients roughly equal Decrease WL weight by half whenever CG solver obtains a stable solution

20 20 New Feature 3: Legalization and Detailed Placement Variant of greedy legalization algorithm (Hill’01): 1.Sort all cells from left to right: move each cell in order to the closest legal position 2.Sort all cells from right to left: move each cell in order to the closest legal position(s) 3.Pick the better of (1) and (2) Detailed Placement Components: Global cell movement (Goto81, KenningsM98 BoxPlace, FP…) Whitespace compaction (KahngTZ’99, KahngMR’04) Cell order polishing (similar to rowIroning, FS detailed placer) Intra-row cell reordering Inter-row cell reordering

21 21 Global Moving Move cell to “optimal” location among available whitespace –improve quality when utilization is low Two steps –search for available location in optimal region of a cell’s placement –search for available location in “best” bin divide placement area into uniform bins choose “best" bin according to available whitespace and cost of moving cell to bin center assume normal distribution of whitespace with width and estimate if an available location exists

22 22 WhiteSpace (WS) Compaction  Each chain represents the possible placement sites for each cell  The cost on the arrows is the change in HWPL of the cell move to each site  The order of chains correspond to the order of cells from left to right in a row  A Shortest path from source to sink gives the best way to compact WS sites cell 1 cell 2 cell 3 cell n row 123456789101112 start node end node

23 23 Cell Order Polishing Permute a small window of neighboring cells in order to improve wirelength –MetaPlacer’s rowIroning: up to 15 cells in one row assuming equal whitespace distribution –FengShui's cell ordering: six objects in one or more rows regarding whitespace as pseudo cells Branch-and-bound algorithm –four nearby cells in one or multiple rows –consider optimal placement for each permutation –more accurate, overlap-free permutations and no cell shifting

24 24 Single-Row Cell Ordering Cost of placing first j cells of a permutation –cost = wirelength increase when placing a cell –ΔWL≠ 0, only if cell is leftmost of rightmost –remaining cells placed to the right of first j cells –unrelated to order or placement of remaining cells B&B algorithm –construct permutations in lexicographic order next permutation has same prefix as the previous one beginning rows of DP table can be reused as possible –cut branch when minimum cost of placing first j cells > best cost till now

25 25 Two- or Three-Row Cell Ordering DP algorithm –decide how many cells assigned to each row from up to down –construct a permutation in lexicographic order –find “optimal” placement within the window Y-cost of placing first j cells: accurate –remaining cells placed lower than first j cells X-cost of placing first j cells: inaccurate when a net connects placed and unplaced cells –results show still effective with small set of cells and small window

26 26 Outline Introduction Clustering Global Placement Detailed Placement Experimental Results –IBM ISPD04 –IBM-PLACE v2 –IBM ICCAD04 –IBM ISPD05 Conclusions and Future Works

27 27 IBM ISPD04 3% better than the best other - mPL5 (ISPD05) Test basic placer performance with standard cells APlace2.0mPL5Capo9.0Dragon3FP1FS2.6 ibm1017.2017.31.11.041.07 ibm1113.22141.091.031.091.04 ibm1221.8322.31.111.031.081.07 ibm1316.4616.61.11.051.111.09 ibm1430.5531.61.11.051.111.04 ibm1538.3838.51.091.041.131.07 ibm1641.36431.11.051.071.09 ibm1760.8261.31.091.08 ibm1839.32411.091.021.11.04 Average0.9711.091.031.081.06

28 28 IBM Place V2 Test placer under whitespace presence and routability CircuitAPlace2.0ViasmPL+WSA ibm09-easy3.0234950733.5 ibm09-hard3.0275034103.65 ibm10-easy5.9777585986.84 ibm10-hard5.9317727446.76 ibm11-easy4.5776385235.16 ibm11-hard4.6546565255.15 ibm12-easy8.33789291510.52 ibm12-hard8.31790246510.13 Average0.881 12% better than mPL-R+WSA (ICCAD04)

29 29 IBM ICCAD04 Test placer performance with cells and blocks (floorplacement) APlace2.0FS2.6Capo9.0 ibm1028.5541.9634.98 ibm1118.6721.1922.31 ibm1233.5140.8440.78 ibm1323.0325.4528.7 ibm1435.939.9340.97 ibm1546.8251.9659.19 ibm1654.5862.7767 ibm1766.4969.3878.78 ibm1842.1445.5950.39 Average0.8611.05 14% and 19% better than FS and Capo, respectively

30 30 IBM ISPD05 adaptec2adaptec4BB1BB2BB3BB4 AVG APlace2.087.31187.6594.64143.82357.89833.21 1 mFAR91.53190.8497.7168.7379.95876.28 1.06 Dragon94.72200.88102.39159.71380.45903.96 1.08 mPL97.11200.9498.31173.22369.66904.19 1.09 FastPlace107.86204.48101.56169.89458.49889.87 1.16 Capo99.71211.25108.21172.3382.631098.76 1.17 NTUP100.31206.45106.54190.66411.811154.15 1.21 FengShui122.99337.22114.57285.43471.151040.05 1.5 KW157.65352.01149.44322.22656.191403.79 1.84 Test placer performance with cells and movable/fixed blocks 6% better than the best other placer (mFAR)

31 31 APlace2.0 Conclusions 60 days + clean sheet of paper + Qinke Wang + Sherief Reda Scalable implementation State-of-the-art clustering and global placement engines Improved detailed placement engine Better than best published results by 3% ISPD’04 suite 14% ICCAD’04 12% IBMPLACE V.2 6% ISPD’05 Placement Contest Recent Applications (other than restoring functionality) IR-drop driven placement (ICCD-2005 Best Paper) Lens aberration-aware placement (DATE-2006) Toward APlace3.0: ?

32 32 Thank You Questions?

33 33 Goals and Plan Goals: Build a new placer to win the competition Scalable, robust, high-quality implementation Leave no stone unturned / QOR on the table Plan and Schedule: Work within most promising framework: APlace 30 days for coding + 30 days for tuning

34 34 Philosophy Respect the competition Well-funded groups with decades of experience –ABKGroup’s Capo, MLPart, APlace = all unfunded side projects –No placement-related industry interactions QOR target: 24-26% better than Capo v9r6 on all known benchmarks –Nearly pulled out 10 days before competition Work smart Solve scalability and speed basics first –Slimmed-down data structure, -msse compiler options, etc. Ordered list of ~15 QOR ideas to implement Daily regressions on all known benchmarks Synthetic testcases to predict bb3, bb4, etc.

35 35 Implementation Framework APlace weaknesses: Weak clustering Poor legalization / detailed placement Clustering Adaptive APlace engine WS arrangement Cell order polishing Unclustering Global moving Legalization Global Phase Detailed Phase New APlace Flow New APlace: 1.New clustering 2.Adaptive parameter setting for scalability 3.New legalization + iterative detailed placement

36 36 Parameterization and Parallelizing Tuning Knobs:  Clustering ratio, # top-level clusters, cluster area constraints  Initial wirelength weight, wirelength weight reduction ratio  Max # CG iterations for each wirelength weight  Target placement discrepancy  Detailed placement parameters, etc. Resources:  SDSC ROCKS Cluster: 8 Xeon CPUs at 2.8GHz  Michigan Prof. Sylvester’s Group: 8 various CPUs  UCSD FWGrid: 60 Opteron CPUs at 1.6GHz  UCSD VLSICAD Group: 8 Xeon CPUs at 2.4GHz Wirelength Improvement after Tuning : 2-3%

37 37 Artificial Benchmark Synthesis  Synthetic benchmarks to test code scalability and performance  Rapid response to broadcast of s00-nam.pdf  Created “synthetic versions of bigblue3 and bigblue4 within 48 hours  Mimicked fixed-block layout diagrams in the artificial benchmark creation  This process was useful: we identified (and solved) a problem with clustering in presence of many small fixed blocks

38 38 Results Circuit GP HPWL Leg HPWL DP HPWLCPU (h) adaptec1 80.2081.8079.503 adaptec2 84.7092.1887.313 adaptec3 218.00230.00218.0010 adaptec4 182.90194.75187.7113 bigblue1 93.6797.8594.645 bigblue2 140.68147.85143.8012 bigblue3 357.28407.09357.8922 bigblue4 813.91868.07833.2150

39 39 Conclusions  ISPD05 = an exercise in process and philosophy  At end, we were still 4% short of where we wanted  Not happy with how we handled 5-day time frame  Auto-tuning  first results ~ best results  During competition, wrote but then left out “annealing” DP improvements that gained another 0.5%  Students and IBM ARL did a really, really great job  Currently restoring capabilities (congestion, timing-driven, etc.) and cleaning (antecedents in Naylor patent)


Download ppt "Architecture and Details of a High Quality, Large-Scale Analytical Placer Andrew B. Kahng, Sherief Reda and Qinke Wang VLSI CAD Lab University of California,"

Similar presentations


Ads by Google