Skip to content

Commit 81431ef

Browse files
committed
scripts: use env_var_equals for consistency
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent bbc81ce commit 81431ef

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

flow/scripts/detail_place.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source $::env(PLATFORM_DIR)/setRC.tcl
66

77
proc do_dpl {} {
88
# Only for use with hybrid rows
9-
if {[info exists ::env(BALANCE_ROWS)] && $::env(BALANCE_ROWS)} {
9+
if {[env_var_equals BALANCE_ROWS 1]} {
1010
balance_row_usage
1111
}
1212

@@ -15,7 +15,7 @@ proc do_dpl {} {
1515
-right $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT)
1616
detailed_placement
1717

18-
if {[info exists ::env(ENABLE_DPO)] && $::env(ENABLE_DPO)} {
18+
if {[env_var_equals ENABLE_DPO 1]} {
1919
if {[info exist ::env(DPO_MAX_DISPLACEMENT)]} {
2020
improve_placement -max_displacement $::env(DPO_MAX_DISPLACEMENT)
2121
} else {

flow/scripts/load.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ proc load_design {design_file sdc_file} {
3636

3737
source $::env(PLATFORM_DIR)/setRC.tcl
3838

39-
if { [info exists ::env(LIB_MODEL)] && $::env(LIB_MODEL) == "CCS" } {
39+
if { [env_var_equals LIB_MODEL CCS] } {
4040
puts "Using CCS delay calculation"
4141
set_delay_calculator prima
4242
}

flow/scripts/read_liberty.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# To remove [WARNING STA-1212] from the logs for ASAP7.
22
# /OpenROAD-flow-scripts/flow/platforms/asap7/lib/asap7sc7p5t_SIMPLE_RVT_TT_nldm_211120.lib.gz line 13178, timing group from output port.
33
# Added following suppress_message
4-
if {[info exists ::env(PLATFORM)] && $::env(PLATFORM) == "asap7"} {
4+
if {[env_var_equals PLATFORM asap7]} {
55
suppress_message STA 1212
66
}
77

@@ -24,6 +24,6 @@ if {[env_var_exists_and_non_empty CORNERS]} {
2424
}
2525
}
2626

27-
if {[info exists ::env(PLATFORM)] && $::env(PLATFORM) == "asap7"} {
27+
if {[env_var_equals PLATFORM asap7]} {
2828
unsuppress_message STA 1212
2929
}

flow/scripts/report_metrics.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ proc report_puts { out } {
77
}
88

99
proc report_metrics { stage when {include_erc true} {include_clock_skew true} } {
10-
if {[info exists ::env(SKIP_REPORT_METRICS)] && $::env(SKIP_REPORT_METRICS) == 1} {
10+
if {[env_var_equals SKIP_REPORT_METRICS 1]} {
1111
return
1212
}
1313
puts "Report metrics stage $stage, $when..."

0 commit comments

Comments
 (0)