21.4.39 sd_rename_instance

Description

This Tcl command renames an instance name in a SmartDesign component. This command can be used to rename any type of instances (instances of other SmartDesigns components, core components, HDL modules, HDL+ cores and Microchip macros) in a SmartDesign.

Note: This command is not required to build a SmartDesign component. It command maps to an interactive user action in the SmartDesign Canvas and will not be present in the exported SmartDesign component Tcl description.
sd_rename_instance -sd_name {smartdesign component name} \
                   -current_instance_name {instance name} \
                   -new_instance_name {new instance name}

Arguments

ParameterTypeDescription
sd_namestringSpecifies the name of the SmartDesign component in which the instance name has to be renamed. It is mandatory.
current_instance_namestringSpecifies the name of the instance to be renamed. It is mandatory.
new_instance_namestringSpecifies the new instance name. It is mandatory.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneParameter 'new_instance_name' has illegal value.
NoneParameter 'current_instance_name' has illegal value.
NoneRequired parameter 'sd_name' is missing.
None'Instance name' has been duplicated, please specify a different name.
NoneInstance 'instance_name' does not exist.
NoneThe first character of '*' must be a letter.
NoneParameter 'param_name' is not defined. Valid command formatting is 'sd_rename_instance -sd_name "sd_name" -current_instance_name "current_instance_name" -new_instance_name "new_instance_name"'.

Supported Families

Supported Families
PolarFire®
PolarFire SoC
RTG4
SmartFusion® 2
IGLOO® 2

Example

The following command renames "DFF_0" instance name with a new "DFF_1" name in the 'top' SmartDesign

sd_rename_instance -sd_name {top} \
                   -current_instance_name {DFF_0} \
                   -new_instance_name {DFF_1}

See Also

  • sd_instantiate_macro