Get_port_by_type, Usage, Options – Altera Quartus II Scripting User Manual
Page 190: Description, Example, Get_port_by_type –60
3–60
Chapter 3: Tcl Packages & Commands
chip_planner
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
get_port_by_type
Usage
get_port_by_type [-as_gen_id] [-gen_id <gen id>] [-literal_index <literal index>]
[-node <node id>] -port_type <port type> -type <iport|oport>
Options
-as_gen_id: Option to return result as generic ID
-gen_id <gen id>: Node generic id
-literal_index <literal index>: Literal index
-node <node id>: Node id
-port_type <port type>: Port type
-type <iport|oport>: Option to specify the port as an input or output port
Description
Returns the port index for the specified port type on the specified node.
Returns -1 if the port is not in use or is invalid for the specified node.
Example
get_port_by_type -node 0 -port_type SLOAD -type iport
get_port_by_type -node 0 -port_type EXTCLK -literal_index 2 -type oport