hspice tutorial(2011)
Post on 28-Apr-2015
146 Views
Preview:
TRANSCRIPT
Introduction to Hspice
2011/10/28
Advisor: Ke-Horng Chen
Speaker: Wei-Chung Chen
混合訊號及電源管理晶片積體電路實驗室
LAB 912 1
混合訊號及電源管理晶片積體電路實驗室
LAB 912 2
Content
SPICE Overview
Simulation Input and Controls
Sources
Analysis Types
Simulation Output and Controls
Graphic tools
Reference: CIC SPICE Note
混合訊號及電源管理晶片積體電路實驗室
LAB 912 3
SPICE Overview
Simulation:
Predicting the Circuit/System Characteristic after manufacturing
Circuit simulation:
Physical model
Circuit structure
SPICE:
Simulation Program with Integrated Circuit Emphasis
SPICE tools (HSPICE, Spectre, PSPICE…)
Steady-State, Transient, and Frequency Domains
低功率混合設計實驗室
LAB 802 4
Basic Flow for SPICE
混合訊號及電源管理晶片積體電路實驗室
LAB 912 5
Content
SPICE Overview
Simulation Input and Controls
Sources
Analysis Types
Simulation Output and Controls
Simulation tool & Graphic tools
混合訊號及電源管理晶片積體電路實驗室
LAB 912 6
HSPICE Data Flow 1. Write circuit
2. Simulation the circuit
3. Awaves tools
混合訊號及電源管理晶片積體電路實驗室
LAB 912 7
Net Structure ( SPICE Preferred )
混合訊號及電源管理晶片積體電路實驗室
LAB 912 8
Element and Node Naming Conventions
Either Names or Numbers (e.g. d1 a1 b22)
0 (zero) = Ground
Ignoring trailing Alphabetic Character in Node Number (e.g. 5a=5b=5)
Ground may be 0, GND
All nodes = Local
.GLOBAL Statement (e.g. .GLOBAL VDD VSS )
混合訊號及電源管理晶片積體電路實驗室
LAB 912 9
Element and Node Naming Conventions
(Cont.)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 10
Unit and Scale Factors
混合訊號及電源管理晶片積體電路實驗室
LAB 912 11
Input Control Statement: .option
混合訊號及電源管理晶片積體電路實驗室
LAB 912 12
Input Control Statement: .option (con’t)
.option method = gear Most stable
Analog
Switching regulator, using gear algorithm
.option method = trap Highest accuracy
Lowest simulation time
Best for CMOS digital circuit
混合訊號及電源管理晶片積體電路實驗室
LAB 912 13
Input Control Statement: .temp
.Temp statement: No Specifying → Defaulting 25ºC for HSPICE
Library Input Statement
混合訊號及電源管理晶片積體電路實驗室
LAB 912 14
Input Control Statement: .alter
混合訊號及電源管理晶片積體電路實驗室
LAB 912 15
Input Control Statement: .alter
(cont’d)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 16
Description of MOSFET
混合訊號及電源管理晶片積體電路實驗室
LAB 912 17
混合訊號及電源管理晶片積體電路實驗室
LAB 912 18
Hierarchical Circuit
混合訊號及電源管理晶片積體電路實驗室
LAB 912 19
Hierarchical Circuit (con’t)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 20
Content
SPICE Overview
Simulation Input and Controls
Sources
Analysis Types
Simulation Input and Controls
Simulation tool & Graphic tools
混合訊號及電源管理晶片積體電路實驗室
LAB 912 21
DC, AC Sources
混合訊號及電源管理晶片積體電路實驗室
LAB 912 22
Transient Sources
Transient sources statement:
Pulse (PULSE Function)
Sinusoidal (SIN Function)
Exponential (EXP Function)
Piecewise Linear (PWL Function)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 23
Pulse Source Function
混合訊號及電源管理晶片積體電路實驗室
LAB 912 24
Sinusoidal Source Function
混合訊號及電源管理晶片積體電路實驗室
LAB 912 25
Piecewise Linear Source Function
混合訊號及電源管理晶片積體電路實驗室
LAB 912 26
Voltage and Current Controlled Elements
混合訊號及電源管理晶片積體電路實驗室
LAB 912 27
Content
SPICE Overview
Simulation Input and Controls
Sources
Analysis Types
Simulation Output and Controls
Simulation tool & Graphic tools
Reference: CIC Note
混合訊號及電源管理晶片積體電路實驗室
LAB 912 28
Analysis Types & Orders
混合訊號及電源管理晶片積體電路實驗室
LAB 912 29
DC Sweep & DC Small Signal Analysis
混合訊號及電源管理晶片積體電路實驗室
LAB 912 30
DC Sweep & DC Small Signal Analysis
(con’t)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 31
AC Sweep & AC Small Signal Analysis
混合訊號及電源管理晶片積體電路實驗室
LAB 912 32
AC Sweep & AC Small Signal Analysis
(con’t)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 33
Transient Analysis
混合訊號及電源管理晶片積體電路實驗室
LAB 912 34
Transient analysis (Cont.)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 35
Content
SPICE Overview
Simulation Input and Controls
Sources
Analysis Types
Simulation Output and Controls
Simulation tool & Graphic tools
Reference: CIC Note
混合訊號及電源管理晶片積體電路實驗室
LAB 912 36
Output Files Summary (HSPICE)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 37
Output Statement
混合訊號及電源管理晶片積體電路實驗室
LAB 912 38
Content
SPICE Overview
Simulation Input and Controls
Sources
Analysis Types
Simulation Output and Controls
Simulation tool & Graphic tools
Reference: CIC Note
Simulation tool-Hspice
混合訊號及電源管理晶片積體電路實驗室
LAB 912 39
看波形 執行模擬
目前模擬檔案
選擇模擬檔案
(1st step)
Open XXX.sp (可進行編輯)
Open XXX.lis (內有模擬完的資訊)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 40
Graphic tools-Awaves
Tool button
menu
Waveform data waveform
選擇欲觀察的波形中的訊號 (1st step) (見下一頁)
混合訊號及電源管理晶片積體電路實驗室
LAB 912 41
Result browser
Step1: Analysis type
Step2: Instant name and hierarchy
Set X axis
Data name and data type
Design name
Step3: Step4:
Step5:
42
Awaves Windows 放大鏡工具
常用的觀察工具
跑頻率響應的模擬 要在橫軸上點右鍵 改單位log
Example
(1) op.sp.op
(2) ac.sp.ac-頻率響應分析
(3) dc.sp.dc-dc掃描
(4) tr.sp.tran-時域分析
混合訊號及電源管理晶片積體電路實驗室
LAB 912 43
模擬檔案 輸出檔案 註解1 註解2
(1) op.sp op.list DC operation point 以記事本打開
(2) ac.sp ac.ac0 Frequency Analysis
波形黨 (3) dc.sp dc.sw0 DC Sweep
(4) tr.sp tr.tr0 Transient response
XXX.list
以記事本打開 (1)搜尋關鍵字”concluded”
(2)mos的名子
重要資訊 (3)Ids
(4)VGS、VDS
(5)VTH
(6)VGS-VTH
(7)gm
(8)1/rDS
混合訊號及電源管理晶片積體電路實驗室
LAB 912 44
(1)
(2)
(3)
(4)
(6)
(5)
(7)
(8)
dc.sp / op.sp / ac.sp
混合訊號及電源管理晶片積體電路實驗室
LAB 912 45
VSS
VDrain
VGate
VSS
VINVOUT
AC 1V
dc.sp op.sp
ac.sp
tr.sp
混合訊號及電源管理晶片積體電路實驗室
LAB 912 46
VDD
VSS
db cinv0 inv1
MP0
MN0
Cout
a
Appendix: SPICE Instructions
DC Analysis:
.dc temp -40 120 10
.dc Vdrain 0 5 0.1 sweep VGate 3 5 0.1
AC Analysis
.ac dec 10 1 10G
.ac dec 10 1 10G sweep temp -40 120 10
.probe vdb(XXX) vp(XXX)
Transient Analysis:
.tran 1n 100u
.tran 1n 100u UIC
.tran 1n 100u sweep temp -40 120 20
混合訊號及電源管理晶片積體電路實驗室
LAB 912 47
Thanks for your attention!
混合訊號及電源管理晶片積體電路實驗室
LAB 912 48
top related