@@ -17,11 +17,11 @@ write_def $::env(RESULTS_DIR)/6_final.def
1717write_verilog $::env(RESULTS_DIR) /6_final.v
1818
1919# Run extraction and STA
20- if {[info exist ::env( RCX_RULES) ]} {
20+ if {[env_var_exists_and_non_empty RCX_RULES]} {
2121
2222 # Set RC corner for RCX
2323 # Set in config.mk
24- if {[info exist ::env( RCX_RC_CORNER) ]} {
24+ if {[env_var_exists_and_non_empty RCX_RC_CORNER]} {
2525 set rc_corner $::env(RCX_RC_CORNER)
2626 }
2727
@@ -37,7 +37,7 @@ if {[info exist ::env(RCX_RULES)]} {
3737 read_spef $::env(RESULTS_DIR) /6_final.spef
3838
3939 # Static IR drop analysis
40- if {[info exist ::env( PWR_NETS_VOLTAGES)] && [ string length $::env(PWR_NETS_VOLTAGES) ] > 0 } {
40+ if {[env_var_exists_and_non_empty PWR_NETS_VOLTAGES] } {
4141 dict for {pwrNetName pwrNetVoltage} {*}$::env(PWR_NETS_VOLTAGES) {
4242 set_pdnsim_net_voltage -net ${pwrNetName} -voltage ${pwrNetVoltage}
4343 analyze_power_grid -net ${pwrNetName} \
@@ -46,7 +46,7 @@ if {[info exist ::env(RCX_RULES)]} {
4646 } else {
4747 puts " IR drop analysis for power nets is skipped because PWR_NETS_VOLTAGES is undefined"
4848 }
49- if {[info exist ::env( GND_NETS_VOLTAGES)] && [ string length $::env(GND_NETS_VOLTAGES) ] > 0 } {
49+ if {[env_var_exists_and_non_empty GND_NETS_VOLTAGES] } {
5050 dict for {gndNetName gndNetVoltage} {*}$::env(GND_NETS_VOLTAGES) {
5151 set_pdnsim_net_voltage -net ${gndNetName} -voltage ${gndNetVoltage}
5252 analyze_power_grid -net ${gndNetName} \
0 commit comments