Description
This Tcl command changes the user name of a device in the chain. Chain programming mode must be set.
set_device_name -name {name} -new_name {new_name}
Arguments
Parameter | Type | Description |
---|
name | string | Identifies the old device name. This parameter is mandatory. |
new_name | string | Specifies the new device name. This parameter is mandatory. |
Return Type | Description |
---|
None | None |
Error Codes
Error Code | Description |
---|
None | Required parameter 'name' is missing. |
None | Required parameter 'new_name' is missing. |
None | The device with name 'device_name' doesn't exist. |
None | Parameter 'name' has illegal value. |
None | Parameter 'new_name' has illegal value. |
None | Parameter 'param_name' is not defined. Valid command formatting is 'set_device_name -name "name" -new_name "new_name"'. |
Supported Families
Supported Families |
---|
PolarFire® |
PolarFire SoC |
RTG4™ |
SmartFusion® 2 |
IGLOO® 2 |
Example
The following example changes the user name of the device from 'MyDevice1' to 'MyDevice2':
set_device_name -name {MyDevice1} -new_name {MyDevice2}