Chip123 科技應用創新平台

 找回密碼
 申請會員

QQ登錄

只需一步,快速開始

Login

用FB帳號登入

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

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

  [複製鏈接]
跳轉到指定樓層
1#
發表於 2009-4-26 12:27:19 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
請問各位前輩...+ g. I5 Z7 Q* h8 F2 G. w
一般hspice在跑 .tran時,大家會如何選取time step...
& M& L9 P* F7 I  Z, B& e% c會取電路操作頻率的百分之幾?' w- e& ?' j3 B( l% z

0 \& p. z+ K- Q* W! c小弟最近在模擬一個IO...# t2 B. F& l- w
將time step設在0.1n以下,如0.05n或0.01n,模擬結果會產生震盪的現象...
& `1 u$ y; |. l+ joutput waveform會有一個高頻的小震幅上下抖動.... s" ]. b& W! t, A
會導致這個模擬結果錯誤,LDO的輸出電壓飄到十幾伏(電壓源也才3.3V),電流也飄掉...3 V/ `' T' N) W' {$ l, `( `
試了一些option,結果還是一樣...) P% |; }) k4 g' i
5 Z4 H+ W4 T8 Q# D8 t6 p
但把time step設成0.1n...結果就正常...: V2 R- c6 }) s* x+ t7 X* W* [3 O" e
但又怕time step設不夠細...模擬結果不夠準確...
7 e) }2 o4 ^0 Q' s& u7 T8 k: U& R% P4 D: A
不知道有沒有什麼設定可以避免這個震盪的現象...
/ e1 B: f4 C8 k如果電路操作在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?  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.
3#
發表於 2009-4-27 12:35:41 | 只看該作者
step 可以是时钟频率的1/5~1/10,这样比较精确!
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

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

GMT+8, 2024-6-3 03:53 AM , Processed in 0.123515 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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