Chip123 科技應用創新平台

 找回密碼
 申請會員

QQ登錄

只需一步,快速開始

Login

用FB帳號登入

搜索
1 2 3 4
查看: 16747|回復: 2
打印 上一主題 下一主題

[問題求助] Hspice在跑tran時,time step的設定與影響?

  [複製鏈接]
跳轉到指定樓層
1#
發表於 2009-4-26 12:27:19 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
請問各位前輩...
: u# d9 L+ C1 Q; U, t- H% i* r1 A, v一般hspice在跑 .tran時,大家會如何選取time step...# n9 J. O6 |$ F3 t
會取電路操作頻率的百分之幾?
  D( t+ E. R9 U$ R6 [- O8 L3 A4 F
' r, c7 D" K8 D/ H* }  M, V) o小弟最近在模擬一個IO...
# J, O9 f# d. o5 d0 Q; Y: d將time step設在0.1n以下,如0.05n或0.01n,模擬結果會產生震盪的現象...) n' K' p* I) I* Q: K
output waveform會有一個高頻的小震幅上下抖動...& t8 Q5 E' u" p- r7 N& z% j
會導致這個模擬結果錯誤,LDO的輸出電壓飄到十幾伏(電壓源也才3.3V),電流也飄掉...
2 S4 M* m  H# @, A0 c. z0 Z試了一些option,結果還是一樣...
) ~! h) n9 r) L+ `" L* ]$ _0 c* N5 P- `! W  n- q$ @# W# x, k
但把time step設成0.1n...結果就正常...
+ x) V" p. ]' d7 Z# T1 k& Q( V, Q但又怕time step設不夠細...模擬結果不夠準確...
& `; }: H% L, u1 C( B6 F* R* U9 j0 h9 s$ N" m2 M) ~+ K
不知道有沒有什麼設定可以避免這個震盪的現象...0 j  o9 S0 |. t! {* ~1 [5 _2 Q
如果電路操作在5G...time step只是0.1n夠嗎?
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享分享 頂12 踩 分享分享
2#
發表於 2009-4-27 10:52:48 | 只看該作者

How TSTEP Affects a Transient Simulation

How does the value of TSTEP affect my transient simulation?
8 y- ]4 ?* }: oTSTEP is specified in the transient analysis netlist command.9 |( P/ w" w9 J8 u
.TRAN TSTEP1 TSTOP1 TSTEP2 TSTOP2 ... TSTEPN TSTOPN
! ?2 M" y, @2 R7 W5 Y  ]) BThe most common usage is a single TSTEP/TSTOP pair. For example:
. t) h4 r( D9 o; l* m.TRAN 0.1ps 100ns. l2 R+ g2 i4 `0 i0 I  l7 t
TSTEP has a variety of effects on the operation of HSPICE.$ F% C: G( K2 }- ~$ E# e  T
1. When the RUNLVL algorithm is in use:
4 O2 R! Q* @$ s- K6 L8 W  - RUNLVL "in use" is defined as HSPICE version >= 2004.09 and OPTION RUNLVL > 0.
7 S1 o/ j/ C# P    For HSPICE version >= 2006.09, RUNLVL=3 by default.
! x' Q2 h, D3 [+ ?2 z$ x" q! {  - The minimum timestep is determined by the RUNLVL algorithm. The RMIN option is ignored.
, {2 \0 J2 L: E' y5 `. E5 i4 Z& s/ ?  - The maximum timestep has a "soft" limit of RMAX*TSTEP. The RUNLVL algorithm; ~; B0 b- B3 ~$ ]% I
    allows the timestep to exceed RMAX*TSTEP as long as tighter Newton-Raphson
; k' V; `& l1 I% s    tolerances are met (voltage, current, charge).The default value of RMAX is 5.5 n7 K7 m( P, O. n
  - The DELMAX option can be used to override the RUNLVL algorithm's choice of3 Z" |" K. i0 O5 o
    maximum timestep. When DELMAX is used, TSTEP has no impact on simulation accuracy (except2 l7 c. ^0 B1 w0 J8 I; b- {3 S! z
    when used in conjunction with .OPTION INTERP, see #3 below)., w8 t1 U+ U0 [8 {
2. When RUNLVL=0 (discouraged):4 d" E; w' z. y) s
  - The minimum timestep is defined as TSTEP*RMIN. The default value of RMIN is 1e-9.
' b$ [+ Q* S  ?  - The maximum timestep is defined as TSTEP*RMAX. The default value of RMAX is 5.3 [" }5 s6 G) V9 H+ l: F: v6 `4 m
  - These limits are "hard" limits.
% F2 J( M; z8 J4 t0 ^% E  - If the simulation engine attempts to choose a timestep < TSTEP*RMIN, a
7 J. p4 i- S! C7 f    Timestep Too Small Error will result.
+ x1 P* c8 Q! {# Y8 y8 W! y  - The simulation engine is never allowed to take a larger timestep than/ }0 W/ y5 g; g7 O. I0 ^' s
    TSTEP*RMAX." h8 B3 f* j2 ?2 O. C1 u% d
Summary1 p! a+ G1 y: f+ `9 E
With the introduction of the RUNLVL algorithm, the impact of TSTEP has been
: E5 H5 x! O' o5 y! igreatly reduced to the point that it can be ignored except for niche applications
' l; _6 v/ o: W# ]( @" ?like INTERP. One should still be careful not to set TSTEP too small for long,
3 s3 r- e' H: r7 y+ f5 }low frequency simulations in which the soft timestep upper limit of RMAX*TSTEP- c  j5 p$ C! N) `. I$ Q7 H9 ]
may still force more timestep solutions than is necessary which will cause0 v/ m+ V$ v  ?& X0 }
excessive simulation time.
3#
發表於 2009-4-27 12:35:41 | 只看該作者
step 可以是时钟频率的1/5~1/10,这样比较精确!
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

首頁|手機版|Chip123 科技應用創新平台 |新契機國際商機整合股份有限公司

GMT+8, 2024-5-30 12:13 PM , Processed in 0.108014 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表