21.3.34 export_component_to_tcl

Description

This Tcl command exports the Tcl command for the selected component. The components can be SmartDesign components, configured cores and HDL+ cores.

export_component_to_tcl -component component_name \
                        [-library "library_name" ] \
                        [-package "package_name" ] \
                        [-recursive "TRUE | FALSE"] \
                        [-folder "folder"] \
                        [-file "file_path"]

Arguments

ParameterTypeDescription
componentstringSpecifies the name of the component for which the Tcl command is exported. It is mandatory.
librarystringSpecifies the name of the library the component belongs to. It is optional.
packagestringSpecifies the name of the package the HDL+core belongs to. It is optional.

recursive

boolean

Specifies if a SmartDesign component needs to be exported recursively. It is optional.

filestringSpecifies the path where you wish to export the Tcl file. It is mandatory.

Error Codes

Error CodeDescription
NonePlease specify a file path for the 'file' parameter.
NoneRequired parameter 'component' is missing.

None

Parameter 'param_name' is not defined. Valid command formatting is 'export_component_to_tcl -component "component name" [-library "library name"] [-package "package name"] [-file "file"] [-recursive "TRUE | FALSE"] [-folder "folder"] '.

Supported Families

Supported Families
PolarFire®
RTG4
SmartFusion® 2
IGLOO® 2

Example

The following command exports the Tcl command for "work" library "pattern_gen_checker" component.

export_component_to_tcl -component {pattern_gen_checker} \
                        -library {work} -package {} folder {} \
                        -file {./pattern_gen_checker.tcl}