From 3e5054247b26982fa220ee382747e4a576cf744b Mon Sep 17 00:00:00 2001 From: Adrian Costina Date: Fri, 17 Feb 2017 11:08:50 +0200 Subject: [PATCH] scripts: For altera projects, when it doesn't meet timing rename the generated sof --- projects/scripts/adi_tquest.tcl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/scripts/adi_tquest.tcl b/projects/scripts/adi_tquest.tcl index 59abc8c0a..a8f5d4a7f 100755 --- a/projects/scripts/adi_tquest.tcl +++ b/projects/scripts/adi_tquest.tcl @@ -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!"] }