要确定当前正在运行哪个可执行文件,可以 $::TimeQuestInfo(nameofexecutable)
从 Synopsys 设计限制(.sdc)文件中使用该命令。此方法可用于指定针对特定可执行文件的不同 .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适用于分析和合成、quartus_fit for Fitter ,以及 TimeQuest 时序分析器的quartus_sta。