Set units for checking
Syntax
set_units [‑capacitance <arg>] [‑current <arg>] [‑voltage <arg>]
[‑power <arg>] [‑resistance <arg>] [‑altitude <arg>] [‑quiet]
[‑verbose]
Usage
Name | Description |
---|---|
[-capacitance]
|
Capacitance unit in farad. Valid values are from kF-fF. Default: pF |
[-current]
|
Current unit in ampere. Valid values are from kA-fA. Default: mA |
[-voltage]
|
Voltage unit in volt. Valid values are from kV-fV. Default: V |
[-power]
|
Wattage unit in watts. Valid values are from kW-fW. Default: mW |
[-resistance]
|
Resistance unit in ohm. Valid values are from kOhm-fOhm. Default: ohm |
[-altitude]
|
Altitude in metric or standard units. Valid values are meters and feet. Default: meters |
[-quiet]
|
Ignore command errors |
[-verbose]
|
Suspend message limits during command execution |
Description
This command specifies the default units to be assumed when the design is analyzed. Specifically, the -current
, -voltage
, -power
, and -resistance
options impact the values returned by the report_power
command.
The set_units
command can be used multiple times to define and redefine units. If set_units
includes a previously set unit value, the unit is redefined.
Arguments
-capacitance <arg>
- (Optional) Specify the unit of capacitance in Farads. Valid values range from kilofarads (kF) to femtofarads (fF). The default unit of capacitance is picofarads (pF).
-current <arg>
- (Optional) Specify the unit of current in amperes. Valid values range from kiloAmps (kA) to femtoAmps (fA). The default unit of amperes is milliAmps (mA).
-voltage <arg>
- (Optional) Specify the unit of voltage in Volts. Valid values range from kilovolts (kV) to femotovolts (fV). The default unit of voltage is Volts (V).
-power <arg>
- (Optional) Specify the unit of power in watts. Valid values range from kilowatts (kW) to femtowatts (fW). The default unit of power is milliwatts (mW).
-resistance <arg>
- (Optional) Specify the unit of resistance in ohms. Valid values range from kilo-ohm (kOhm) to femto-ohm (fOhm). The default unit of resistance is ohms (Ohm).
-altitude [ meters | feet ]
- (Optional) Specify the unit of altitude as meters
or feet
. The default unit is meters
.
-quiet
- (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
-verbose
- (Optional) Temporarily override any message limits and return all messages from this command.
set_msg_config
command.Examples
Specify that voltage should be in millivolts and all values should use three digits
set_units -voltage mV
The following example changes the default unit for current to Amperes:
set_units -voltage kV -current A
set_units
redefines the Voltage units defined in the first example, as well as defining the units for current.