21.9.46 smartpower_set_pin_frequency

Description

This Tcl command sets the frequency of a pin in megahertz (MHz). If you do not use this command, each pin will have default frequency based on its domain.

Note: The pin_name must be the name of a pin that already exists in the design and already belongs to a domain. When specifying the unit, a space must be between the frequency value and the unit. Execute the "smartpower_commit" Tcl command for preserving any changes in SmartPower.
smartpower_set_pin_frequency -pin_name {pin_name} -pin_freq {value}

Arguments

ParameterTypeDescription
pin_freqstringSpecifies the value of the frequency in Hz, KHz and MHz, which can be any positive decimal number.
pin_namestringSpecifies the name of the pin for which the frequency will be set.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
NoneRequired parameter 'pin_name' is missing.
NoneParameter 'pin_name' is missing or has invalid value.
NoneRequired parameter 'pin_freq' is missing.
NoneFailed to set "pin name" pin frequency to 2.60 Hz.
Nonepin_freq: Parameter format incorrect (expecting a positive decimal value, optionally followed by a unit (possible values are Hz, KHz or MHz)).
NoneParameter 'param_name' is not defined. Valid command formatting is 'smartpower_set_pin_frequency [-pin_name "name of pin"]+ -pin_freq "decimal value [ unit { Hz | KHz | MHz } ]"'.

Supported Families

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

Example

This example sets the frequency of the pin named "d_in" to 100 MHz:

smartpower_set_pin_frequency -pin_name {d_in} -pin_freq {100}

See Also