Chip123 科技應用創新平台

 找回密碼
 申請會員

QQ登錄

只需一步,快速開始

Login

用FB帳號登入

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

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

  [複製鏈接]
跳轉到指定樓層
1#
發表於 2009-4-26 12:27:19 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
請問各位前輩...
  Y$ x. T! ?% c0 S% [- K一般hspice在跑 .tran時,大家會如何選取time step...6 o# }+ s0 `6 R
會取電路操作頻率的百分之幾?/ J; X* `- H. t" T* s! V/ A

  x5 q( U# |6 U5 X; ?  Z+ l小弟最近在模擬一個IO...
5 f/ l0 Y, R) X, t  K& R7 V8 H將time step設在0.1n以下,如0.05n或0.01n,模擬結果會產生震盪的現象...! `  _) s8 T( K/ i* _
output waveform會有一個高頻的小震幅上下抖動...# z2 d  k- n! t; q
會導致這個模擬結果錯誤,LDO的輸出電壓飄到十幾伏(電壓源也才3.3V),電流也飄掉...- J6 i, s6 }1 _% q3 C9 S4 `- }
試了一些option,結果還是一樣...0 {! p- j: w5 u
# P& ]' O: A1 [5 R4 A, c
但把time step設成0.1n...結果就正常...0 N  t8 m) U4 q5 k1 d
但又怕time step設不夠細...模擬結果不夠準確...$ o  o, U2 Q+ ?. B- F4 O

+ n( G% h, H0 ?7 c' T# I不知道有沒有什麼設定可以避免這個震盪的現象...
" G5 j' r8 R* M' n如果電路操作在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?
9 {& e# c* z9 ITSTEP is specified in the transient analysis netlist command.& }3 O$ z  `8 S
.TRAN TSTEP1 TSTOP1 TSTEP2 TSTOP2 ... TSTEPN TSTOPN
  G7 d5 h5 i% G+ M3 P! M5 UThe most common usage is a single TSTEP/TSTOP pair. For example:
4 \4 f# |. c& _.TRAN 0.1ps 100ns* s9 _+ U; T  M5 k, k; V: s
TSTEP has a variety of effects on the operation of HSPICE.
( j9 u( y' Q% H- r1. When the RUNLVL algorithm is in use:9 _! K" s+ I& U; v
  - RUNLVL "in use" is defined as HSPICE version >= 2004.09 and OPTION RUNLVL > 0.1 t: D6 ?& A0 G! z
    For HSPICE version >= 2006.09, RUNLVL=3 by default.2 K* N; n6 D1 }! v9 R* z  z7 q
  - The minimum timestep is determined by the RUNLVL algorithm. The RMIN option is ignored.
  z0 l* f; y( Y/ J* r( w: Z2 T  - The maximum timestep has a "soft" limit of RMAX*TSTEP. The RUNLVL algorithm/ P8 \. H; b( U+ B
    allows the timestep to exceed RMAX*TSTEP as long as tighter Newton-Raphson+ F) u; ]* l/ O5 {* W6 T$ S
    tolerances are met (voltage, current, charge).The default value of RMAX is 5.
6 K# I; B5 S. I  _8 K4 g, `  - The DELMAX option can be used to override the RUNLVL algorithm's choice of! b& C  q5 |& h# N, j' C% @
    maximum timestep. When DELMAX is used, TSTEP has no impact on simulation accuracy (except; B7 v/ P; N+ O6 @
    when used in conjunction with .OPTION INTERP, see #3 below).
* v: F6 B5 h/ Z, x: h; E5 h1 M2. When RUNLVL=0 (discouraged):! z5 {! b9 ]9 O- l7 o# g- A9 e
  - The minimum timestep is defined as TSTEP*RMIN. The default value of RMIN is 1e-9.& U3 C( H! g" y/ d
  - The maximum timestep is defined as TSTEP*RMAX. The default value of RMAX is 5.
* R  M1 _" D5 z  - These limits are "hard" limits.9 s' j4 W7 B# _, t" x
  - If the simulation engine attempts to choose a timestep < TSTEP*RMIN, a
; v$ D9 H/ \- _  Y    Timestep Too Small Error will result.  f: d/ l4 F! g* N- W/ q  f
  - The simulation engine is never allowed to take a larger timestep than
2 g2 G) O( |. P. e    TSTEP*RMAX.* t$ [- R8 j( _  t( r- k* T5 s1 t
Summary! x( W0 o9 g% r; X6 {: S0 h
With the introduction of the RUNLVL algorithm, the impact of TSTEP has been
$ i$ C. |/ Y6 J0 f; I2 Egreatly reduced to the point that it can be ignored except for niche applications' p+ a& J$ ?9 j
like INTERP. One should still be careful not to set TSTEP too small for long,0 }6 p& T: Z6 X! B; a# s
low frequency simulations in which the soft timestep upper limit of RMAX*TSTEP
! e) ^! [4 X" z. n7 ~: |9 ~may still force more timestep solutions than is necessary which will cause" t& C9 g3 @( r) I4 @2 }6 N1 R! z. f
excessive simulation time.
3#
發表於 2009-4-27 12:35:41 | 只看該作者
step 可以是时钟频率的1/5~1/10,这样比较精确!
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

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

GMT+8, 2024-5-7 01:16 PM , Processed in 0.099006 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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