Home

Awesome

Dr. CU

Dr. CU is a VLSI detailed routing tool developed by the research team supervised by Prof. Evangeline F.Y. Young in The Chinese University of Hong Kong (CUHK). Different from global routing, detailed routing takes care of many detailed design rules and is performed on a significantly larger routing grid graph. In advanced technology nodes, it becomes the most complicated and time-consuming stage in the VLSI physical design flow. To tackle the challenges, we design and implement several efficient and effective data structures and algorithms under a holistic framework:

More details are in the following papers:

(Dr. CU supports ISPD'18 benchmarks and ISPD'19 benchmarks. This version of code is consistent with the ICCAD paper.)

1. How to Build

Step 1: Download the source code. For example,

$ git clone https://github.com/cuhk-eda/dr-cu

Step 2: Go to the project root and build by

$ cd dr-cu
$ scripts/build.py -o release

Note that this will generate two folders under the root, build and run (build contains intermediate files for build/compilation, while run contains binaries and auxiliary files). More details are in scripts/build.py.

1.1. Dependencies

2. How to Run

2.1. Toy Test

Run Binary Directly

Go to the run directory and run the binary ispd18dr with a toy case ispd18_sample:

$ cd run
$ ./ispd18dr -lef ../toys/ispd18_sample/ispd18_sample.input.lef -def ../toys/ispd18_sample/ispd18_sample.input.def -guide ../toys/ispd18_sample/ispd18_sample.in
put.guide -output ispd18_sample.solution.def -threads 8

Run with a Wrapping Script

Instead of running the binary directly, you may also use a wrapping script run.py to save typing and do more:

$ cd run
$ ./run.py 8s -p ../toys/

If Innovus® has been properly installed in your OS, an evaluation can be launched by

$ ./run.py 8s -s eval -p ../toys/

In the end, a result table will be printed in the terminal.

Furthermore, the solution can be visualized by

$ ./run.py 8s -s view -p ../toys/

which gives:

ispd18_sample.solution.png

The three steps, route, eval and view of run.py can also be invoked in a single line:

$ ./run.py 8s -s route eval view -p ../toys/

More usage about run.py can be known by the option -h.

2.2. Batch Test

The benchmarks can be downloaded from the hompage of ISPD'18 Contest . You may let run.py know the benchmark path by setting OS environmental variable BENCHMARK_PATH or specifying it under option -p. Then,

$ cd run
$ ./run.py <benchmark_name...|all> -s route eval [option...]

3. Modules

4. Results

Experiments are performed on a 64-bit Linux workstation with Intel Xeon Silver 4114 CPU (2.20GHz, 40 cores) and 256GB memory. Consistent with the contest, eight threads are used.

designWL#svog WLog #vot WLot #vww WL#shortshort a#min a#prl#eol#cut#adj#cnr#spc#ototal scoremem (GB)time (s)
ispd18_test1433546.30324022178.88443414.1005832.07N/A0.110N/AN/AN/AN/AN/A202912910.3814
ispd18_test27832686.7532568441335.3565425292.68054137.45N/A0.120N/AN/AN/AN/AN/A57047009341.83124
ispd18_test38717807.3131830974908.6066365941.85060458.50N/A222.500N/AN/AN/AN/AN/A94052987451.99205
ispd18_test426420290.64729312378137.432989517444.760205213.27N/A245.3393N/AN/AN/AN/AN/A5930157564049.471200
ispd18_test527801300.46965544150150.75218685826.66377342.76N/A62.45141N/AN/AN/AN/AN/A3620163667437.06637
ispd18_test635703509.131480617243107.403658116482.9016119011.40N/A14.40265N/AN/AN/AN/AN/A5420216306466.58710
ispd18_test765173410.392402543403550.305553232564.190186466.07N/A164.14357N/AN/AN/AN/AN/A19603841219112.701413
ispd18_test865469076.072412121404288.835436932394.170182631.92N/A179.39401N/AN/AN/AN/AN/A19203860246113.541411
ispd18_test954760288.722410790358490.455531826357.220177587.80N/A14.83522N/AN/AN/AN/AN/A10903312921411.301122
ispd18_test1068090186.4825943861066700.569760039856.210236109.72N/A2582.10600N/AN/AN/AN/AN/A91804270425211.822224
ispd19_test1642583.703679713538.581567762.5974411284.835519.8217102219555N/A05974031.28150
ispd19_test224961335.76811080395795.893427122002.7323615209929.361639547.08634965987172945984N/A02191064013.811694
ispd19_test3842169.626550112447.0716721938.8066216236.767422.92492011253278108N/A010600340.9762
ispd19_test430491193.701031333568882.564524715201.723122369.6422641783.133726447000N/A02231259912.091745
ispd19_test54780469.7215350414036.3826882087.561515212.3628770.18314416000N/A032973381.75155
ispd19_test666066591.231998487760296.226686225717.7012468457307.5740221558.647541175822377561235N/A04733685610.422836
ispd19_test7122558107.844833913883097.5910201045009.7324305607014.342423899.001916217331682753483512N/A09873664020.827165
ispd19_test8188472592.0973652921225631.5116321872500.4236390729298.2830481070.812830429227931266815903N/A013653015530.9610714
ispd19_test9285390772.80122494761881593.79276221125462.74606241213996.9866461933.6650106815515734841339484N/A021451979049.4015010
ispd19_test10282178218.27125445411821064.92255274127318.93606211412830.9268791984.04485567694872299013610429N/A021433774450.7215932

(WL for "wirelength", v for "via", sv for "single-cut via", og for "out-of-guide", ot for "off-track", ww for "wrong-way", a for "area", prl for "parallel-run-length spacing", eol for "end-of-line spacing")

5. License

READ THIS LICENSE AGREEMENT CAREFULLY BEFORE USING THIS PRODUCT. BY USING THIS PRODUCT YOU INDICATE YOUR ACCEPTANCE OF THE TERMS OF THE FOLLOWING AGREEMENT. THESE TERMS APPLY TO YOU AND ANY SUBSEQUENT LICENSEE OF THIS PRODUCT.

License Agreement for Dr. CU

Copyright (c) 2019-2021, The Chinese University of Hong Kong

All rights reserved.

CU-SD LICENSE (adapted from the original BSD license) Redistribution of the any code, with or without modification, are permitted provided that the conditions below are met.

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name nor trademark of the copyright holder or the author may be used to endorse or promote products derived from this software without specific prior written permission.

  4. Users are entirely responsible, to the exclusion of the author, for compliance with (a) regulations set by owners or administrators of employed equipment, (b) licensing terms of any other software, and (c) local, national, and international regulations regarding use, including those regarding import, export, and use of encryption software.

THIS FREE SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR ANY CONTRIBUTOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, EFFECTS OF UNAUTHORIZED OR MALICIOUS NETWORK ACCESS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.