Skip to content

Commit 7416d2e

Browse files
committed
Fix TCL's failure to do short circuit eval properly
Signed-off-by: Matt Liberty <[email protected]>
1 parent 33a09a8 commit 7416d2e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

flow/scripts/detail_route.tcl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
utl::set_metrics_stage "detailedroute__{}"
22
source $::env(SCRIPTS_DIR)/load.tcl
3-
if {[expr [file exists $::global_route_congestion_report] && \
4-
[file size $::global_route_congestion_report] != 0]} {
5-
error "Global routing failed, run `make gui_grt` and load $::global_route_congestion_report \
6-
in DRC viewer to view congestion"
3+
if {[file exists $::global_route_congestion_report]} {
4+
if {[file size $::global_route_congestion_report] != 0]} {
5+
error "Global routing failed, run `make gui_grt` and load $::global_route_congestion_report \
6+
in DRC viewer to view congestion"
7+
}
78
}
89
load_design 5_1_grt.odb 4_cts.sdc
910
erase_non_stage_variables route

0 commit comments

Comments
 (0)