Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 6/20/2022
Public

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

Document Table of Contents

3.1.35.32. get_port_info (::quartus::sta)

The following table displays information for the get_port_info Tcl command:

Tcl Package and Version

Belongs to ::quartus::sta

Syntax get_port_info [-h | -help] [-long_help] [-edge_rate] [-is_inout_port] [-is_input_port] [-is_output_port] [-name] [-type] <port_object>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-edge_rate Return the edge_rate value
-is_inout_port Return true if it is an inout port, or false otherwise
-is_input_port Return true if it is an input port, or false otherwise
-is_output_port Return true if it is an output port, or false otherwise
-name Return the port name
-type Return the port type
<port_object> Port object
Description
Returns information about the specified port (referenced by port ID).
Port ID's can be obtained by Tcl commands such as get_ports. The -type
option returns "port". The -name, -type, -edge_rate, -is_input_port,
-is_output_port and is_inout_port options are mutually exclusive.
Example Usage
project_open chiptrip
create_timing_netlist
set ports [get_ports]
foreach_in_collection port $ports {
    set port_type ""
    if [get_port_info $port -is_inout_port] {
        set port_type "bidir"
    } elseif [get_port_info $port -is_input_port {
        set port_type "in"
    } else {
        set port_type "out"
    }
    puts "[get_port_info $port -name]: $port_type"
}
delete_timing_netlist
project_close
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
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: Unsupported object type: <string>. Specify a supported object type.