Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#2469 from The-OpenROAD-Projec…
Browse files Browse the repository at this point in the history
…t-staging/tcl-sucks

Fix TCL's failure to do short circuit eval properly
  • Loading branch information
maliberty authored Oct 17, 2024
2 parents 33a09a8 + 7416d2e commit d23f995
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flow/scripts/detail_route.tcl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
utl::set_metrics_stage "detailedroute__{}"
source $::env(SCRIPTS_DIR)/load.tcl
if {[expr [file exists $::global_route_congestion_report] && \
[file size $::global_route_congestion_report] != 0]} {
error "Global routing failed, run `make gui_grt` and load $::global_route_congestion_report \
in DRC viewer to view congestion"
if {[file exists $::global_route_congestion_report]} {
if {[file size $::global_route_congestion_report] != 0]} {
error "Global routing failed, run `make gui_grt` and load $::global_route_congestion_report \
in DRC viewer to view congestion"
}
}
load_design 5_1_grt.odb 4_cts.sdc
erase_non_stage_variables route
Expand Down

0 comments on commit d23f995

Please sign in to comment.