File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ proc add_pdn_ring { args } {
504504 if { [info exists flags(-connect_to_pads)] } {
505505 if { ![info exists keys(-connect_to_pad_layers)] } {
506506 foreach layer [[ord::get_db_tech] getLayers] {
507- if { [$layer getType] == " ROUTING " } {
507+ if { [$layer getRoutingLevel] > 0 } {
508508 lappend connect_to_pad_layers $layer
509509 }
510510 }
@@ -906,7 +906,7 @@ proc define_pdn_grid { args } {
906906 if { [info exists flags(-connect_to_pads)] } {
907907 if { ![info exists keys(-connect_to_pad_layers)] } {
908908 foreach layer [[ord::get_db_tech] getLayers] {
909- if { [$layer getType] == " ROUTING " } {
909+ if { [$layer getRoutingLevel] > 0 } {
910910 lappend connect_to_pad_layers $layer
911911 }
912912 }
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ def define_pdn_grid_real(
243243 if bool (connect_to_pads ):
244244 if not bool (connect_to_pad_layers ):
245245 for layer in design .getTech ().getDB ().getTech ().getLayers ():
246- if layer .getType () == "ROUTING" :
246+ if layer .getRoutingLevel () > 0 :
247247 connect_to_pad_layers .append (layer )
248248 else :
249249 connect_to_pad_layers = [
@@ -691,7 +691,7 @@ def add_pdn_ring(
691691 if bool (connect_to_pads ):
692692 if not bool (connect_to_pad_layers ):
693693 for layer in design .getTech ().getDB ().getTech ().getLayers ():
694- if layer .getType () == "ROUTING" :
694+ if layer .getRoutingLevel () > 0 :
695695 connect_to_pad_layers .append (layer )
696696 else :
697697 connect_to_pad_layers = [
You can’t perform that action at this time.
0 commit comments