Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 9/26/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.1.35.19. get_edge_info (::quartus::sta)

The following table displays information for the get_edge_info Tcl command:

Tcl Package and Version

Belongs to ::quartus::sta

Syntax get_edge_info [-h | -help] [-long_help] [-delay] [-delay_type] [-dst] [-ff] [-fr] [-hslp] [-is_disabled] [-max] [-min] [-name] [-rf] [-rr] [-src] [-type] [-unateness] <edge_object>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-delay Return the delay.
-delay_type Return the type of the delay (ic/cell).
-dst Return the destination node ID.
-ff Return the fall-to-fall delay
-fr Return the fall-to-rise delay
-hslp Return the HS/LP setting
-is_disabled Return whether the edge has been disabled, so should not be traversed through
-max Max delay
-min Min delay
-name Return the edge name
-rf Return the rise-to-fall delay
-rr Return the rise-to-rise delay
-src Return the source node ID
-type Return the edge type.
-unateness Return the unateness.
<edge_object> Edge object
Description
Returns information about the specified edge (referenced by edge ID).
Edge IDs can be obtained by Tcl commands such as get_node_info <node_id>
-synch_edges.

The "-type" and "-name" options exist only to keep the interface compliant
with the get_object_info command. The "-type" option returns specific edge 
type as "synchronous", "asynchronous", "clock", or "combinational",
while the "-name" option always returns an empty string.

The "-delay" option returns the delay associated to the edge. Use
-max, -min and -rr, -rf, -fr, -ff options to specify the type of returned
delay. One of the -max, -min options must be specified. One of the
-rr, -rf, -fr, -ff options must be specified.

The -hslp option returns the HS/LP setting associated to the edge.

The -unateness option returns the unateness associated to the edge.

The -is_disabled option returns 1 if the edge should not be traversed
through, and 0 if the edge can be traversed through. Disabled edges include 
edges in SCC loops and edges that the user has manually cut with the 
set_disable_timing command.
Example Usage
project_open chiptrip
create_timing_netlist
set nodes [get_pins] 
foreach_in_collection node $nodes {
	set node_name [get_node_info -name $node]
	set edges [get_node_info $node -fanout_edges]
	foreach edge $edges {
		# Traverse to the fanout node
		set dst_node [get_edge_info -dst $edge]
		set dst_name [get_node_info -name $dst_node]
		set delay_type [get_edge_info -delay_type $edge]

		set rr_delay [get_edge_info $edge -max -delay -rr]
		set rf_delay [get_edge_info $edge -max -delay -rf]
		set fr_delay [get_edge_info $edge -max -delay -fr]
		set ff_delay [get_edge_info $edge -max -delay -ff]
		puts "Max $delay_type delay of edge $edge, from $node_name to $dst_name: (RR:$rr_delay RF:$rf_delay FR:$fr_delay FF:$ff_delay)"
	}
}
delete_timing_netlist
project_close
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: Option <string> is not allowed to be specified with option -<string>. Remove the disallowed option.
TCL_ERROR 1 ERROR: Options <string> are exclusively allowed to be specified with option -<string>. Specify one of the allowed options.
TCL_ERROR 1 ERROR: Options are mutually exclusive: <string>. Specify only one of the these options.
TCL_ERROR 1 ERROR: Object with ID <string> is not an object of type <string>. Specify the ID of an object with the correct type.
TCL_ERROR 1 ERROR: Cannot find object of ID <string>. Specify an existing object ID.
TCL_ERROR 1 ERROR: Option <string> is required to be specified with option -<string>. Specify a required option.
TCL_ERROR 1 ERROR: Unsupported object type: <string>. Specify a supported object type.