21.8.3 all_registers

Description

Returns an object representing register pins or register cells (default) in the current scenario based on the given parameters. If you do not specify an option, this command returns an object representing registers cells.

all_registers [-clock clock_name ] [-async_pins] \ 
[-output_pins] [-data_pins] [-clock_pins]

Arguments

ParameterTypeDescription
clockstringSpecifies the name of the clock domain to which the registers belong. If no clock is specified, all registers in the design will be targeted.
async_pinsNoneLists all register pins that are async pins for the specified clock (or all registers asynchronous pins in the design).
output_pinsNoneLists all register pins that are output pins for the specified clock (or all registers output pins in the design).
data_pinsNoneLists all register pins that are data pins for the specified clock (or all registers data pins in the design).
clock_pinsNoneLists all register pins that are clock pins for the specified clock (or all registers clock pins in the design).
Return TypeDescription
objectReturns an object representing register pins or cells in the current scenario based on the given parameters.

Error Codes

Error CodeDescription
Error: SDC0021Invalid max delay constraint: the -from value is incorrect.
Error: SDC0023Invalid max delay constraint: the -to value is incorrect.

Supported Families

PolarFire®
PolarFire SoC
SmartFusion® 2
IGLOO® 2
RTG4

Exceptions

You can only use this command as part of a –from, -to argument in the following Tcl commands: set_min_delay, set_max_delay, set_multicycle_path, and set_false_path.

Example

The following example sets a maximum delay by constraining all paths from ff_m:CLK or ff_s2:CLK to ff_m:Q pin with a delay less than 2.000 ns.

set_max_delay 2.000 -from { ff_m:CLK ff_s2:CLK } \
-to [all_registers -clock_pins -clock {ff_m:Q}]

Related Examples on GitHub