【正文】
5. 運放的仿真 ?開環(huán)增益、開環(huán)頻響、共模增益、 PSRR、CMRR、共模輸入和輸出電壓范圍、開環(huán)輸出電阻、瞬態(tài)相應等 ?參見 《 CMOS 模擬集成電路的設計(第二版) 》 , Phillip E. Allen, 運算放大器的仿真和測量( P249- 259) 6 步長的合理設置 ?步長的設置一定要合理,如果 CLK的周期是1u,占空比為 50%,那么用 tran掃描的時候步長理論上至少是 ,但是實際上應該為,否則 CLK就不在是方波,而是鋸齒波。 3. 常見的錯誤 ? Failure to converge (OP and DC) – The DC solver uses an iterative method to find the operating point, but some circuits exist which have no or multiple operating points. The best solution is to perform hand analysis of your circuit to make sure that you haven‘t done this. ? No DC Path to ground (OP and DC) – This often happens with floating MOSFET gates. Just add a resistor between the node and ground, or use the .IC or .NODESET mands to create an initial condition. Be warned, however, that .NODESET and .IC can cause convergence problems. ? Stability Problems (TRAN) – Sometimes a transient analysis shows a ―ringing‖ or oscillation that shouldn‘t be there. This can often be solved by reducing the maximum time step or using slower rise and fall times for independent sources. ? 注意:不要把 HSPICE的 lib和要仿真的網(wǎng)表放在中文目錄下,或者把網(wǎng)表名改成中文名。為了不存儲工作點,規(guī)定 .SAVE LEVEL=NONE。 ?常用的是 fast, bypass=0 加速仿真,但是會犧牲精度。 ?.PROBE:把數(shù)據(jù)輸出到 postprocessor,而不輸出到 list文件。 UIC參數(shù)表示使用 .IC語句指定的節(jié)點初始值。 TT .LIB 39。 2. .PARAM statement ? Syntax: .PARAM parametername = Expression39。 ? *必須在一行的第一個空格處。 G(= E9)。 Hspice和 Pspice的區(qū)別 ?缺點就是,對內存敏感,內部是 frotran寫的采用類似 c指針的方式對內存地址進行操作,大概只可以做 5000個晶體管,速度很慢 ?其實在有效的 2022個晶體管以上的電路就應該考慮用 cadence,主要比起 Hspice來說,cadence在電路收斂性問題比較少??梢暂o助調整電路參數(shù)。 N(= E9)。 例: LNA .include ―me98xxxx/― .alter運行所需的合適的字符串在每個輸出列表文件和圖形數(shù)據(jù)文件( .tr)的標題部分打印出來。 .op vol time某一時刻所有節(jié)點電壓, .op cur time某一時刻所有器件和電源的電流。 .NOISE ovv sram inter Ovv-輸出變量, sram-輸入源, inter-頻率間隔 例: .title ac sweep example .OPTIONS POST R1 in 1 5 C1 1 0 500pf V1 IN 0 0 AC=10V,37 .AC OCT 10 1 100MEG .noise v(1) v1 20--分析 1點電壓的噪聲情況,噪聲源為 V1端口 .END Lis文件中輸出的噪聲分析結果 1 ****** StarHSPICE (19991220) 22:12:12 04/16/2022 pt ****** .title ac sweep example ****** noise analysis tnom= temp= ****** frequency = hz **** resistor squared noise voltages (sq v/hz) element 0:r1 total rx **** total output noise voltage = sq v/hz = v/rt hz transfer function value: v(1)/v1 = equivalent input noise at v1 = /rt hz **** the results of the sqrt of integral (v**2 / freq) from fstart upto hz. using more freq points results in more accurate t