File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -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)]} {
40+ if {[info exist ::env(PWR_NETS_VOLTAGES)] && [ string length $::env(PWR_NETS_VOLTAGES) ] > 0 } {
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)]} {
49+ if {[info exist ::env(GND_NETS_VOLTAGES)] && [ string length $::env(GND_NETS_VOLTAGES) ] > 0 } {
5050 dict for {gndNetName gndNetVoltage} {*}$::env(GND_NETS_VOLTAGES) {
5151 set_pdnsim_net_voltage -net ${gndNetName} -voltage ${gndNetVoltage}
5252 analyze_power_grid -net ${gndNetName} \
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ gui::set_display_controls "Layers/*" visible false
3434gui::set_display_controls " Instances/Physical/*" visible false
3535save_image -resolution $resolution $::env(REPORTS_DIR) /final_placement.webp
3636
37- if {[info exist ::env(PWR_NETS_VOLTAGES)]} {
37+ if {[info exist ::env(PWR_NETS_VOLTAGES)] && [ string length $::env(PWR_NETS_VOLTAGES) ] > 0 } {
3838 gui::set_display_controls " Heat Maps/IR Drop" visible true
3939 gui::set_heatmap IRDrop Layer $::env(IR_DROP_LAYER)
4040 gui::set_heatmap IRDrop ShowLegend 1
You can’t perform that action at this time.
0 commit comments