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
Parameter | Type | Description |
---|
pin_freq | string | Specifies the value of the frequency in Hz, KHz and MHz, which can be any positive decimal number. |
pin_name | string | Specifies the name of the pin for which the frequency will be set. |
Return Type | Description |
---|
None | None |
Error Codes
Error Code | Description |
---|
None | Required parameter 'pin_name' is missing. |
None | Parameter 'pin_name' is missing or has invalid value. |
None | Required parameter 'pin_freq' is missing. |
None | Failed to set "pin name" pin frequency to 2.60 Hz. |
None | pin_freq: Parameter format incorrect (expecting a positive decimal value, optionally followed by a unit (possible values are Hz, KHz or MHz)). |
None | Parameter '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}