SETTING SIMULATOR OPTIONS
Overview
There are a large number of parameters that affect the details of how a simulation is performed. These include things such as the maximum number of iterations allowed to find the operating point, the tolerances that determine when a solution has converged, the integration method used and so forth. Most designs never need any of them changed; they are the tools you reach for when a circuit will not converge, or when you need more accuracy than the defaults give.
All of them live on one tabbed dialogue form with six tabs, and each field on it is labelled twice: with a description of what it does, and alongside it with the name of the property it sets, in square brackets.
Where the Settings Apply
The same form is reached three ways, and which route you took determines what your changes affect. This matters more than it looks: options edited on a graph have no effect on an interactive simulation, and vice versa. The window title tells you which set you are editing.
| Route | Window title | What it affects |
| System menu, Set Si&mulation Options | Default Simulator Options | The defaults used by graph based simulation. They are saved in your preferences, so they persist between designs and are inherited by new graphs. |
| System menu, Set &Animation Options, then the SP&ICE Options button | Interactive Simulator Options | Interactive simulation only. This is the set to edit when you are tuning a design that runs in real time rather than onto a graph. |
| Edit a graph, then the SPICE Options button | Simulator Options | That one graph, and nothing else. The values are stored with the graph in the design. |
If you change an option and the simulation behaves exactly as before, check the window title you used. Editing a graph's options and then running interactively is the commonest reason for a setting appearing to have no effect.
The Presets
Along the bottom of the form is a list of three named sets of values with a &Load button beside it:
- Default Settings, the shipped values, which are what a new graph or a new installation starts with.
- Settings for Better Convergence, which loosens the tolerances and raises the iteration limits so that a difficult circuit is more likely to solve at all.
- Settings for Better Accuracy, which tightens them, at the cost of simulation time and of a greater risk of failing to converge.
Choosing an entry does nothing on its own. Click &Load and every affected field on every tab is filled in with that set of values, which you can then adjust individually before clicking OK.
Loading the convergence preset is the quickest first move when a circuit will not simulate. Try it before you start changing individual figures, because it moves a whole set of related values together and in the right directions.
Setting Options as Design Properties
Every option is a named property, and the name is the one shown in square brackets beside its field. Giving the design a property of that name sets the option for the whole design, whichever route the simulation takes.
This matters for two reasons. The first is that a handful of live options have no control on the dialogue form at all, and a design property is the only way to set them. The second is that several of the spin controls are range limited, so a value outside the range the control allows can still be set as a property.
To see which options were actually applied to a run, switch on the SPICE options trace channel in Debug, Configure Diagnostics. Every option the simulator picked up is then listed in the simulation log with the value it took.
See Also: