若要識別目前執行的可執行檔,您可以從 Synopsys Design Constraints (.sdc) 檔案中使用 $::TimeQuestInfo(nameofexecutable)
命令。此方法可用於指定特定可執行檔的不同.sdc分配或檔案,如下列.sdc範例所示:
#Identify which executable is running:
set current_exe $::TimeQuestInfo(nameofexecutable)
if {$current_exe == "quartus_fit" } {
#Apply .sdc assignments for Fitter executable here
} else {
#Apply .sdc assignments for non-Fitter executables here
}
if { ! [string equal "quartus_sta" $::TimeQuestInfo(nameofexecutable)] } {
#Apply .sdc assignments for non-TimeQuest executables here
} else {
#Apply .sdc assignments for TimeQuest executable here
}
不同可執行名稱的範例quartus_map用於分析與合成、適用于 Fitter 的quartus_fit,以及 TimeQuest 計時分析器的quartus_sta。