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
parent
607f2bd8de
commit
ec636b785a
|
@ -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] {
|
||||
|
|
Loading…
Reference in New Issue