Skip to content

Commit b68246e

Browse files
committed
est/odb/pdn/rcx: use prefix from the correct module in messages
Signed-off-by: Matt Liberty <[email protected]>
1 parent 69a7c63 commit b68246e

File tree

12 files changed

+57
-57
lines changed

12 files changed

+57
-57
lines changed

src/est/src/EstimateParasitics.tcl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ proc set_layer_rc { args } {
5353
flags {}
5454

5555
if { [info exists keys(-layer)] && [info exists keys(-via)] } {
56-
utl::error "ORD" 201 "Use -layer or -via but not both."
56+
utl::error "EST" 201 "Use -layer or -via but not both."
5757
}
5858

5959
set corners [sta::parse_corner_or_all keys]
@@ -62,15 +62,15 @@ proc set_layer_rc { args } {
6262
set layer_name $keys(-layer)
6363
set layer [$tech findLayer $layer_name]
6464
if { $layer == "NULL" } {
65-
utl::error "ORD" 202 "layer $layer_name not found."
65+
utl::error "EST" 202 "layer $layer_name not found."
6666
}
6767

6868
if { [$layer getRoutingLevel] == 0 } {
69-
utl::error "ORD" 203 "$layer_name is not a routing layer."
69+
utl::error "EST" 203 "$layer_name is not a routing layer."
7070
}
7171

7272
if { ![info exists keys(-capacitance)] && ![info exists keys(-resistance)] } {
73-
utl::error "ORD" 204 "missing -capacitance or -resistance argument."
73+
utl::error "EST" 204 "missing -capacitance or -resistance argument."
7474
}
7575

7676
set cap 0.0
@@ -102,11 +102,11 @@ proc set_layer_rc { args } {
102102
set layer_name $keys(-via)
103103
set layer [$tech findLayer $layer_name]
104104
if { $layer == "NULL" } {
105-
utl::error "ORD" 205 "via $layer_name not found."
105+
utl::error "EST" 205 "via $layer_name not found."
106106
}
107107

108108
if { [info exists keys(-capacitance)] } {
109-
utl::warn "ORD" 206 "-capacitance not supported for vias."
109+
utl::warn "EST" 206 "-capacitance not supported for vias."
110110
}
111111

112112
if { [info exists keys(-resistance)] } {
@@ -124,10 +124,10 @@ proc set_layer_rc { args } {
124124
est::set_layer_rc_cmd $layer $corner $res 0.0
125125
}
126126
} else {
127-
utl::error "ORD" 208 "no -resistance specified for via."
127+
utl::error "EST" 208 "no -resistance specified for via."
128128
}
129129
} else {
130-
utl::error "ORD" 209 "missing -layer or -via argument."
130+
utl::error "EST" 209 "missing -layer or -via argument."
131131
}
132132
}
133133

src/grt/test/no_tracks.ok

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[INFO ODB-0227] LEF file: Nangate45/Nangate45.lef, created 22 layers, 27 vias, 135 library cells
22
[INFO IFP-0001] Added 29 rows of 219 site FreePDK45_38x28_10R_NP_162NW_34O.
3-
[ERROR GRT-0057] Missing track structure for layer metal1.
4-
GRT-0057
3+
[ERROR ODB-0139] Missing track structure for layer metal1.
4+
ODB-0139

src/odb/src/swig/tcl/odb.tcl

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ proc define_layer_range { layers } {
598598
[ord::db_layer_has_ver_tracks $db_layer])
599599
} {
600600
set layer_name [$db_layer getName]
601-
utl::error GRT 57 "Missing track structure for layer $layer_name."
601+
utl::error ODB 139 "Missing track structure for layer $layer_name."
602602
}
603603
}
604604
}
@@ -622,7 +622,7 @@ proc define_clock_layer_range { layers } {
622622
$block setMinLayerForClock $min_clock_layer
623623
$block setMaxLayerForClock $max_clock_layer
624624
} else {
625-
utl::error GRT 56 "In argument -clock_layers, min routing layer is\
625+
utl::error ODB 137 "In argument -clock_layers, min routing layer is\
626626
greater than max routing layer."
627627
}
628628
}
@@ -709,11 +709,11 @@ proc set_io_pin_constraint { args } {
709709
set lef_units [$tech getLefUnits]
710710

711711
if { [info exists keys(-region)] && [info exists keys(-mirrored_pins)] } {
712-
utl::error PPL 83 "Both -region and -mirrored_pins constraints not allowed."
712+
utl::error ODB 144 "Both -region and -mirrored_pins constraints not allowed."
713713
}
714714

715715
if { [info exists keys(-mirrored_pins)] && [info exists flags(-group)] } {
716-
utl::error PPL 87 "Both -mirrored_pins and -group constraints not allowed."
716+
utl::error ODB 146 "Both -mirrored_pins and -group constraints not allowed."
717717
}
718718

719719
if { [info exists keys(-region)] } {
@@ -735,12 +735,12 @@ proc set_io_pin_constraint { args } {
735735
set begin [ppl::get_edge_extreme "-region" 1 $edge]
736736
set end [ppl::get_edge_extreme "-region" 0 $edge]
737737
} else {
738-
utl::error PPL 212 "Invalid value for \'-region edge:interval\'. Set the interval as the\
738+
utl::error ODB 261 "Invalid value for \'-region edge:interval\'. Set the interval as the\
739739
wildcard \'*\' or as a range \'begin-end\' in microns."
740740
}
741741

742742
if { [info exists keys(-direction)] && [info exists keys(-pin_names)] } {
743-
utl::error PPL 16 "Both -direction and -pin_names constraints not allowed."
743+
utl::error ODB 17 "Both -direction and -pin_names constraints not allowed."
744744
}
745745

746746
if { [info exists keys(-direction)] } {
@@ -772,37 +772,37 @@ proc set_io_pin_constraint { args } {
772772
set urx [ord::microns_to_dbu $urx]
773773
set ury [ord::microns_to_dbu $ury]
774774
} else {
775-
utl::error PPL 59 "Box at top layer must have 4 values (llx lly urx ury)."
775+
utl::error ODB 145 "Box at top layer must have 4 values (llx lly urx ury)."
776776
}
777777

778778
if { [info exists keys(-pin_names)] } {
779779
set names $keys(-pin_names)
780780
odb::add_pins_to_top_layer $names $llx $lly $urx $ury
781781
}
782782
} else {
783-
utl::warn PPL 73 "Constraint with region $region has an invalid edge."
783+
utl::warn ODB 142 "Constraint with region $region has an invalid edge."
784784
}
785785
}
786786

787787
if { [info exists flags(-group)] } {
788788
if { [info exists keys(-pin_names)] } {
789789
set group $keys(-pin_names)
790790
} else {
791-
utl::error PPL 58 "The -pin_names argument is required when using -group flag."
791+
utl::error ODB 140 "The -pin_names argument is required when using -group flag."
792792
}
793793

794794
set pin_list [ppl::parse_pin_names "place_pins -group_pins" $group]
795795
if { [llength $pin_list] != 0 } {
796796
odb::add_pin_group $pin_list [info exists flags(-order)]
797797
}
798798
} elseif { [info exists flags(-order)] } {
799-
utl::error PPL 95 "-order cannot be used without -group."
799+
utl::error ODB 147 "-order cannot be used without -group."
800800
}
801801

802802
if { [info exists keys(-mirrored_pins)] } {
803803
set mirrored_pins $keys(-mirrored_pins)
804804
if { [llength $mirrored_pins] % 2 != 0 } {
805-
utl::error PPL 81 "List of pins must have an even number of pins."
805+
utl::error ODB 143 "List of pins must have an even number of pins."
806806
}
807807

808808
foreach {pin1 pin2} $mirrored_pins {
@@ -859,7 +859,7 @@ proc exclude_io_pin_region { args } {
859859
}
860860
}
861861
} else {
862-
utl::error PPL 10 "The -region keyword is required for exclude_io_pin_region command."
862+
utl::error ODB 12 "The -region keyword is required for exclude_io_pin_region command."
863863
}
864864
}
865865

