Product Documentation
Spectre AMS Designer and Xcelium Simulator Mixed-Signal User Guide
Product Version 22.09, September 2022

set_analog_param

Specifies the value for the given analog analysis control parameters for the subsequent analog time step. If the specified parameter has an active parameter sweep, the set_analog_param command is ignored.

If the command is set multiple times for the same parameter, the latest command takes effect. However, if a new value is specified for the same parameter in the middle of command execution, the parameter value is evaluated according to the newly specified value from the exact conditions it was interrupted at.

Example:

If the target value set for a parameter temp is 100° C over 50ns and the command execution is interrupted at t=30ns, the slope and ramp time will be calculated from t=30ns with the value of temp at 30ns.

This command is available only when the analog engine is enabled and does not have an active setup.

Interaction with $cds_set_temperature

if $cds_set_temperature is set when the set_analog_param command is specified for the parameter temp, the value of $cds_set_temperature overrrides the value set through the set_analog_param command.

Example:

set_analog_param -name temp -value 100 -delay 100ns -nstep 2

If the above command is set for 0° C temperature at t=0ns, without specifying the value for $cds_set_temperature, the following results are displayed.

(0ns: 0 Celsius, 50ns: 50 Celsius, 100ns: 100 Celsius) 

On setting $cds_set_temperature to 80 at t=40ns, along with this command, the results get updated as follows.

(0ns: 0 Celsius, 40ns: 80 Celsius, 50ns: 50 Celsius, 100ns: 100 Celsius)

set_analog_param Command Syntax

set_analog_param
    -name paramName
    -show
    -value paramValue
    -delay time 

    -nstep steps

set_analog_param Command Options

This section describes the options that you can use with the Tcl set_analog_param command.

-name paramName


Specifies the name of the parameter you want to set the value for. 

Valid values are steppreset, vabstol, iabstol, reltol, and temp.

Example:

set_analog_param -name iabstol

-show

(optional)

Displays the list of available parameters that can be modified along with their current values. 

Example:

set_analog_param -show
steppreset = cx
vabstol = 1.000000e-06
iabstol = 1.000000e-12
reltol = 1.000000e-03
temp = 27.0000001

-value paramValue

Specifies the value for the given parameter and indicates its target value.

For real values, either use the scientific format or double format. 

Example:

Sets the value for the parameter temp to 30.

set_analog_param -name temp -value 30

-delay time

(optional)

Specifies the time in which the given parameter must reach its target value.

If not specified, the parameter reaches its target value at the next analog time point.

Example:

If specified at t=30ns, the value for the parameter temp will be updated at t=40ns.

set_analog_param -name temp -value 30 -delay 10ns

-nstep steps

(optional)

Specifies the number of steps required to reach the target value for a parameter.

If not specified, the default number of steps is one.

If the -delay option is not specified, the -nstep option is ignored.

Example:

If specified at t=30ns, the target value (57 Celsius) of the parameter temp is reached over ten steps within 10ns, until 40ns is reached. 

set_analog_param -name temp -value 57 -delay 10ns -nstep 10



Related Topic




 ⠀
X