21.3.34 export_component_to_tcl
(Ask a Question)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
| Parameter | Type | Description | 
|---|---|---|
| component | string | Specifies the name of the component for which the Tcl command is exported. It is mandatory. | 
| library | string | Specifies the name of the library the component belongs to. It is optional. | 
| package | string | Specifies 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.  | 
| file | string | Specifies the path where you wish to export the Tcl file. It is mandatory. | 
Error Codes
| Error Code | Description | 
|---|---|
| None | Please specify a file path for the 'file' parameter. | 
| None | Required 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}