21.9.4 smartpower_battery_settings

Description

This SmartPower Tcl command sets the battery capacity in SmartPower. The battery capacity is used to compute the battery life of your design.

smartpower_battery_settings [-capacity {decimal value}]

Arguments

ParameterTypeDescription
capacitydecimalSpecify the battery capacity in mA*Hours. Value must be a positive decimal. This parameter is mandatory.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
Nonecapacity: Invalid argument value: 'value' (expecting decimal value).
NoneParameter 'capacity' has illegal value.
NoneParameter 'param_name' is not defined. Valid command formatting is 'smartpower_battery_settings [-capacity "decimal value"]'.

Supported Families

PolarFire®
SmartFusion® 2
RTG4™
IGLOO® 2
PolarFire SoC

Example

This example sets the battery capacity to 1800 mA * Hours.

smartpower_battery_settings -capacity {1800}