21.9.1 smartpower_add_new_custom_mode

Description

This Tcl command creates a new custom mode.

smartpower_add_new_custom_mode -name {mode name} \
                               -base_mode {base mode} \
                               [-description {mode description}]

Arguments

ParameterTypeDescription
namestringSpecifies the name of the new custom mode. This parameter is mandatory.
base_modestringSpecifies the name of the base mode used to create the new custom mode. It must be one of the following: Active, Standby or Flash*Freeze (RTG4, SmartFusion 2, and IGLOO 2). This parameter is mandatory.
descriptionstringSpecifies the description of the new custom mode. This parameter is optional.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneRequired parameter 'name' is missing.
NoneParameter 'name' has illegal value.
Nonebase_mode: Invalid argument value: 'mode_name' (expecting Active, Static, new_mode_name1, new_mode_name2 or new_mode_name4).
NoneParameter 'base_mode' has illegal value.
NoneRequired parameter 'base_mode' is missing.
NoneParameter 'param_name' is not defined. Valid command formatting is 'smartpower_add_new_custom_mode -name "name" [-description "description"] -base_mode "Active | Static | new_mode_name1 | new_mode_name2 | new_mode_name4"'.

Supported Families

Supported FamiliesSupported Versions
PolarFire®v12.4+
SmartFusion® 2v12.4+
RTG4v12.4+
IGLOO® 2v12.4+
PolarFire SoCv12.6+

Example

This example creates a new custom mode "NewCustomMode" based on the Active mode:

smartpower_add_new_custom_mode -name {NewCustomMode} \
                               -base_mode {Active} \
                               -description {frequency 10 MHz}

See Also