21.8.16 get_ports

Description

Returns an object representing the port(s) that match those specified in the pattern argument. Wildcards can be used to select multiple ports at once. If no objects match the criteria, the empty string is returned.

get_ports pattern

Arguments

ParameterTypeDescription
patternstringSpecifies the pattern to match the ports.
Return TypeDescription
objectReturns an object representing the port(s) that match those specified in the pattern argument.

Error Codes

Error CodeDescription
NoneRequired parameter _AtclParam0_ is missing.

Supported Families

PolarFire®
PolarFire SoC
SmartFusion® 2
IGLOO® 2
RTG4

Example

The following example creates a clock on port CK1 with a period of 10 ns.

create_clock -period 10 [get_ports CK1]

Related Examples on GitHub

See Also