21.9.38 smartpower_report_power_sequencer

Description

This Tcl command creates a scenario power report for a previously defined scenario. It includes information about the global device and SmartPower preferences selection, and the average power consumption and the excepted battery life for this sequence.

Note:
  • Flash*Freeze is available only for certain families and devices(RTG4, SmartFusion 2, and IGLOO 2).
  • Worst and Best are available only for certain families and devices.
smartpower_report_power_sequencer \
                  [-powerunit "W | mW | uW"] \
                  [-frequnit "Hz | KHz | MHz"] \
                  [-opcond "Best | Typical | Worst"] \
                  [-toggle "TRUE | FALSE"] \
                  [-scenario ""] \
                  [-style "Text | CSV | XML"] \
                  [-battery_life "TRUE | FALSE"] \
                  [-battery_capacity "decimal value"] \
                  [-rail_breakdown "TRUE | FALSE"] \
                  [-type_breakdown "TRUE | FALSE"] \
                  [-mode_breakdown "TRUE | FALSE"] \
                  [-opcond_summary "TRUE | FALSE"] \
                  {filename}

Arguments

ParameterTypeDescription
powerunitstringSpecifies the unit in which power is set. The acceptable values for this argument are the following:
  • W - The power unit is set to watts.
  • mW - The power unit is set to milliwatts.
  • uW - The power unit is set to microwatts.
frequnitstringSpecifies the unit in which frequency is set. The acceptable values for this argument are the following:
  • Hz - The frequency unit is set to hertz.
  • kHz - The frequency unit is set to kilohertz.
  • MHz - The frequency unit is set to megahertz.
opcondstringSpecifies the operating condition. The following acceptable values for this argument are the following:
  • worst - The operating condition is set to worst case.
  • typical - The operating condition is set to typical case.
  • best - The operating condition is set to best case.
togglebooleanSpecifies the toggle. The acceptable values for this argument are thr following:
  • TRUE, true or 1 - The toggle is set to true.
  • FALSE, false or 1 - The toggle is set to false.
scenariostringSpecifies a scenario that the report is generated from.
stylestringSpecifies the format in which the report will be exported. The acceptable values for this argument are the following:
  • Text - The report will be exported as Text file.
  • CSV(by default) - The report will be exported as CSV file.
  • XML - The report will be exported as XML file.
battery_lifebooleanSpecifies whether to include the battery life summary in the report. The acceptable values for this argument are the following:
  • TRUE, true or 1 - Includes the battery life summary in the report.
  • FALSE, false or 0 - Does not include the battery life summary in the report.
battery_capacitydecimal valueSpecifies the battery capacity(decimal positive value) in A*H.
rail_breakdownbooleanSpecifies whether to include the breakdown by rail summary in the report. The acceptable values for this argument are the following:
  • TRUE, true or 1 - Includes the breakdown by rail summary in the report.
  • FALSE, false or 0 - Does not include the breakdown by rail summary in the report. This is default value.
type_breakdownbooleanSpecifies whether to include the breakdown by type summary in the report. The acceptable values for this argument are thr following:
  • TRUE, true or 1- Includes the breakdown by type summary in the report.
  • FALSE, false or 0 - Does not include the breakdown by type summary in the report. This is the default value.
mode_breakdownbooleanSpecifies whether to include the breakdown by mode in the report. The acceptable values for this argument are thr following:
  • TRUE, true or 1 - Includes the breakdown by mode in the report.
  • FALSE, false or 0 - Does not include the breakdown by mode in the report. This is the default value.
opcond_summarybooleanSpecifies whether to include the operating conditions summary in the report. The acceptable values for this argument are the following:
  • TRUE, true or 1 - Includes the operating conditions summary in the report.
  • FALSE, false or 0 - Does not include the operating conditions summary in the report.
filenamestringSpecifies the name or path of the file to be exported. This argument is mandatory. Default created under designer/<root_name> dircetory.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneThere are no scenarios in this design, create a scenario in SmartPower, and then generate the scenario report.
Nonepowerunit: Invalid argument value: 'value' (expecting W, mW or uW).
Nonefrequnit: Invalid argument value: 'value' (expecting Hz, KHz or MHz).
Noneopcond: Invalid argument value: 'value' (expecting Best, Typical or Worst).
Nonetoggle: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).
Nonestyle: Invalid argument value: 'value' (expecting Text, CSV or XML).
Nonebattery_life: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).
Nonebattery_capacity: Invalid argument value: 'value' (expecting decimal value).
NoneParameter 'battery_capacity' must be a positive decimal value.
Nonerail_breakdown: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).
Nonetype_breakdown: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).
Nonemode_breakdown: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).
Noneopcond_summary: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).
None

None

Supported Families

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

Example

The following example generates a scenario power report named report.txt for "my_scenario":

smartpower_report_power_sequencer -scenario my_scenario \
                                  -rail_breakdown true \
                                  -type_breakdown true \
                                  -mode_breakdown true \
                                  -style text \
                                  -battery_capacity 10 \
                                  report.txt

See Also