Get_timing_nodes, Usage, Options – Altera Quartus II Scripting User Manual
Page 156: Description, Example, Get_timing_nodes –26

3–26
Chapter 3: Tcl Packages & Commands
advanced_timing
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
get_timing_nodes
Usage
get_timing_nodes -type
Options
-type
Description
Returns a collection of node ids from the timing netlist. The collection can be filtered by node type using
the "-type" option. Note that the node types in the timing netlist may not correspond to the node types in
the Node Finder (or the "get_names" command in ::quartus::project). For example, nodes marked as
memory in the Node Finder may be represented as registers or combinational nodes in the timing netlist.
The Timing Analyzer represents all designs using a graph of nodes and edges (the netlist). Nodes can be of
type "reg" (for registers and latches), "pin" (for top-level pins), "clk" (for nodes reported as clocks), "comb"
(for all other combinational nodes), and "keeper" (for registers, latches, top-level pins, and clocks). Edges
represent delays between nodes.
Use the "get_timing_node_info" command to get specific information about every node,for example, node
name, type, or location.
Example
# Print names of the register and pin nodes
load_package advanced_timing
project_open
create_timing_netlist
set count 1
puts "Nodes:"
foreach_in_collection node [get_timing_nodes -type keeper] {
set node_type [get_timing_node_info -info type $node]
if {![string equal $node_type clk] } {
set node_name [get_timing_node_info -info name $node]
puts " $count : $node_type : $node_name"
incr count
}
}
project_close
# For every timing node, print its type
load_package advanced_timing
project_open
create_timing_netlist
foreach_in_collection node [get_timing_nodes -type all] {
puts "node name is [get_timing_node_info -info name $node]"
}
project_close