21.8.34 remove_clock

Description

Removes the specified clock constraint from the current timing scenario. If the specified name does not match a clock constraint in the current scenario, or if the specified ID does not refer to a clock constraint, this command fails.

Do not specify both the clock and port names and the constraint ID.

remove_clock -name clock_name | -id constraint_ID

Arguments

ParameterTypeDescription
namestringSpecifies the name of the clock constraint to remove from the current scenario. Specify either a clock name or an ID.
Note: Specify clock name as {CLK}, not [get_clocks {CLK}].
idintegerSpecifies the ID of the clock constraint to remove from the current scenario. Specify either an ID or a clock name that exists in the current scenario.

Error Codes

Error CodeDescription
NoneInvalid clock name argument.
NoneOnly one argument is needed.

Supported Families

PolarFire®
PolarFire SoC
SmartFusion® 2
IGLOO® 2
RTG4

Exceptions

You cannot use wildcards when specifying a clock names.

Example

The following example removes the clock constraint named my_user_clock.

remove_clock -name my_user_clock

The following example removes the clock constraint using its ID.

set clockId [create_clock –name my_user_clock –period 2]
remove_clock –id $clockId

Related Examples on GitHub

See Also