21.4.20 sd_cut_paste

Description

This Tcl cuts and pastes ports and instances from one SmartDesign to another one.

Important: This command is not required to build a SmartDesign component. It maps to an interactive user action in the SmartDesign Canvas and will not be present in the 'Export Component Description(Tcl)' but will present in Libero Project 'Export Script File'. You must specify at least one valid instance or port.
sd_cut_paste -sd_name {SmartDesign component name} \
             -source_sd_name {source SmartDesign name} \
             [-instance_names {instance names}] \
             [-port_names {port names}]

Arguments

ParameterTypeDescription
sd_namestringName of the SmartDesign where the copied data need to be pasted. This parameter is mandatory.
source_sd_namelist of stringsName of the SmartDesign from where object needs to be cut. This parameter is mandatory.
instance_nameslist of stringsNames of the instances from "source_SmartDesign_name" SmartDesign that need to be cut to "SmartDesign_component_name".
port_nameslist of stringsNames of the ports from "source_SmartDesign_name" SmartDesign that need to be cut to "SmartDesign_component_name". This parameter is optional.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneRequired parameter 'sd_name' is missing.
NoneParameter 'sd_name' has illegal value.
NoneRequired parameter 'source_sd_name' is missing.
NoneThe paste command failed for port 'port_name' in SmartDesign 'sd`'. The port could not be found in the source SmartDesign.
NoneParameter 'port_names' has illegal value.
NoneThe paste command failed for instance 'instance_name' in SmartDesign 'sd'. The instance could not be found in the source SmartDesign.
NoneParameter 'instance_names' has illegal value.
NoneThe paste command failed. You must specify at least one valid instance or port.
NoneParameter 'source_sd_name' has illegal value.
NoneParameter 'param_name' is not defined. Valid command formatting is 'sd_cut_paste -sd_name "sd_name" -source_sd_name "source_sd_name" [-instance_names "[instance_names]+"] [-port_names "[port_names]+"]'.

Supported Families

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

Example

The following example cuts "AND2_0" instance, "A", "B", "Y" ports from "sd1" and pastes into "sd2":

sd_cut_paste -sd_name {sd2} -source_sd_name {sd1} -instance_names {"AND2_0"} -port_names {"A" "B" "Y"}

The following example cuts "NAND2_0" instance from "sd1" and pastes in "sd2":

sd_cut_paste -sd_name {sd2} -source_sd_name {sd1} -instance_names {"NAND2_0"}

The following example cuts only "A", "B", "Y" ports from "sd1" and pastes in "sd2":

sd_cut_paste -sd_name {sd2} -source_sd_name {sd1} -port_names {"A" "B" "Y"}

See Also

  • sd_copy_paste