這個範例顯示一個簡單的 Tcl 腳本,您可以在計時分析器使用者介面中產生多重控制器分析。多重設備分析可驗證設計指定的時間限制符合裝置的所有操作條件。在計時分析器主控台窗格中輸入下列內容,下載或複製 Tcl 腳本並執行:
tcl> 原始碼 multi 對等素.tcl
proc analyze { id } {
# Insert timing reports here
create_timing_summary -setup -panel_name "$id: Summary (Setup)"
create_timing_summary -hold -panel_name "$id: Summary (Hold)"
create_timing_summary -recovery -panel_name "$id: Summary (Recovery)"
create_timing_summary -removal -panel_name "$id: Summary (Removal)"
report_min_pulse_width -nworst 100 -panel_name "$id: Minimum Pulse Width"
}
# Create a timing netlist for analysis
create_timing_netlist
# Read in SDC file
read_sdc
# Determine the current & default operating conditions. The default is used
# to prevent re-analyzing the default condition while looping through the
# available operating conditions.
set default_operating_conditions [get_operating_conditions]
set current_operating_conditions $default_operating_conditions
# Generate the corner-specific analyses for the default operating
# conditions.
analyze $current_operating_conditions
# Now loop over the remaining operating conditions
foreach_in_collection current_operating_conditions \ [get_available_operating_conditions] {
# Make sure we don't re-analyze the default conditions.
if {$current_operating_conditions != $default_operating_conditions} {
# Generate the corner-specific analyses for the
# next operating conditions.
set_operating_conditions $current_operating_conditions
update_timing_netlist
analyze $current_operating_conditions
}
}
Tcl 腳本會產生程式專家分析中針對裝置所有可用操作條件定義的時間報告。產生的所有報告在計時分析器檢視窗格中標示為過時,除非為最後一個操作狀態產生最終報告。