Skip to content

Commit 16e8a64

Browse files
authored
Merge pull request #3697 from The-OpenROAD-Project-staging/catch-cts-dpl-failure
Added catch around first detailed_placement call so that 4_1_error.od…
2 parents 1be034e + 327e4f2 commit 16e8a64

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

flow/scripts/cts.tcl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ utl::pop_metrics_stage
4343
set_placement_padding -global \
4444
-left $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) \
4545
-right $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT)
46-
detailed_placement
46+
47+
set result [catch { detailed_placement } msg]
48+
if { $result != 0 } {
49+
save_progress 4_1_error
50+
error "Detailed placement failed in CTS: $msg"
51+
}
4752

4853
estimate_parasitics -placement
4954

@@ -65,8 +70,7 @@ if { !$::env(SKIP_CTS_REPAIR_TIMING) } {
6570
set result [catch { detailed_placement } msg]
6671
if { $result != 0 } {
6772
save_progress 4_1_error
68-
puts "Detailed placement failed in CTS: $msg"
69-
exit $result
73+
error "Detailed placement failed in CTS: $msg"
7074
}
7175

7276
check_placement -verbose

0 commit comments

Comments
 (0)