adi_project: used report_timing_summary to evaluate timing
parent
17c20eeb7a
commit
7ae2bc6285
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue