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

Page 427: Description, Example, Get_ports –297

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–297

sdc

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_ports

Usage

get_ports [-nocase] [-nowarn] <filter>

Options

-nocase: Specifies case-insensitive node name matching

-nowarn: Do not issue warnings messages about unmatched patterns

<filter>: Valid destinations (string patterns are matched using Tcl string matching)

Description

Returns a collection of ports (design inputs and outputs) in the design.

The filter for the collection is a Tcl list of wildcards, and must follow standard Tcl or TimeQuest-extension
substitution rules. See help for the use_timequest_style_escaping command for details.

Example

project_open chiptrip
create_timing_netlist

# Get all ports starting with "In".
set ports [get_ports In*]
foreach_in_collection port $ports {
puts [get_port_info -name $port]
}

delete_timing_netlist
project_close

Advertising