21.12.3 copy_device

Description

This Tcl command copies a device in the chain to the clipboard. Chain programming mode must be set. See the paste_device command for more information.

copy_device -name {name}

Arguments

ParameterTypeDescription
namestringSpecifies the device name. You can repeat this argument to copy multiple devices. This paramater is mandatory.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneRequired parameter 'name' is missing.
NoneThe device with name 'test_name' doesn't exist.
NoneParameter 'param_name' is not defined. Valid command formatting is 'copy_device [-name "name"]+'.

Supported Families

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

Example

The example copies the device 'MyDevice1' to the same location with a new name 'MyDevice2'.

copy_device -name {MyDevice1} -name {MyDevice2}

See Also

  • paste_device