21.9.19 smartpower_init_set_clocks_options

Description

This Tcl command initializes the clock frequency options of all clock domains.

Note: This command is associated with the functionality of Initialize frequencies and probabilities dialog box.
smartpower_init_set_clocks_options [-with_clock_constraints {value}] \
                                   [-with_default_values {value}] \
                                   [-freq {value}] \
                                   [-duty_cycle {value}]

Arguments

ParameterTypeDescription
with_clock_constraintsbooleanThis sets the option of initializing the clock frequencies with frequency constraints from SmartTime. The acceptable values for this argument are the following:
  • true - Sets initialize clock frequencies with clock constraints ON.
  • false - Sets initialize clock frequencies with clock constraints OFF.
with_default_valuesbooleanThis sets the option of initializing the clock frequencies with a user input default value. The acceptable values for this argument are the following:
  • true - Sets initialize clock frequencies with default values ON.
  • false - Sets initialize clock frequencies with default values OFF.
freqstringSpecifies the user input frequency in Hz, KHz or MHz.
duty_cycledecimalSpecifies the user input duty cycles in percentage(%).
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneParameter 'duty_cycle' has illegal value.
NoneParameter 'duty_cycle' must be less than or equal to 100.000.
NoneParameter 'duty_cycle' must be a positive decimal value.
Noneduty_cycle: Invalid argument value: 'value' (expecting decimal value).
NoneParameter 'freq' has illegal value.
Nonefreq: Parameter format incorrect (expecting a positive decimal value, optionally followed by a unit (possible values are Hz, KHz or MHz)).
NoneParameter 'with_default_values' has illegal value.
Nonewith_default_values: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).
NoneParameter 'with_clock_constraints' has illegal value.
Nonewith_clock_constraints: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).
NoneParameter 'param_name' is not defined. Valid command formatting is 'smartpower_init_set_clocks_options [-with_clock_constraints "TRUE | FALSE"] [-with_default_values "TRUE | FALSE"] [-freq "decimal value [ unit { Hz | KHz | MHz } ]"] [-duty_cycle "decimal value"]'.

Supported Families

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

Example

The following example initializes all clocks after executing "smartpower_init_do":

smartpower_init_do with -clocks {true}
smartpower_init_set_clocks_options -with_clock_constraints {true} \ 
                                   -with_default_values {true} \
                                   -freq {10 MHz} \
                                   -duty_cycle {20}