@@ -991,17 +991,17 @@ proc define_pin_shape_pattern { args } {
991991
set layer [ppl::parse_layer_name $layer_name]
992992

993993
if { $layer == 0 } {
994-
utl::error PPL 52 "Routing layer not found for name $layer_name."
994+
utl::error ODB 96 "Routing layer not found for name $layer_name."
995995
}
996996
} else {
997-
utl::error PPL 53 "-layer is required."
997+
utl::error ODB 150 "-layer is required."
998998
}
999999

10001000
if { [info exists keys(-x_step)] && [info exists keys(-y_step)] } {
10011001
set x_step [ord::microns_to_dbu $keys(-x_step)]
10021002
set y_step [ord::microns_to_dbu $keys(-y_step)]
10031003
} else {
1004-
utl::error PPL 54 "-x_step and -y_step are required."
1004+
utl::error ODB 102 "-x_step and -y_step are required."
10051005
}
10061006

10071007
set block [ord::get_db_block]
@@ -1023,23 +1023,23 @@ proc define_pin_shape_pattern { args } {
10231023
set urx [$die_area xMax]
10241024
set ury [$die_area yMax]
10251025
} else {
1026-
utl::error PPL 63 "-region is not a list of 4 values {llx lly urx ury}."
1026+
utl::error ODB 141 "-region is not a list of 4 values {llx lly urx ury}."
10271027
}
10281028
odb::Rect region $llx $lly $urx $ury
10291029
} else {
1030-
utl::error PPL 55 "-region is required."
1030+
utl::error ODB 135 "-region is required."
10311031
}
10321032

