28
Introduction to SPICE Microelectronics (I)

Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

  • View
    236

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

Introduction to SPICE

Microelectronics (I)

Page 2: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

What is SPICE?

• Simulation Program with Integrated Circuit Emphasis

• SPICE was developed by U.C. Berkeley in 1970.

• There are many commercial SPICE programs, such as PSPICE, HSPICE, IS-SPICE, IG-SPICE,.etc.

Page 3: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

PSPICE Data Flow

Schematics

.sch

PSPICE

(simulation) Graph Tools

Create

netlist

.cir

.net

.als

Graph Dataoutput

.dat

circuits editor

Page 4: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

檔案說明 檔案 代表內容

.sch 儲存利用電路圖形編輯器產生的電路圖。

.als 儲存電路節點名稱、模型的特性及元件別名。

.net 儲存所有元件和元件之間連接的情形。

.cir 儲存參考到 netlist 、 alias 和 model 資料的檔案,可以直接送入 PSPICE 分析結果,這是 PSPICE 軟體中最重要的檔案 。

.dat 儲存圖形資料結果,可以送入 Graph Tool 中,分析圖形 。

.out 儲存文字輸出結果 。

Page 5: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in
Page 6: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

You can use hot-key : Ctrl+G

used part

description

Page 7: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

元件庫說明

Symbol Lib. Resource Description

abm.slb Pspice A/D 模擬時可用到的函數analog.slb 電阻、電容、電感、傳輸線、變壓器、控制電

源。breakout.slb 半導體元件 (diode, MOS, BJT…) 、開

關、 ADC 、 DAC 、 RAM 、 ROM 等。connect.slb 各種接腳eval.slb 各種已存在元件 ( 如 74 系列 IC)

port.slb 各種接腳 ( 含接地等… )

source.slb 各種電源sourcstm.slb 電源special.slb Pspice command 與特殊符號

Page 8: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

• You can modify the component attribute by double click the part. Only parameter without ’ * ‘ can be modified.

• You can change the component placement direction by hot-key Ctrl+R, or using the dialog “Change Display”.

Page 9: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

• You can use “Ctrl+W” to draw wires.• Add label for wire -> select the wire then double click.• Select and delete.

Page 10: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

Basic Analysis

• DC Analysis: 1. Bias point detail

2. DC sweep

• Transient Analysis : transient

• AC Analysis: AC sweep

Page 11: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

Bias point detail

• Choose Analysis / setup

• Choose Analysis / Simulate

Page 12: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in
Page 13: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

DC sweep

與更改變數的元件名稱相同。

Page 14: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

Marker

※測量電流的 marker必須在元件端點。

Page 15: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in
Page 16: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

Transient AnalysisInitial condition 要記得設定。 ( 參數 IC = ** V)

Page 17: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in
Page 18: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

AC sweep

• 電壓源必須要選擇 VAC

Page 19: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in
Page 20: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

The Diode Model

PSPICE9.1 版元件庫中, 有四種二極體模型

D1N4004 、 D1N4148 、 D1N750 、 D1N914 。

其中 D1N4148 為 Si 質二極體。

D1N750 為 Zener Diode 。

Page 21: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

Diode 近似模型 平常我們在紙上分析電路時,不可能實際地考量 diode的

物理特性,所以介紹幾個常用的近似模型。

(1)

(2)

(3)

理想二極體模型(Ideal Diode Model )

定壓降模型 ( Constant Voltage Drop Model )

電池加電阻模型

( Battery Plus Resistance Model )

+

-

ideal

V

I

0

+

-ideal

V

I

0

Vd

Vd

+

-ideal

V

I

0

VdVd

1/Rs

Rs

Page 22: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

Exercise

利用 PSPICE 畫出 D1N4148 二極體的 I-V curve 。

Page 23: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in
Page 24: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

箝位電路( Clamping circuit )

Page 25: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

Vsin Parameter

DC DC voltage magnitude(used for bias point)

AC AC magnitude(used in AC sweep)

Voff offset voltage

Vampl Voltage amplitude of sinusoid (transient analysis only)

Freq freqency of sinusoid (transient analysis only)

TD Delay

DF Damping factor

Phase Differential phase of sinusoid

Simulationly x

Page 26: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in
Page 27: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in

the voltage doubler

Clamping circuit The Peak Rectifier ( 峰值整流器 )

Page 28: Introduction to SPICE Microelectronics (I). What is SPICE? Simulation Program with Integrated Circuit Emphasis SPICE was developed by U.C. Berkeley in