Create_p2p_delays, Usage, Options – Altera Quartus II Scripting User Manual
Page 142: Description, Example, Create_p2p_delays –12

3–12
Chapter 3: Tcl Packages & Commands
advanced_timing
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
create_p2p_delays
Usage
create_p2p_delays [-clock_filter
[-min_tco] [-min_tpd] [-tco] [-th] [-to
Options
-clock_filter
-clock_hold: Option to report clock hold paths
-clock_setup: Option to report clock setup paths
-from
-min_tco: Option to report minimum tco paths
-min_tpd: Option to report minimum tpd paths
-tco: Option to report tco paths
-th: Option to report th paths
-to
-tpd: Option to report tpd paths
-tsu: Option to report tsu paths
Description
Creates a data structure with sources, delays, and clock paths for each keeper. This data is required by
other commands such as "get_delay_path" or "get_clock_delay_path".
Use the options to filter specific paths between keepers.
A keeper is a node of the type pin, register, or clock.
Example
# Print the longest paths from source clock
# to destination register pairs
load_package advanced_timing
project_open
create_timing_netlist
create_p2p_delays
foreach_in_collection node [get_timing_nodes -type reg] {
set reg_name [get_timing_node_info -info name $node]
set delays_from_clock [get_delays_from_clocks $node]
puts "register $reg_name has longest paths from clocks:"
foreach delay $delays_from_clock {
set src_node [lindex $delay 0]
puts "-> clock is [get_timing_node_info -info name $src_node]"
set path \
[get_clock_delay_path -type longest -from $src_node -to $node]
foreach el $path {
puts "--> node is [get_timing_node_info -info name \
[lindex $el 0]]"
puts "--> delay is [lindex $el 1]"
}
}
}
project_close