10331033
if { [info exists keys(-size)] } {
10341034
set size $keys(-size)
10351035
if { [llength $size] != 2 } {
1036-
utl::error PPL 56 "-size is not a list of 2 values."
1036+
utl::error ODB 136 "-size is not a list of 2 values."
10371037
}
10381038
lassign $size width height
10391039
set width [ord::microns_to_dbu $width]
10401040
set height [ord::microns_to_dbu $height]
10411041
} else {
1042-
utl::error PPL 57 "-size is required."
1042+
utl::error ODB 138 "-size is required."
10431043
}
10441044

10451045
if { [info exists keys(-pin_keepout)] } {

src/pdn/src/grid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,8 +1789,8 @@ bool BumpGrid::isValid() const
17891789
const auto nets = getNets(startsWithPower());
17901790
const int net_count = nets.size();
17911791
if (net_count > 1) {
1792-
getLogger()->warn(utl::PAD,
1793-
232,
1792+
getLogger()->warn(utl::PDN,
1793+
241,
17941794
"Bump grid for {} is connected to {} power nets",
17951795
getInstance()->getName(),
17961796
net_count);

src/ppl/test/add_constraint_error1.ok

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
[INFO ODB-0130] Created 54 pins.
44
[INFO ODB-0131] Created 88 components and 422 component-terminals.
55
[INFO ODB-0133] Created 54 nets and 88 connections.
6-
[ERROR PPL-0081] List of pins must have an even number of pins.
7-
PPL-0081
6+
[ERROR ODB-0143] List of pins must have an even number of pins.
7+
ODB-0143

src/ppl/test/add_constraint_error10.ok

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
[INFO ODB-0130] Created 54 pins.
44
[INFO ODB-0131] Created 88 components and 422 component-terminals.
55
[INFO ODB-0133] Created 54 nets and 88 connections.
6-
[ERROR PPL-0212] Invalid value for '-region edge:interval'. Set the interval as the wildcard '*' or as a range 'begin-end' in microns.
7-
PPL-0212
6+
[ERROR ODB-0261] Invalid value for '-region edge:interval'. Set the interval as the wildcard '*' or as a range 'begin-end' in microns.
7+
ODB-0261

src/ppl/test/add_constraint_error2.ok

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
[INFO ODB-0130] Created 54 pins.
44
[INFO ODB-0131] Created 88 components and 422 component-terminals.
55
[INFO ODB-0133] Created 54 nets and 88 connections.
6-
[ERROR PPL-0083] Both -region and -mirrored_pins constraints not allowed.
7-
PPL-0083
6+
[ERROR ODB-0144] Both -region and -mirrored_pins constraints not allowed.
7+
ODB-0144

src/ppl/test/add_constraint_error3.ok

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
[INFO ODB-0130] Created 54 pins.
44
[INFO ODB-0131] Created 88 components and 422 component-terminals.
55
[INFO ODB-0133] Created 54 nets and 88 connections.
6-
[ERROR PPL-0058] The -pin_names argument is required when using -group flag.
7-
PPL-0058
6+
[ERROR ODB-0140] The -pin_names argument is required when using -group flag.
7+
ODB-0140

src/ppl/test/add_constraint_error4.ok

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
[INFO ODB-0130] Created 54 pins.
44
[INFO ODB-0131] Created 88 components and 422 component-terminals.
55
[INFO ODB-0133] Created 54 nets and 88 connections.
6-
[ERROR PPL-0087] Both -mirrored_pins and -group constraints not allowed.
7-
PPL-0087
6+
[ERROR ODB-0146] Both -mirrored_pins and -group constraints not allowed.
7+
ODB-0146

src/ppl/test/add_constraint_error5.ok

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
[INFO ODB-0130] Created 54 pins.
44
[INFO ODB-0131] Created 88 components and 422 component-terminals.
55
[INFO ODB-0133] Created 54 nets and 88 connections.
6-
[ERROR PPL-0095] -order cannot be used without -group.
7-
PPL-0095
6+
[ERROR ODB-0147] -order cannot be used without -group.
7+
ODB-0147

0 commit comments

Comments
 (0)