Download user manual

Transcript
118
Chapter 4. Reference
Shoot shooting autonomous=1 fund=1k restart=no end
A sweep named <Sweep> acts on the parameter <r> of the instance <r1>. Parameter value
is linearly swept in the [0,1] interval by steps of value 0.1. At each point of the sweep the
<Tran> transient analysis is executed till the <stop=1m> time stop. After the <Tran> analysis the
<Shoot> shooting analysis is executed starting from the results computed by the previous <Tran>
analysis. In the example above the sweep acts on an instance parameter. Consider the example
parameters p1=0 p2=0 Sweep sweep start=0 stop=1 step=0.1 param="p1" + start=0 stop=1
step=0.1 param="p2" begin Tran tran tstop=1m Shoot shooting autonomous=1 fund=1k restart=no
end
the "p1" and "p2" parameters (defined through the ’parameters’ keyword) are varied and the
same analyses described above are executed for each value assumed by each parameter. Note
that this sweep is ’two-dimensional’, i.e. the sweep generates a square grid of samples. There is
no upper limit to the number of sweeps in the same sweep card.
ANALYSIS DEFINITION:
Name sweep <parameter=value> . . .
ANALYSIS PARAMETERS:
annotate Integer (default is global annotate level):
resetsweep Boolean (true): set back all sweeping parameters at the values they had at the
beginning of the sweeping analysis. If set to false parameters are left at values assumed at
the end of the sweeping analysis.
center Real (-): center of sweep
dec Integer (-): points per decade
lin Integer (50.0): number of points, linear sweep
log Integer (50.0): number of points, log sweep
span Real (0.0): sweep limit span
start Real (0.0): start sweep limit
step Real (-): step size, linear sweep
stop Real (-): stop sweep limit
instance String (-): instance to which parameter sweeping is applied.
model String (-): model to which parameter sweeping is spplied.
opt Boolean (false): tells that sweeping applyies to a simulator option (specified through the
<option> card).
mioparam String (-): name of the parameter of the model, instance or simulator option that has
to be swept.
variable String (-): name of the variable to be swept that has been specified in the body of a
<control> analysis or in the body of the <sweep> analysis itself.
param String (-): name of the parameter (specified through the keyword ’parameter’ in the
circuit netlist) to be swept.
4.7.4
Control block
The control analysis interprets a language similar to that of the octave environment. It allows
to perform elaborations of the simulation results to alter instance and model parameters and to
perform analyses. In other words it gives the possibility to implement algorithms that "drive" the
simulation flow. The interpreted language allows the definition of procedures in the same control
body. Supported data types are scalars, vectors matrices and array of matrices. Supported types
are integer, real and complex. Available functions:
abort: abort the control analysis. abs,
x = arg(z): computes the argument of ’z’, defined as ’x = atan2(imag(z)/real(z))’ in radiants.