scripts: If an altera project doesn't meet timing, rename the sof

main
Adrian Costina 2017-02-16 19:20:49 +02:00
parent 343d0472d4
commit 8453d758c2
1 changed files with 6 additions and 0 deletions

View File

@ -14,5 +14,11 @@ if {$slack > 0} {
}
if {$slack < 0} {
set sof_files [glob *.sof]
foreach sof_file in sof_files {
set root_sof_file [file rootname $sof_file]
set new_sof_file [append root_sof_file "_timing.sof"]
file rename -force $sof_file $new_sof_file
}
return -code error [format "ERROR: Timing Constraints NOT met!"]
}