scripts:adi_project.tcl: add check for missing clock definitions

Look for undefined clocks which do not show up in the timing summary
therefore can lead to silent failures.
If clocks are not defined they are not analyzed during the timing
checks.
main
Laszlo Nagy 2019-05-06 16:07:27 +01:00 committed by Laszlo Nagy
parent 607f2bd8de
commit ec636b785a
1 changed files with 8 additions and 0 deletions

View File

@ -210,6 +210,14 @@ proc adi_project_run {project_name} {
open_run impl_1
report_timing_summary -file timing_impl.log
# Look for undefined clocks which do not show up in the timing summary
set timing_check [check_timing -override_defaults no_clock -no_header -return_string]
regexp {are (\d+) register} $timing_check -> num_regs
if {$num_regs > 0} {
puts "CRITICAL WARNING: There are $num_regs registers with no clocks !!! See no_clock.log for details."
check_timing -override_defaults no_clock -verbose -file no_clock.log
}
file mkdir $project_name.sdk
if [expr [string match *VIOLATED* $[report_timing_summary -return_string]] == 1] {