Professional Documents
Culture Documents
Hspice2002 07
Hspice2002 07
Hspice2002 07
SPICE Overview
SPICE (A007)
國科會晶片系統設計製作中心
Jul. 2002
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-1
SPICE 1. SPICE Overview
Course Objectives
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-2
SPICE 1. SPICE Overview
Further Reading
• HSPICE 使用手冊
格式檔:/usr/meta/cur/docs/hspice.pdf
格式檔:
PDF格式檔:
• 版本新增功能說明
HSPICE版本新增功能說明
格式檔:/usr/meta/cur/docs/hspice00.4.RN.pdf
格式檔:
PDF格式檔:
格式檔 : /usr/meta/cur/docs/hspice00.4.RN.ps
PS格式檔
• 使用手冊
HSPICE - awaves使用手冊
格式檔:/usr/meta/cur/docs/avanwaves.pdf
格式檔:
PDF格式檔:
格式檔 : /usr/meta/cur/docs/ avanwaves.ps
PS格式檔
• 使用手冊
SBTSPICE使用手冊
格式檔:/usr/sbt/man/manu.pdf
格式檔:
PDF格式檔:
格式檔:/usr/sbt/man/manu.ps
格式檔:
PS格式檔:
• SBTPLOT 使用手冊
格式檔:/usr/sbt/man/plot.pdf
格式檔:
PDF格式檔:
格式檔:/usr/sbt/man/plot.ps
格式檔:
PS格式檔:
• 問題諮詢
http://www.cic.edu.tw
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-3
SPICE 1. SPICE Overview
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-4
SPICE 1. SPICE Overview
Circuit/System Design :
A procedure to construct a physical structure which is based on
a set of basic component, and the constructed structure will
provide a desired function at specified time/ time interval under a
given working condition.
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-5
SPICE 1. SPICE Overview
Foundry
Manufacturing
?
gain
Behavior
V
Electrical characteristic f
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-7
SPICE 1. SPICE Overview
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-9
SPICE 1. SPICE Overview
Load Linearized
conductance into matrix
No
Convergence
Yes
Source : SBT training manual
Transient solution procedure
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-12
SPICE 1. SPICE Overview
No
End of time interval
Yes
Source : SBT training manual Stop
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-13
SPICE 1. SPICE Overview
SPICE 之外所需的基本概念
了解元件的基本特性
熟悉所設計電路的功能
了解需要驗證的電路規格及對應的模擬種類及電路組態
了解電路的輸入信號特性
了解電路各項規格的相依性及優先程度
了解電路元件參數與架構對各項電路特性的相關性,以利
模擬結果的改進
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-14
SPICE 1. SPICE Overview
選擇分析種類及輸入訊號型態
OP/DC/TRAN/AC
建立模擬電路組態
選擇觀察輸出及測量參數 .probe/measurement
執行模擬程式
否
變更電路元件參數 滿足規格?
是
是
其他規格?
否
結束
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
1-15
SPICE 2. Simulation Input and Controls
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-1
SPICE 2. Simulation Input and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-2
SPICE 2. Simulation Input and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-3
SPICE 2. Simulation Input and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-4
SPICE 2. Simulation Input and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-6
SPICE 2. Simulation Input and Controls
Scale Factors :
F 1e-15 K 1e3 Examples:
P 1e-12 Meg 1e6 1pF
N 1e-9 G 1e9 1nH
U 1e-6 T 1e12 10Meg Hz
M 1e-3 DB 20log10 vdb(v3)
Circuit Topology
Models
Elements Statement
Parameter Values
Options
Analysis Variables, etc.
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-9
SPICE 2. Simulation Input and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-10
SPICE 2. Simulation Input and Controls
CANNOT Include:
.PRINT, .PLOT, .GRAPH, or any I/O Statements
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-11
SPICE 2. Simulation Input and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-12
SPICE 2. Simulation Input and Controls
Example 2:
.OPTION TEMP = 30 $ Ckt simulated at 30 oC
Example 3:
.TEMP 100
D1 n1 n2 DMOD DTEMP=30 $ D1 simulated at 130 oC HSPICE : DTEMP
D2 n3 n4 DMOD $ D2 simulated at 100 oC SBTSPICE : TEMP
R1 n5 n6 1K
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-13
SPICE 2. Simulation Input and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-14
SPICE 2. Simulation Input and Controls
.INCLUDE ‘$installdir/parts/ad’
.LIB Definition and Call Statement File reference and Corner selection
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
2-17
SPICE 2. Simulation Input and Controls
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-1
SPICE 3. Sources and Stimuli
Source types
1. 固定值獨立電源
提供固定偏壓或固定驅動電流
2. 時變/
時變/頻變 獨立電源
提供變動的電壓或電流輸入,一般供輸入信號用
3. 時變/
時變/頻變 壓控/
壓控/源控 相依電源
提供可控制的電壓或電流源,一般供建立模型用
壓控電壓源(VCVS)
壓控電壓源
壓控電流源(VCCS)
壓控電流源
流控電壓源(CCVS)
流控電壓源
流控電流源(CCCS)
流控電流源
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-2
SPICE 3. Sources and Stimuli
V1 1 0 DC=5V V4 4 0 AC=10V, 90
V2 2 0 5V V5 5 0 AC 1.0 180
I3 3 0 5mA *AC or Freq. Response Provide Impulse Response
V6 6 0 5V AC=1V, 90
V7 7 0 0.5V AC 1.0 SIN (0 1 1Meg)
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-3
SPICE 3. Sources and Stimuli
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-4
SPICE 3. Sources and Stimuli
Example :
7
5
Vin (V)
3
1
-1
0 10 20 30 40 50 60 70 80 90 100 110 120 130
-3
Time (ns)
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-5
SPICE 3. Sources and Stimuli
π Freq(t-TD))
Voffset + Vacmag* e-(t-TD) *Dfactor * sin(2π
Example :
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-6
SPICE 3. Sources and Stimuli
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-7
SPICE 3. Sources and Stimuli
; Vector Pattern
Radix 1 2 3 44
vname v1 va[[1:0]] vb[3:1] vc[8:1]
io i i i oo
tunit ns
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-8
SPICE 3. Sources and Stimuli
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
3-10
SPICE 4. Analysis Types
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-1
SPICE 4. Analysis Types
.OP Statement :
.OP Print out :(1). Node Voltages; (2). Source Currents; (3). Power
Dissipation; (4). Semiconductors Device Currents, Conductance,
Capacitance
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-3
SPICE 4. Analysis Types
Examples :
.DC VIN 0.25 5.0 0.25
.DC VDS 0 10 0.5 VGS 0 5 1
.DC TEMP -55 125 10
.DC TEMP POI 5 0 30 50 100 125
.DC xval 1k 10k 0.5k SWEEP TEMP LIN 5 25 125
.DC DATA=datanm SWEEP par1 DEC 10 1k 100k
.DC par1 DEC 10 1k 100k SWEEP DATA=datanm
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-5
SPICE 4. Analysis Types
Optimization
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-6
SPICE 4. Analysis Types
Examples :
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-7
SPICE 4. Analysis Types
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-8
SPICE 4. Analysis Types
Optimization
.Param Parameter
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-9
SPICE 4. Analysis Types
.TRAN tincr1 tstop1 < tincr2 tstop2 ..... > < START=val>
.TRAN tincr1 tstop1 < tincr2 tstop2 ..... > < START=val> UIC <SWEEP..>
Examples :
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-10
SPICE 4. Analysis Types
.FFT Statement :
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
4-11
SPICE 5. Simulation Output and Controls
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-1
SPICE 5. Simulation Output and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-2
SPICE 5. Simulation Output and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-3
SPICE 5. Simulation Output and Controls
Output Variables:
DC and Transient Analysis : Displays Individual Voltage, Current, & Power
AC Analysis : Display Real & Imag. Components of Voltage & Current.....
Element Template Analysis : Display Element-Specific Voltage, Current.....
.MEASURE : Display User-Defined Variables Defined in .MEAS Statement
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-4
SPICE 5. Simulation Output and Controls
AC Analysis :
AC : V(2), VI(3), VM(5,7), VDB(OUT), IP(9), IP4(M4) R : Real
Element Template : I : Imaginary
@x1.mn1[vth] M : Magnitude
@x1.mn1[gds] P : Phase
DB : Decibels
@x1.mn1[gm],@x1.mn1[gbs],@x1.mn1[cgd]
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-5
SPICE 5. Simulation Output and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-6
SPICE 5. Simulation Output and Controls
Built-In Functions :
sin(x) cos(x) tan(x) asin(x) acos(x) atan(x) sinh(x) tanh(x) abs(x)
sqrt(x) log(x) log10(x) exp(x) db(x) min(x,y) max(x,y) power(x,y)...
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-7
SPICE 5. Simulation Output and Controls
Examples :
.PRINT TRAN V(4) V(X3.3) P(M1) P(VIN) POWER PAR(‘V(OUT)/V(IN)’)
.PRINT AC VM(4,2) VP(6) VDB(3)
.PRINT AC INOISE ONOISE VM(OUT) HD3
.PRINT DISTO HD3 HD3(R) SIM2
.PLOT DC V(2) I(VSRC) V(37,29) I1(M7) BETA=PAR(‘I1(Q1)/I2(Q1)’)
.PLOT AC ZIN YOUT(P) S11(DB) S12(M) Z11(R)
.PLOT TRAN V(5,3) (2,5) V(8) I(VIN)
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-8
SPICE 5. Simulation Output and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-9
SPICE 5. Simulation Output and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-10
SPICE 5. Simulation Output and Controls
Example:
.meas TRAN minval MIN v(1,2) from=25ns to=50ns
.meas TRAN tot_power AVG power from=25ns to=50ns
.meas TRAN rms_power RMS power
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-12
SPICE 5. Simulation Output and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-14
SPICE 5. Simulation Output and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-15
SPICE 5. Simulation Output and Controls
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
5-16
SPICE 6. Elements & Device Models
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-1
SPICE 6. Elements & Device Models
Netlist Rxxx, n1,n2, mname, rval Cxxx, n1,n2, mname, cval Lxxx, n1,n2, mname, lval Kxxx, Lyyy, Lzzz, kval
Temperature DTEMP, TC1, TC2 DTEMP, TC1, TC2 DTEMP, TC1, TC2
Parasitics C R
Examples :
R1 12 17 1K TC1=1.3e-3 TC2=-3.1e-7
C2 7 8 0.6pf IC=5V
LSHUNT 23 51 10UH 0.01 1 IC=15.7mA
K4 Laa Lbb 0.9999
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-3
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-4
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-5
SPICE 6. Elements & Device Models
.OPTIONS SCALE=1e-6
M1 24 2 0 20 MODN L=5 W=100 M=4
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-6
SPICE 6. Elements & Device Models
Corner_LIB of Models:
.LIB TT or (FF|SS|FS|SF) .LIB MOS
.param toxn=0.0141 toxp=0.0148...... .MODEL NMOD NMOS (LEVEL=49
.lib ‘~/simulation/model/cmos.l’ MOS + TOXM=toxn LD=3.4e-8 , ......)
.ENDL TT or (FF|SS|FS|SF) .ENDL MOS
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-7
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-8
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-13
SPICE 6. Elements & Device Models
Source:Star-Hspice Manual
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-14
SPICE 6. Elements & Device Models
Source:Star-Hspice Manual
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-15
SPICE 6. Elements & Device Models
Source:Star-Hspice Manual
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-16
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-17
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-18
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-19
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-20
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-23
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-24
SPICE 6. Elements & Device Models
First Generation :
“Physical” Analytical Models
Geometry Coded into the Model Equations
Level 1, Level 2, & Level 3
Second Generation :
Shift in Emphasis to Circuit Simulation
Extensive Mathematical Conditioning
Individual Device Parameters & Separate Geometry Parameter
Shift “Action” to Parameter Extraction (Quality of Final Model is Heavily
Dependent on Parameter Extraction)
BSIM1, Modified BSIM1, BSIM2
Source : IEEE 1997 CICC Educational Sessions E3.3
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-26
SPICE 6. Elements & Device Models
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
6-28
SPICE 6. Elements & Device Models
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
7-1
SPICE 7. Optimization
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
7-2
SPICE 7. Optimization
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
7-3
SPICE 7. Optimization
.lib “ls35_4_1.l” tt
.option post probe Specify parameter range
.param Cload =10p
.param Tpw=opt1(0, 0, 15n)
.model optmod opt method=passfail
Analysis type and
.tran 0.1n 20n sweep optimize=opt1
optimization algorithm
+ result = Tprop
+ model = optmod
.measure Tran Tprop Trig V(in) Val=2.5 Rise = 1 Optimization goal by
+ Targ v(out) Val=2.5 Fall = 1 measure command
vcc 1 0 5
vin in 0 pulse(0 5 1n 1n 1n Tpw 20n)
....
.end
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
7-5
SPICE 8. Control Options & Convergence
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
8-1
SPICE 8. Control Options & Convergence
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
8-2
SPICE 8. Control Options & Convergence
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
8-4
SPICE 8. Control Options & Convergence
Use MOS ACM=1, ACM=2, or ACM=3 Source and Drain Diode Calculation
to Automatically Generate Parasitics.
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
8-7
SPICE 8. Control Options & Convergence
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
8-8
SPICE 8. Control Options & Convergence
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
8-9
SPICE 8. Control Options & Convergence
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
8-11
SPICE 9. Graphic Tools
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-1
SPICE 9. Graphic Tools
The waveform tool define its own color table, the color table may
conflict with other programs, so some colors in waveform window
might not be visible, quit other application
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-2
SPICE 9. Graphic Tools
(2).SBTPLOT
Environment setup
source /usr/sbt/sbt.cshrc
sbtplot
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-3
SPICE 9. Graphic Tools
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-4
SPICE 9. Graphic Tools
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-5
SPICE 9. Graphic Tools
(5).Waveform
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-6
SPICE 9. Graphic Tools
HSPICE 模擬波形觀測介面-awaves簡介
模擬波形觀測介面 簡介
• HSPICE 係模擬程式,模擬結果依選項揩示存於檔案中。
• 原波形界面 gsi 及 hsplot 已由 awaves(avanwaves)取代,98.4版
中不提供此兩者之執行檔。
• Gsi 仍可使用awaves 之license
• awaves係視窗程式,需在Xwindow環境下使用。
• 在輸入netlist檔中需指定graphic輸出,hspice才會儲存waveform
資料,即加入 .option post 的指令項
• 2000.4版的輸出資料,gsi無法接受,需於netlist 檔中加入 .option
post_version-9007 的指令項
• 執行awaves 之指令
/usr/meta/cur/bin/awaves
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-7
SPICE 9. Graphic Tools
Data names
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-8
SPICE 9. Graphic Tools
To path
File type to list
Cd ..
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-9
SPICE 9. Graphic Tools
Design name
Analysis type
in design
Set X axis
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-10
SPICE 9. Graphic Tools
Awaves - Measurement
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-11
SPICE 9. Graphic Tools
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-12
SPICE 9. Graphic Tools
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-13
SPICE 9. Graphic Tools
Awaves - Expressions
Expressions provide capability for data calculation
Can use drag&drop to type expression
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
9-14
SPICE 10. Application Demo
Contents
1. SPICE Overview
2. Simulation Input and Controls
3. Sources and Stimuli
4. Analysis Types
5. Simulation Output and Controls
6. Elements and Device Models
7. Optimization
8. Control Options & Convergence
9. Graphic Tools
10. Applications Demonstration
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
10-1
SPICE 10. Application Demo
5 CL
M8 M7
Vbias M5
vss
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
10-2
SPICE 10. Application Demo
(2). Netlist
* Feedback CAP
*Two stage OP design Cc vout 4 0.44pF
.lib ”9905spice.model" mos_tt Cl vout 0 4pF
.option post nomod Ibias vdd vbias 8.8u
.TEMP 27
* Netlist information * Voltage sourses
M1 3 1 5 0 nmos L=2u W=8u AS=18p AD=18p vdd vdd 0 5v
+ PS=18u PD=18u vss vss 0 0v
M2 4 2 5 0 nmos L=2u W=8u AS=18p AD=18p
+ PS=18u PD=18u
M3 3 3 vdd vdd pmos L=10u W=10u AS=12p AD=12p PS=16u PD=16u
M4 4 3 vdd vdd pmos L=10u W=10u AS=12p AD=12p PS=16u PD=16u
M5 5 vbias vss vss nmos L=2u W=7u AS=49p AD=49p PS=26u PD=26u
M6 vout 4 vdd vdd pmos L=2u W=70u AS=490p AD=490p PS=150u PD=150u
M7 vout vbias vss vss nmos L=2u W=130u AS=930p AD=930p
+ PS=260u PD=260u
M8 vbias vbias vss vss nmos L=2u W=7u AS=49p AD=49p PS=26u PD=26u
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
10-3
SPICE 10. Application Demo
vin2 2 0 2.5v
vin1 1 0 DC 2.5v AC 1
*.OP
* AC Analysis function
.ac dec 10 10 100MEG
.probe ac vdb(vout)
+ vp(vout) vdb(4) vp(4)
.meas ac Unit_gain
+ when vdb(vout)=0
.meas ac phase_mar
+ FIND vp(vout) when vdb(vout)=0
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
10-4
SPICE 10. Application Demo
vin2
+ Vout
-
國家科學委員會
晶片設計製作中心
National Science Council
Chip Implementation Center
10-5