|
How TSTEP Affects a Transient Simulation
How does the value of TSTEP affect my transient simulation? j6 Z T6 O8 w( k V; m
TSTEP is specified in the transient analysis netlist command.. A+ v, `% V1 {
.TRAN TSTEP1 TSTOP1 TSTEP2 TSTOP2 ... TSTEPN TSTOPN
0 k5 U, z3 p7 e; u% `The most common usage is a single TSTEP/TSTOP pair. For example:# H4 H/ _' a; I3 p' @
.TRAN 0.1ps 100ns
; b( r+ q- V( f% N, n8 d1 \$ QTSTEP has a variety of effects on the operation of HSPICE.& P$ Z4 d: D; U3 s
1. When the RUNLVL algorithm is in use:& c6 t2 z' O. H' { f( m) T
- RUNLVL "in use" is defined as HSPICE version >= 2004.09 and OPTION RUNLVL > 0.2 d- c& Q& M) N) h
For HSPICE version >= 2006.09, RUNLVL=3 by default.
- Z- }/ {% o& n - The minimum timestep is determined by the RUNLVL algorithm. The RMIN option is ignored.: v/ y% h3 _+ P3 ?0 \; f2 P
- The maximum timestep has a "soft" limit of RMAX*TSTEP. The RUNLVL algorithm
" _& Y( r3 C7 c, y; Z% D& Y' ]9 s allows the timestep to exceed RMAX*TSTEP as long as tighter Newton-Raphson9 H6 `4 t6 m6 d! Y
tolerances are met (voltage, current, charge).The default value of RMAX is 5." T- w, G, S B& u& M6 E5 [: Q
- The DELMAX option can be used to override the RUNLVL algorithm's choice of" W* Q s' g8 R4 }2 J" {# R, d
maximum timestep. When DELMAX is used, TSTEP has no impact on simulation accuracy (except
' z8 W5 E. H8 L; |2 W4 t* w& B+ f when used in conjunction with .OPTION INTERP, see #3 below).. A6 _5 J$ w; z; a; X
2. When RUNLVL=0 (discouraged):; O: }) {8 H p2 ]0 ]( U) u& [
- The minimum timestep is defined as TSTEP*RMIN. The default value of RMIN is 1e-9.3 i; |$ T( f( H# B1 c" m3 l+ |& B9 C1 v
- The maximum timestep is defined as TSTEP*RMAX. The default value of RMAX is 5.: n% H! N2 P( ?! B3 {, m0 E
- These limits are "hard" limits.
0 v5 [" |2 @7 A* h2 q) T5 L - If the simulation engine attempts to choose a timestep < TSTEP*RMIN, a/ ]3 e$ d5 t# f4 o; i
Timestep Too Small Error will result.
; D# i+ Z: g: G- v% s0 X - The simulation engine is never allowed to take a larger timestep than$ P: O- [; L9 i4 Z
TSTEP*RMAX.( o0 O; r/ k) X8 ?* o
Summary$ j% I" O# a4 a
With the introduction of the RUNLVL algorithm, the impact of TSTEP has been
! [& E. V; E3 e$ g6 Pgreatly reduced to the point that it can be ignored except for niche applications
8 P0 i6 _: K nlike INTERP. One should still be careful not to set TSTEP too small for long,
1 G, }2 b4 @5 Y, mlow frequency simulations in which the soft timestep upper limit of RMAX*TSTEP
& o, J. Q8 T, T x# f1 Q9 L- ^9 W1 i, \may still force more timestep solutions than is necessary which will cause
3 e! a! B) p8 E' Xexcessive simulation time. |
|