beautypg.com

Get_port_by_type, Usage, Options – Altera Quartus II Scripting User Manual

Page 190: Description, Example, Get_port_by_type –60

background image

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 ] [-literal_index ]
[-node ] -port_type -type

Options

-as_gen_id: Option to return result as generic ID

-gen_id : Node generic id

-literal_index : Literal index

-node : Node id

-port_type : Port type

-type : 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