Skip to content

Commit c895a2d

Browse files
committed
pdn: stop using MACROS env var, just find the macros directly
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 08cc3a6 commit c895a2d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

flow/platforms/asap7/openRoad/pdn/BLOCKS_grid_strategy.tcl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,16 @@ add_pdn_connect -grid {top} -layers {M5 M6}
3131
# Element grid
3232
####################################
3333
# The halo around the macro prevents pdn from blocking pin access
34-
define_pdn_grid -macro -cells $::env(MACROS) \
34+
35+
set macro_names {}
36+
37+
foreach macro [find_macros] {
38+
set macro_name [[$macro getMaster] getName]
39+
dict set macro_names $macro_name 1
40+
}
41+
set macro_names [dict keys $macro_names]
42+
43+
define_pdn_grid -macro -cells $macro_names \
3544
-halo "$::env(MACRO_HALO_X) $::env(MACRO_HALO_Y) $::env(MACRO_HALO_X) $::env(MACRO_HALO_Y)" \
3645
-voltage_domains {CORE} -name ElementGrid
3746

0 commit comments

Comments
 (0)