Skip to content

Commit 6519ba0

Browse files
committed
cts: check if the chip exists before reporting cts configuration
Signed-off-by: luis201420 <[email protected]>
1 parent e34eaeb commit 6519ba0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cts/src/TritonCTS.tcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ sta::define_cmd_args "report_cts_config" {}
151151
proc report_cts_config { args } {
152152
sta::parse_key_args "report_cts_config" args keys {} flags {}
153153

154+
# Check if a design exists
155+
set db [ord::get_db]
156+
set chip [$db getChip]
157+
158+
if { "$chip" eq "NULL" } {
159+
utl::error CTS 131 "No Chip exists"
160+
}
161+
154162
# set the db unit
155163
cts::set_db_unit 0
156164
set ndr_strategy [cts::get_ndr_strategy]

0 commit comments

Comments
 (0)