Hspice Tutorial(2011)

48
Introduction to Hspice 2011/10/28 Advisor: Ke-Horng Chen Speaker: Wei-Chung Chen 混合訊號及電源管理晶片積體電路實驗室 LAB 912 1

Transcript of Hspice Tutorial(2011)

Page 1: Hspice Tutorial(2011)

Introduction to Hspice

2011/10/28

Advisor: Ke-Horng Chen

Speaker: Wei-Chung Chen

混合訊號及電源管理晶片積體電路實驗室

LAB 912 1

Page 2: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 2

Content

SPICE Overview

Simulation Input and Controls

Sources

Analysis Types

Simulation Output and Controls

Graphic tools

Reference: CIC SPICE Note

Page 3: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

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

Page 4: Hspice Tutorial(2011)

低功率混合設計實驗室

LAB 802 4

Basic Flow for SPICE

Page 5: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 5

Content

SPICE Overview

Simulation Input and Controls

Sources

Analysis Types

Simulation Output and Controls

Simulation tool & Graphic tools

Page 6: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 6

HSPICE Data Flow 1. Write circuit

2. Simulation the circuit

3. Awaves tools

Page 7: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 7

Net Structure ( SPICE Preferred )

Page 8: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

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 )

Page 9: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 9

Element and Node Naming Conventions

(Cont.)

Page 10: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 10

Unit and Scale Factors

Page 11: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 11

Input Control Statement: .option

Page 12: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

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

Page 13: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 13

Input Control Statement: .temp

.Temp statement: No Specifying → Defaulting 25ºC for HSPICE

Page 14: Hspice Tutorial(2011)

Library Input Statement

混合訊號及電源管理晶片積體電路實驗室

LAB 912 14

Page 15: Hspice Tutorial(2011)

Input Control Statement: .alter

混合訊號及電源管理晶片積體電路實驗室

LAB 912 15

Page 16: Hspice Tutorial(2011)

Input Control Statement: .alter

(cont’d)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 16

Page 17: Hspice Tutorial(2011)

Description of MOSFET

混合訊號及電源管理晶片積體電路實驗室

LAB 912 17

Page 18: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 18

Hierarchical Circuit

Page 19: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 19

Hierarchical Circuit (con’t)

Page 20: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 20

Content

SPICE Overview

Simulation Input and Controls

Sources

Analysis Types

Simulation Input and Controls

Simulation tool & Graphic tools

Page 21: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 21

DC, AC Sources

Page 22: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 22

Transient Sources

Transient sources statement:

Pulse (PULSE Function)

Sinusoidal (SIN Function)

Exponential (EXP Function)

Piecewise Linear (PWL Function)

Page 23: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 23

Pulse Source Function

Page 24: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 24

Sinusoidal Source Function

Page 25: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 25

Piecewise Linear Source Function

Page 26: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 26

Voltage and Current Controlled Elements

Page 27: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 27

Content

SPICE Overview

Simulation Input and Controls

Sources

Analysis Types

Simulation Output and Controls

Simulation tool & Graphic tools

Reference: CIC Note

Page 28: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 28

Analysis Types & Orders

Page 29: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 29

DC Sweep & DC Small Signal Analysis

Page 30: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 30

DC Sweep & DC Small Signal Analysis

(con’t)

Page 31: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 31

AC Sweep & AC Small Signal Analysis

Page 32: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 32

AC Sweep & AC Small Signal Analysis

(con’t)

Page 33: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 33

Transient Analysis

Page 34: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 34

Transient analysis (Cont.)

Page 35: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 35

Content

SPICE Overview

Simulation Input and Controls

Sources

Analysis Types

Simulation Output and Controls

Simulation tool & Graphic tools

Reference: CIC Note

Page 36: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 36

Output Files Summary (HSPICE)

Page 37: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 37

Output Statement

Page 38: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 38

Content

SPICE Overview

Simulation Input and Controls

Sources

Analysis Types

Simulation Output and Controls

Simulation tool & Graphic tools

Reference: CIC Note

Page 39: Hspice Tutorial(2011)

Simulation tool-Hspice

混合訊號及電源管理晶片積體電路實驗室

LAB 912 39

看波形 執行模擬

目前模擬檔案

選擇模擬檔案

(1st step)

Open XXX.sp (可進行編輯)

Open XXX.lis (內有模擬完的資訊)

Page 40: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

LAB 912 40

Graphic tools-Awaves

Tool button

menu

Waveform data waveform

選擇欲觀察的波形中的訊號 (1st step) (見下一頁)

Page 41: Hspice Tutorial(2011)

混合訊號及電源管理晶片積體電路實驗室

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:

Page 42: Hspice Tutorial(2011)

42

Awaves Windows 放大鏡工具

常用的觀察工具

跑頻率響應的模擬 要在橫軸上點右鍵 改單位log

Page 43: Hspice Tutorial(2011)

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

Page 44: Hspice Tutorial(2011)

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)

Page 45: Hspice Tutorial(2011)

dc.sp / op.sp / ac.sp

混合訊號及電源管理晶片積體電路實驗室

LAB 912 45

VSS

VDrain

VGate

VSS

VINVOUT

AC 1V

dc.sp op.sp

ac.sp

Page 46: Hspice Tutorial(2011)

tr.sp

混合訊號及電源管理晶片積體電路實驗室

LAB 912 46

VDD

VSS

db cinv0 inv1

MP0

MN0

Cout

a

Page 47: Hspice Tutorial(2011)

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

Page 48: Hspice Tutorial(2011)

Thanks for your attention!

混合訊號及電源管理晶片積體電路實驗室

LAB 912 48