common scripts: Change the name of the generated HDF if the design doesn't meet timing

main
Adrian Costina 2015-11-05 18:41:51 +02:00
parent 11718291cf
commit 0c7c0f2cd8
1 changed files with 6 additions and 1 deletions

View File

@ -161,7 +161,12 @@ proc adi_project_run {project_name} {
report_timing_summary -file timing_impl.log
file mkdir $project_name.sdk
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] {
file copy -force $project_name.runs/impl_1/system_top.sysdef $project_name.sdk/system_top_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!"]