Chip123 科技應用創新平台

 找回密碼
 申請會員

QQ登錄

只需一步,快速開始

Login

用FB帳號登入

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

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

  [複製鏈接]
跳轉到指定樓層
1#
發表於 2009-4-26 12:27:19 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
請問各位前輩...
% _+ e; H0 f$ E( H1 l: o4 X一般hspice在跑 .tran時,大家會如何選取time step...( K* n& S1 x7 t; w9 M6 p  F; g0 y* e
會取電路操作頻率的百分之幾?; x& T" E0 u! m1 [0 m) O

5 h6 Z7 ~1 [( l5 `9 L" t小弟最近在模擬一個IO.... ~) \" d$ \) J( b) W+ v
將time step設在0.1n以下,如0.05n或0.01n,模擬結果會產生震盪的現象...
9 z2 b; I( n: M# O- J) Moutput waveform會有一個高頻的小震幅上下抖動...
8 ^- I, ]% x' w# S$ q3 W) u! ?5 O會導致這個模擬結果錯誤,LDO的輸出電壓飄到十幾伏(電壓源也才3.3V),電流也飄掉...
1 z$ P/ n7 ~9 x: e8 @試了一些option,結果還是一樣...
6 t# F8 F8 K, q8 g( l1 y/ Q9 s0 S( L* G2 ]% k3 g0 R+ |" V
但把time step設成0.1n...結果就正常...
& B' q: c( X; x7 c但又怕time step設不夠細...模擬結果不夠準確...9 m4 d) M: I* d4 o

! r  Q7 ^, [+ m* U/ B6 U! W; C不知道有沒有什麼設定可以避免這個震盪的現象...  n& t) R. Q: m* j) K9 M
如果電路操作在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?
3 J; V0 n, ]1 a6 a  R- G! q1 m& ?TSTEP is specified in the transient analysis netlist command.  r/ N# u! \/ N* @7 n
.TRAN TSTEP1 TSTOP1 TSTEP2 TSTOP2 ... TSTEPN TSTOPN
. V! |* {# I8 [5 m) kThe most common usage is a single TSTEP/TSTOP pair. For example:
/ A& I( j5 U5 z& E! u) ~.TRAN 0.1ps 100ns
# O! ^) n: F1 l( d' q' hTSTEP has a variety of effects on the operation of HSPICE.: q: G9 N' \' t) [
1. When the RUNLVL algorithm is in use:
& y. l0 c# n% u7 f% n0 ]% l  - RUNLVL "in use" is defined as HSPICE version >= 2004.09 and OPTION RUNLVL > 0.7 a+ y7 `6 H' a& u/ E+ H; L) |
    For HSPICE version >= 2006.09, RUNLVL=3 by default.+ y4 t, p/ @6 H; H" V" A, V
  - The minimum timestep is determined by the RUNLVL algorithm. The RMIN option is ignored.
: r( i5 ^& S2 F4 m) {; z& o  - The maximum timestep has a "soft" limit of RMAX*TSTEP. The RUNLVL algorithm
: U6 a" t$ o. F2 V  g: @6 q    allows the timestep to exceed RMAX*TSTEP as long as tighter Newton-Raphson
3 S$ {% j" {, d: k% f    tolerances are met (voltage, current, charge).The default value of RMAX is 5.# a) ], n5 B, y, P8 ?
  - The DELMAX option can be used to override the RUNLVL algorithm's choice of; s+ g, `! L3 @3 n
    maximum timestep. When DELMAX is used, TSTEP has no impact on simulation accuracy (except
5 V+ A! r9 @7 x8 x4 D: m( l6 k    when used in conjunction with .OPTION INTERP, see #3 below).& ~/ Q" U: }  @! w0 t4 t& l' l- t
2. When RUNLVL=0 (discouraged):
% y! o0 y, ^3 e0 d  - The minimum timestep is defined as TSTEP*RMIN. The default value of RMIN is 1e-9.
) Z8 Q- c2 Z3 G+ a1 c# d  - The maximum timestep is defined as TSTEP*RMAX. The default value of RMAX is 5.: H, ^3 l8 W* C5 o! G; W6 K
  - These limits are "hard" limits./ y, Z2 P2 t1 I. M9 e
  - If the simulation engine attempts to choose a timestep < TSTEP*RMIN, a
0 |2 U/ d; u* y! M' y4 K    Timestep Too Small Error will result.
7 z6 _9 T& K# E3 E  - The simulation engine is never allowed to take a larger timestep than4 `  m: h& ?5 q. \6 L
    TSTEP*RMAX., f5 l  k- i  ]! Y7 }( D" Q
Summary$ K! S- d' s/ x9 y& G; d: ^# b  T
With the introduction of the RUNLVL algorithm, the impact of TSTEP has been
2 l. Q* ]0 e2 U2 Mgreatly reduced to the point that it can be ignored except for niche applications# H7 Z4 D8 H, B8 r- A) Y# f& \
like INTERP. One should still be careful not to set TSTEP too small for long,$ q4 r9 q; L! p7 ]& D4 a) I3 N
low frequency simulations in which the soft timestep upper limit of RMAX*TSTEP, ^7 {# D. \6 s9 A4 ~4 w; v+ {
may still force more timestep solutions than is necessary which will cause& C7 K+ d8 N# }  U
excessive simulation time.
3#
發表於 2009-4-27 12:35:41 | 只看該作者
step 可以是时钟频率的1/5~1/10,这样比较精确!
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

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

GMT+8, 2024-6-7 01:33 AM , Processed in 0.132516 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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