21.3.98 update_component_version
(Ask a Question)Description
This Tcl command allows to update a component of an instance with another version. Connections of the instance will be kept.
update_component_version -component_name {"comp_name"} -new_version {"version"} [-download_core]
Arguments
Parameter | Type | Description |
---|---|---|
component_name | string | Name of the component for which version needs to be replaced. |
new_version | string |
New version of a component that will be used as a replacement. This argument supports regexp syntax. If the specified version is 2.1.*, latest version that starts with 2.1 will be used as a replacement. |
download_core | flag | This argument specifies whether core can be searched on the
remote repositories or not. This is an optional argument. If it is set and appropriate version of the core is not found in the local vault, it will be searched and downloaded (if any) from the remote repository. |
Error Codes
Error Code | Type | Description |
---|---|---|
None | Error | Update version failed. The specified core version \'%sCore\' v\%sVersion\ is neither available in your vault, nor available remotely for download in any of the repositories. |
None | Error | Component \'%sComponent\' doesn't exist in the project. |
None | Info | Component \'%sComponent\' was successfully updated to \'%sCore\' core version \'%sVersion\'. |
None | Info | Version of the \'%sCore\' core of the \'%sComponent\' component is already \'%sVersion\'. |
None | Info | Component \'%sComponent\' is already using core \'%sCore\' v\%sVersion\, which is the latest accessible version of the core that matches '\%sWildCard\' expression. |
Supported Families
Supported Families |
---|
PolarFire® |
PolarFire SoC |
RTG4™ |
SmartFusion® 2 |
IGLOO® 2 |
Example
update_component_version -component_name {COREJTAGDEBUG_C1} -new_version {3.1.100}
update_component_version -component_name {COREJTAGDEBUG_C0} -new_version {4.*} -download_core