Skip to content

Commit 0bceed5

Browse files
committed
grt: add new unit tests
Signed-off-by: Eder Monteiro <[email protected]>
1 parent fccb5de commit 0bceed5

File tree

7 files changed

+7681
-0
lines changed

7 files changed

+7681
-0
lines changed

src/grt/test/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ TESTS = [
6666
"report_wire_length4",
6767
"report_wire_length5",
6868
"report_wire_length6",
69+
"report_wire_length7",
70+
"report_wire_length8",
6971
"set_nets_to_route1",
7072
"silence",
7173
"single_row",

src/grt/test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ or_integration_tests(
6666
report_wire_length4
6767
report_wire_length5
6868
report_wire_length6
69+
report_wire_length7
70+
report_wire_length8
6971
set_nets_to_route1
7072
silence
7173
single_row

src/grt/test/report_wire_length7.def

Lines changed: 7576 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[INFO ODB-0227] LEF file: Nangate45/Nangate45.lef, created 22 layers, 27 vias, 135 library cells
2+
[INFO ODB-0128] Design: gcd
3+
[INFO ODB-0130] Created 54 pins.
4+
[INFO ODB-0131] Created 676 components and 2850 component-terminals.
5+
[INFO ODB-0133] Created 579 nets and 1498 connections.
6+
[INFO GRT-0279] Detailed route wire length by layer:
7+
metal1 1127.44um 15%
8+
metal2 3512.985um 47%
9+
metal3 2307.725um 31%
10+
metal4 77.605um 1%
11+
metal5 125.86um 1%
12+
metal6 168.28um 2%
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# check route guides for gcd_nangate45. def file from the openroad-flow
2+
source "helpers.tcl"
3+
read_lef "Nangate45/Nangate45.lef"
4+
read_def "report_wire_length7.def"
5+
6+
report_wire_length -summary -detailed_route
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
[INFO ODB-0227] LEF file: Nangate45/Nangate45.lef, created 22 layers, 27 vias, 135 library cells
2+
[INFO ODB-0128] Design: gcd
3+
[INFO ODB-0130] Created 54 pins.
4+
[INFO ODB-0131] Created 676 components and 2850 component-terminals.
5+
[INFO ODB-0133] Created 579 nets and 1498 connections.
6+
[WARNING GRT-0300] Timing is not available, setting critical nets percentage to 0.
7+
[INFO GRT-0020] Min routing layer: metal1
8+
[INFO GRT-0021] Max routing layer: metal10
9+
[INFO GRT-0022] Global adjustment: 0%
10+
[INFO GRT-0023] Grid origin: (0, 0)
11+
[INFO GRT-0088] Layer metal1 Track-Pitch = 0.1400 line-2-Via Pitch: 0.1350
12+
[INFO GRT-0088] Layer metal2 Track-Pitch = 0.1900 line-2-Via Pitch: 0.1400
13+
[INFO GRT-0088] Layer metal3 Track-Pitch = 0.1400 line-2-Via Pitch: 0.1400
14+
[INFO GRT-0088] Layer metal4 Track-Pitch = 0.2800 line-2-Via Pitch: 0.2800
15+
[INFO GRT-0088] Layer metal5 Track-Pitch = 0.2800 line-2-Via Pitch: 0.2800
16+
[INFO GRT-0088] Layer metal6 Track-Pitch = 0.2800 line-2-Via Pitch: 0.2800
17+
[INFO GRT-0088] Layer metal7 Track-Pitch = 0.8000 line-2-Via Pitch: 0.8000
18+
[INFO GRT-0088] Layer metal8 Track-Pitch = 0.8000 line-2-Via Pitch: 0.8000
19+
[INFO GRT-0088] Layer metal9 Track-Pitch = 1.6000 line-2-Via Pitch: 1.6000
20+
[INFO GRT-0088] Layer metal10 Track-Pitch = 1.6000 line-2-Via Pitch: 1.6000
21+
[INFO GRT-0003] Macros: 0
22+
[INFO GRT-0004] Blockages: 2874
23+
[INFO GRT-0019] Found 0 clock nets.
24+
[INFO GRT-0001] Minimum degree: 2
25+
[INFO GRT-0002] Maximum degree: 36
26+
27+
[INFO GRT-0053] Routing resources analysis:
28+
Routing Original Derated Resource
29+
Layer Direction Resources Resources Reduction (%)
30+
---------------------------------------------------------------
31+
metal1 Horizontal 33840 25751 23.90%
32+
metal2 Vertical 25163 24628 2.13%
33+
metal3 Horizontal 33840 33120 2.13%
34+
metal4 Vertical 16039 15698 2.13%
35+
metal5 Horizontal 15792 15456 2.13%
36+
metal6 Vertical 16039 15698 2.13%
37+
metal7 Horizontal 4512 4416 2.13%
38+
metal8 Vertical 4610 4512 2.13%
39+
metal9 Horizontal 2256 2208 2.13%
40+
metal10 Vertical 2305 2256 2.13%
41+
---------------------------------------------------------------
42+
43+
[INFO GRT-0197] Via related to pin nodes: 1963
44+
[INFO GRT-0198] Via related Steiner nodes: 79
45+
[INFO GRT-0199] Via filling finished.
46+
[INFO GRT-0111] Final number of vias: 2786
47+
[INFO GRT-0112] Final usage 3D: 11816
48+
49+
[INFO GRT-0096] Final congestion report:
50+
Layer Resource Demand Usage (%) Max H / Max V / Total Overflow
51+
---------------------------------------------------------------------------------------
52+
metal1 25751 725 2.82% 0 / 0 / 0
53+
metal2 24628 1600 6.50% 0 / 0 / 0
54+
metal3 33120 980 2.96% 0 / 0 / 0
55+
metal4 15698 48 0.31% 0 / 0 / 0
56+
metal5 15456 41 0.27% 0 / 0 / 0
57+
metal6 15698 64 0.41% 0 / 0 / 0
58+
metal7 4416 0 0.00% 0 / 0 / 0
59+
metal8 4512 0 0.00% 0 / 0 / 0
60+
metal9 2208 0 0.00% 0 / 0 / 0
61+
metal10 2256 0 0.00% 0 / 0 / 0
62+
---------------------------------------------------------------------------------------
63+
Total 143743 3458 2.41% 0 / 0 / 0
64+
65+
[INFO GRT-0018] Total wirelength: 10367 um
66+
[INFO GRT-0014] Routed nets: 563
67+
[INFO GRT-0278] Global route wire length by layer:
68+
metal1 1522.5um 20%
69+
metal2 3360um 46%
70+
metal3 2058um 28%
71+
metal4 100.8um 1%
72+
metal5 86.1um 1%
73+
metal6 134.4um 1%
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# check route guides for gcd_nangate45. def file from the openroad-flow
2+
source "helpers.tcl"
3+
read_lef "Nangate45/Nangate45.lef"
4+
read_def "gcd.def"
5+
6+
set guide_file [make_result_file gcd.guide]
7+
8+
global_route -verbose
9+
10+
report_wire_length -summary -global_route

0 commit comments

Comments
 (0)