From 7ae2bc628529b3592294bc1bb35bb9d6c527a5e1 Mon Sep 17 00:00:00 2001 From: Sergiu Arpadi Date: Wed, 24 Apr 2019 12:49:26 +0100 Subject: [PATCH] adi_project: used report_timing_summary to evaluate timing --- projects/scripts/adi_project.tcl | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/projects/scripts/adi_project.tcl b/projects/scripts/adi_project.tcl index 69fec983d..979015af7 100644 --- a/projects/scripts/adi_project.tcl +++ b/projects/scripts/adi_project.tcl @@ -212,19 +212,11 @@ proc adi_project_run {project_name} { file mkdir $project_name.sdk - set timing_paths_list [get_property -quiet SLACK [get_timing_paths -quiet]] - if {[llength $timing_paths_list] == 0} { - puts "no timing paths found" - file copy -force $project_name.runs/impl_1/system_top.sysdef $project_name.sdk/system_top.hdf + if [expr [string match *VIOLATED* $[report_timing_summary -return_string]] == 1] { + file copy -force $project_name.runs/impl_1/system_top.sysdef $project_name.sdk/system_top_bad_timing.hdf + return -code error [format "ERROR: Timing Constraints NOT met!"] } else { - if [expr [get_property SLACK [get_timing_paths]] < 0] { - file copy -force $project_name.runs/impl_1/system_top.sysdef $project_name.sdk/system_top_bad_timing.hdf - } else { - file copy -force $project_name.runs/impl_1/system_top.sysdef $project_name.sdk/system_top.hdf - } - if [expr [get_property SLACK [get_timing_paths]] < 0] { - return -code error [format "ERROR: Timing Constraints NOT met!"] - } + file copy -force $project_name.runs/impl_1/system_top.sysdef $project_name.sdk/system_top.hdf } }