Download SMASH - Reference manual

Transcript
Chapter 9 - Directives
___________________________________________________________________________________
Sweeping the value of a parameter
.PARAMSWEEP
Syntax
.PARAMSWEEP param_name start stop [DEC|LIN] step|n
or
.PARAMSWEEP param_name LIST value_1 value_2 ... value_n
Note: .STEP is allowed instead of .PARAMSWEEP
Parameters description
Name
Default Description
param_name
start
stop
step|n
-
Name of .PARAM parameter
Initial value for sweeping
Final value for sweeping
step: step value for linear sweeping
n: number of points per decade for log.
sweeping
value_1
value_2
value_n
-
value for the first run
value for the second run
value for the nth run
Note: please read the .PARAM directive description before you read the text below.
This directive is not a specific analysis specification by itself. It is used to run a series of
simulations while varying a parameter. This feature works for transient, DC transfer, noise, math
and small-signal analysis.
The parametric analyses are launched from the Analysis menu, with the “Transient > Sweep”,
“Small signal > Sweep”, “Noise > Sweep” and “DC transfer > Sweep” items. The results of the
runs are displayed in the same window, so that you can see the impact of the parameter variation
upon the output waveforms. Each simulation uses the same control parameters as in the case of a
single run.
Three kinds of sweeping are available: linear sweeping, logarithmic sweeping, and list sweeping.
In case of a linear sweeping (LIN keyword given, or no keyword given) the value of the parameter
is swept from start to stop using step step.
In case of a logarithmic sweeping (DEC keyword given), the value of the parameter is swept from
start to stop using n points per decade.
In case of a list sweeping (LIST keyword given), the parameter sequentially takes the specified
values.
The presence of a valid .PARAMSWEEP directive in the pattern file makes the Sweep entries in the
Analysis menus active, otherwise, these are greyed.
Note: a single .PARAMSWEEP directive is allowed, ie you can not cumulate .PARAMSWEEP directives.
As for MonteCarlo analysis, the swept parameter can be any parameter defined with a .PARAM
directive. The normal value (the one defined by the .PARAM directive) of the parameter is
overriden with the value of the current sweep run. Previous versions of SMASH™ allowed
261