Skip to content

Commit aa3253a

Browse files
committed
placement: PLACE_DENSITY_LB_ADDON code tweak
consistent with other code and 'make PLACE_DENSITY_LB_ADDON=' now works. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent ccd5a71 commit aa3253a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/scripts/util.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ proc erase_non_stage_variables {stage_name} {
153153
set global_route_congestion_report $::env(REPORTS_DIR)/congestion.rpt
154154

155155
proc place_density_with_lb_addon {} {
156-
# check the lower boundary of the PLACE_DENSITY and add PLACE_DENSITY_LB_ADDON if it exists
157-
if {[info exist ::env(PLACE_DENSITY_LB_ADDON)]} {
156+
if {[env_var_exists_and_non_empty PLACE_DENSITY_LB_ADDON]} {
157+
# check the lower boundary of the PLACE_DENSITY and add PLACE_DENSITY_LB_ADDON
158158
set place_density_lb [gpl::get_global_placement_uniform_density \
159159
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
160160
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT)]

0 commit comments

Comments
 (0)