21.9.23 smartpower_init_set_primaryinputs_options
(Ask a Question)Description
This Tcl command initializes the frequency and probability of all primary inputs.
smartpower_init_set_primaryinputs_options \
[-freq "decimal value [unit { Hz | KHz | MHz | % }]"] \
[-proba "decimal value"]
Arguments
Parameter | Type | Description |
---|---|---|
freq | string | Specifies the user input frequency (in Hz, KHz or MHz) or the toggle rate in percentage(%). If the unit is not provided and toggle rate is active, the value is handled as a toggle rate, if toggle rate is not active, the value is handled as a frequency. |
proba | decimal | Specifies the user input probability in percentage(%). Must be a positive decimal value and less than or equal to 100.000. |
Return Type | Description |
---|---|
None | None |
Error Codes
Error Code | Description |
---|---|
None | Parameter 'proba' has illegal value. |
None | proba: Invalid argument value: 'value' (expecting decimal value). |
None | Parameter 'proba' must be a positive decimal value. |
None | Parameter 'proba' must be less than or equal to 100.000. |
None | Parameter 'freq' has illegal value. |
None | freq: Parameter format incorrect (expecting a positive decimal value, optionally followed by a unit (possible values are Hz, KHz, MHz or %)). |
None | Parameter 'param_name' is not defined. Valid command formatting is 'smartpower_init_set_primaryinputs_options [-freq "decimal value [unit {Hz | KHz | MHz | %}]"] [-proba "decimal value"]'. |
Supported Families
PolarFire® |
SmartFusion® 2 |
RTG4™ |
IGLOO® 2 |
PolarFire SoC |
Example
The following example initializes all primary inputs after executing smartpower_init_do with -primaryinputs {true}:
smartpower_init_set_primaryinputs_options -freq {10 MHz} -proba {20}