10.06.2016 Views

eldo_user

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Speed and Accuracy<br />

Time Step Control<br />

To monitor this, by default .OPTION NEWACCT is set (see “.OPTION NEWACCT” in the<br />

Eldo Reference Manual). Eldo reports interesting (and readable) statistics about the iteration<br />

counts, average number of iterations per time step, number of time step rejections, and so on.<br />

This can be used to double-check whether the simulator runs ‘normally’ or not. These statistics<br />

are reported at the very end of the output .chi file. Eldo also reports some statistics in the<br />

original SPICE style, but the newacct reporting is much more readable and useful.<br />

Convergence failure in the Newton iterations has several possible reasons. The initial guess may<br />

be simply too distant from the solution. This might happen if the chosen time step is ‘overoptimistic’<br />

or if a sharp change in the circuit’s state occurs within the time step. Note that the<br />

simulator anticipates sharp changes in the stimuli, and all ‘break’ points such as the edges in<br />

PWL or PULSE signals force coinciding time points. Another reason for convergence failure<br />

can be discontinuities in the model equations, or simply strong non-linearities.<br />

Controlling the local truncation error (the error incurred while approximating the time<br />

derivatives with finite differences) is the most conservative and rigorous way to control the time<br />

steps. It usually provides more reliable and accurate results. This is the method Eldo selects by<br />

default.<br />

The rate-of-change control method uses the rate of change of the voltages to control the time<br />

steps. The premise behind this method is to control the time steps used so that the voltages do<br />

not change ‘too fast’. It is simpler than the LTE method, but also less accurate, and there is no<br />

direct general relationship between the rate of change of the voltage and the actual truncation<br />

error, at least not under all conditions. The method can, however, provide accurate results if the<br />

rate of change is forced to remain small enough.<br />

The iteration count method attempts to control the time step by monitoring only the rate of<br />

convergence of the Newton iterations. The idea being that if convergence is obtained rapidly,<br />

with just a few iterations, it probably means that the initial predicted guess was ‘good’ and,<br />

conversely, if many iterations are required, it probably means that the guess was incorrect.<br />

There is no attempt to estimate the truncation error. The control is entirely indirect, through the<br />

monitoring of the iteration count. This method is the least reliable of all and not necessarily any<br />

faster.<br />

When selecting the time points, Eldo may also use internal heuristic rules and, for example,<br />

adjust the time steps depending on the types of devices, the way they are connected, the scale of<br />

the simulation time, and so on, to obtain optimal results given the requested tolerances.<br />

As a consequence there is no guarantee that from one release to another, the exact time point<br />

locations, or the time point density (local or global) will be the same. If the time points that Eldo<br />

selects naturally are not convenient for one reason or another, <strong>user</strong>s must add explicit control<br />

options to alter this density. This can be done using options such as HMAX, INTERP,<br />

OUT_STEP, OUT_RESOL, and so on. See also .PLOT in the Eldo Reference Manual.<br />

Related Topics<br />

Control of the Local Truncation Error (LTE)<br />

Eldo® User's Manual, 15.3 1249

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!