dr cu detailed routing by sparse grid graph and minimum
play

Dr. CU: Detailed Routing by Sparse Grid Graph and - PowerPoint PPT Presentation

Dr. CU: Detailed Routing by Sparse Grid Graph and Minimum-Area-Captured Path Search Gengjie Chen, Chak-Wa Pui, Haocheng Li, Jingsong Chen, Bentian Jiang, Evangeline F. Y. Young CSE Department, The Chinese University of Hong Kong Jan. 24, 2019


  1. Dr. CU: Detailed Routing by Sparse Grid Graph and Minimum-Area-Captured Path Search Gengjie Chen, Chak-Wa Pui, Haocheng Li, Jingsong Chen, Bentian Jiang, Evangeline F. Y. Young CSE Department, The Chinese University of Hong Kong Jan. 24, 2019

  2. Introduction – Key Challenges of Detailed Routing ◮ Compared to global routing ◮ On a significantly larger solution space ( 10 4 × 10 4 × 10 grid graph) ◮ Has many design rules ◮ Even more time-consuming and complicated in advanced tech nodes 1 / 26

  3. Introduction – Design Rules ◮ Short ◮ Spacing: parallel-run spacing, EOL spacing, cut spacing, ... ◮ Min area 𝒇𝒑𝒎𝑿𝒋𝒖𝒊𝒋𝒐 𝒒𝒃𝒔𝒃𝒎𝒎𝒇𝒎𝑺𝒗𝒐𝑴𝒇𝒐𝒉𝒖𝒊 𝒙𝒋𝒆𝒖𝒊 1 𝒇𝒑𝒎𝑻𝒒𝒃𝒅𝒇 Violation 𝒙𝒋𝒆𝒖𝒊𝟑 region 𝑭𝑷𝑴 𝒕𝒒𝒃𝒅𝒋𝒐𝒉 𝒇𝒑𝒎𝑿𝒋𝒆𝒖𝒊 (a) EOL spacing (b) Parallel-run spacing 2 / 26

  4. Introduction – Problem Formulation of Detailed Routing Given ◮ Placed netlist ◮ Routing guides (from global routing) ◮ Routing tracks ◮ Design rules Route all the nets & minimize a weighted sum of ◮ Total wire length ◮ Total via count ◮ Non-preferred usage (including out-of-guide & off-track wires/vias, wrong-way wires) ◮ Design rule violations 3 / 26

  5. Introduction – Our Approach ◮ Two-level sparse data structures = ⇒ efficiency ◮ Min-area-captured path search = ⇒ quality ◮ Bulk synchronous parallel = ⇒ further speed-up 4 / 26

  6. Outline Two-Level Sparse Data Structures Min-Area-Captured Path Search Bulk Synchronous Parallel Experimental Results

  7. Two-Level Sparse Data Structures local grid graph routing region of a net routing topology maze route record cache query edge usage global grid graph 5 / 26

  8. Sparse Global Grid Graph ◮ Store routed edges by BSTs & intervals ◮ Query via/wire conflict efficiently with help of LUTs ◮ Support batch query 6 / 26

  9. Sparse Global Grid Graph Example: query the conflict with a single candidate via same-layer via-via conflict LUT M3 track M4 track M3 wire M4 wire via-lower-wire conflict LUT routed via candidate via conflict via-lower-via, via-upper-via, via-upper- wire conflict LUTs … 7 / 26

  10. Sparse Global Grid Graph Example: query the conflict with many neighboring candidate vias same-layer via-via conflict LUT query region routed via in query region candidate via with violation via-lower-via, via-upper-via, via-lower-wire, via-upper-wire conflict LUTs … 8 / 26

  11. Sparse Local Grid Graph ◮ Cache global graph on routing region ◮ Subgraph of full-chip grid graph on routing region of a net ◮ Store vertex/edge information explicitly by direct-address tables ◮ Remove redundant vertices redundant vertex (a) Before removing redundant vertices (b) After removing redundant vertices 9 / 26

  12. Sparse Local Grid Graph ◮ Edge cost in local grid graph captures ◮ Base wire & via cost ◮ Out-of-guide penalty ◮ Short & spacing violation penalty ◮ How about min-area violation? 10 / 26

  13. Outline Two-Level Sparse Data Structures Min-Area-Captured Path Search Bulk Synchronous Parallel Experimental Results

  14. Min-Area-Captured Path Search Capture min area cost in path search (without considering wire extension) M1 wire M1 track M2 track M2 wire via 𝑻 𝑻 𝑻 𝑼 𝑼 𝑼 (a) A normal path search (b) Post fixing by extending (c) Forcing the min length of without considering min-area wire wire segment in path search violation (Suppose the min area rule implies a length of three pitches) 11 / 26

  15. Min-Area-Captured Path Search Capture min area cost in path search (with wire extension considered) M1 track M2 track M1 wire M2 wire via 𝑻 𝑻 𝑼 𝑼 (d) Detour due to the forcing (e) Path search with wire extension considered 12 / 26

  16. Min-Area-Captured Path Search Normal Dijkstra’s algorithm ◮ Cost/distance that can be directly incremented ◮ cost ( v 1 � v 2 � v 3 ) = cost ( v 1 � v 2 ) + cost ( v 2 � v 3 ) ◮ A vertex is visited at most once ◮ Back track by each vertex having a prefix Min-area-captured path search ◮ Uncertain cost ◮ Lower bound: edge cost sum + min-area penalty on previous wires ◮ Upper bound: lower bound + min-area penalty on the current wire ◮ A vertex may be visited multiple times ◮ Back track by (smart) pointers 13 / 26

  17. Outline Two-Level Sparse Data Structures Min-Area-Captured Path Search Bulk Synchronous Parallel Experimental Results

  18. Bulk Synchronous Parallel ◮ Route batches of independent nets one after another ◮ Fast scheduling followed by load balancing 17500 20 max. duration 15000 avg. duration # nets 12500 15 Duration (s) 10000 # nets 10 7500 5000 5 2500 0 0 0 50 100 150 200 250 300 350 Batch Figure: Scheduling without load balancing 14 / 26

  19. Bulk Synchronous Parallel ◮ Route batches of independent nets one after another ◮ Fast scheduling followed by load balancing 17500 20 max. duration 15000 avg. duration # nets 12500 15 Duration (s) 10000 # nets 10 7500 5000 5 2500 0 0 0 50 100 150 200 250 300 350 Batch Figure: Scheduling with load balancing 15 / 26

  20. Bulk Synchronous Parallel ◮ Separate a batch into routing and committing phases Routing phase Committing phase domain whole routing region solution paths global grid graph access read write locked? lock-free locked 16 / 26

  21. Outline Two-Level Sparse Data Structures Min-Area-Captured Path Search Bulk Synchronous Parallel Experimental Results

  22. Experimental Results ◮ On ISPD 2018 Contest Benchmarks Benchmark # std. # block macros # nets # pins # IO M2 M2 Tech. node pins # layers cells # tracks pitch ( µ m) (nm) 8879 0 3153 17203 0 9 977 0.2 45 test1 35913 0 36834 159201 1211 9 3254 0.2 45 test2 35973 4 36700 159703 1211 9 4943 0.2 45 test3 72094 0 72401 318245 1211 9 8886 0.1 32 test4 71954 0 72394 318195 1211 9 9800 0.1 32 test5 107919 0 107701 475541 1211 9 5312 0.1 32 test6 179865 16 179863 793289 1211 9 13500 0.1 32 test7 191987 16 179863 793289 1211 9 13500 0.1 32 test8 192911 0 178857 791761 1211 9 13500 0.1 32 test9 290386 0 182000 811761 1211 9 13500 0.1 32 test10 17 / 26

  23. Experimental Results ◮ On ISPD 2018 Contest Benchmarks Metric Weight wire length 0.5 # vias 2 out-of-guide wire length 1 non- # out-of-guide vias 1 preferred off-track wire length 0.5 usage # off-track vias 1 wrong-way wire length 1 design short metal area 500 rule # spacing violations 500 violations # min-area violations 500 18 / 26

  24. Experimental Results ◮ We do not abuse contest metric by converting spacing violations into short ones with zero area. Pin Pin Patch wire wire Obstacle Obstacle Short violation Spacing violation with zero area 19 / 26

  25. Experimental Results ◮ 8 threads gives almost 4 × speed-up ◮ Load balancing contributes 2.52% improvement test1 1 thread test2 8 threads w/o balancing test3 8 threads w/ balancing test4 test5 test6 test7 test8 test9 test10 0 2 , 000 4 , 000 6 , 000 8 , 000 Runtime (s) 20 / 26

Recommend


More recommend