21.8.12 get_clocks

Description

Returns an object representing the clock(s) that match those specified in the current timing scenario. Wildcards can be used to select multiple clocks at once. If no objects match the criteria, the empty string is returned.

  • If this command is used as a -from argument in either the set maximum (set_max_delay), or set minimum delay (set_min_delay), false path (set_false_path), and multicycle constraints (set_multicycle_path), the clock pins of all the registers related to this clock are used as path start points.
  • If this command is used as a -to argument in either the set maximum (set_max_delay), or set minimum delay (set_min_delay), false path (set_false_path), and multicycle constraints (set_multicycle_path), the synchronous pins of all the registers related to this clock are used as path endpoints.
get_clocks pattern

Arguments

ParameterTypeDescription
patternstringMandatory. Specifies the pattern to match to the SmartTime on which a clock constraint has been set.
Return TypeDescription
objectReturns an object representing the clock(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 sets maximum delay constraining all paths from datal port to ck1 clock with a delay less then 2 ns.

set_max_delay -from [get_ports datal] -to [get_clocks ck1]

Related Examples on GitHub

See Also