adi_project:adi_project_run: Check if $num_reg exist

main
Istvan Csomortani 2019-05-30 07:46:14 +01:00 committed by István Csomortáni
parent 896ea4925d
commit 993497438b
1 changed files with 7 additions and 3 deletions

View File

@ -249,10 +249,14 @@ proc adi_project_run {project_name} {
# Look for undefined clocks which do not show up in the timing summary # 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] set timing_check [check_timing -override_defaults no_clock -no_header -return_string]
if {[regexp { (\d+) register} $timing_check -> num_regs]} { if {[regexp { (\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." if {[info exist num_regs]} {
check_timing -override_defaults no_clock -verbose -file no_clock.log 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
}
} }
} else { } else {
puts "CRITICAL WARNING: The search for undefined clocks failed !!!" puts "CRITICAL WARNING: The search for undefined clocks failed !!!"
} }