scripts: For altera projects, when it doesn't meet timing rename the generated sof

main
Adrian Costina 2017-02-17 11:08:50 +02:00
parent 343d0472d4
commit 3e5054247b
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 $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!"]
}