課程名稱 : 積體電路分析與模擬 (analysis and simulation of integrated circuits)

59
1 課課課課 : 課 課課課課課課課 (Analysis a nd Simulation of Integrated Circuits) Text Books 1. 課課課課課課課課課課 , 課課課 , 課課 2. Reference Books 1. OrCAD PSpice and Circuit Ana lysis, J. Keown 2. Real Word FPGA Design with V erilog, Coffman

Upload: crete

Post on 02-Feb-2016

98 views

Category:

Documents


1 download

DESCRIPTION

課程名稱 : 積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits). Text Books 1. 電腦輔助電子電路設計 , 鄭群星 , 全華 2. Reference Books 1. OrCAD PSpice and Circuit Analysis, J. Keown 2. Real Word FPGA Design with Verilog, Coffman. 任課教師及相關資料. 授課教師 : 李宗演 研究室 : 綜科館 207-4 E-mail: [email protected] - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

1

課程名稱 : 積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

Text Books1. 電腦輔助電子電路設計 , 鄭群星 , 全華2. Reference Books1. OrCAD PSpice and Circuit Analysis, J.

Keown 2. Real Word FPGA Design with Verilog,

Coffman

Page 2: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

2

任課教師及相關資料 授課教師 : 李宗演 研究室 : 綜科館 207-4 E-mail: [email protected] URL: www.ntut.edu.tw/~tylee/ Tel: 02-2771-2171 ext. 2251 Office Hour: 星期三及四 10:00~12:00

Page 3: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

3

Goal Introduce the methodologies of analy

sis and simulation on integrated circuits

Learn the analysis and simulation techniques on analog circuits using OrCAD PSpice tool

Learn the design and simulation techniques on digital circuits using Xilinx FPGA design tool kit

Page 4: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

4

Progress of Course Analysis and Simulation Techniques o

n Analog Circuits Using OrCAD PSpice Tool/ 8 Weeks

Design and Simulation Techniques on Digital Circuits Using Xilinx FPGA Design Tool Kit / 8 Weeks

Page 5: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

進度表

週次 月 日 時數 授 課 內 容 要 項 備 註

1 3 .積體電路分析與模擬簡介 . 電路描述格式及規則  

2 3 .被動元件的描述規則及取用 . 獨立電源元件  

3 3  中秋節

4 3.控制電源元件及描述 . 半導體元件及描述 ,

.模擬電路分析的種類及輸出格式  

5 3 .直流模擬電路分析  

6 3 .小信號模擬電路分析  

7 3 .交流信號模擬電路分析  

8 3 .相關參數分析  

9 3 期中考 期中考週 

10 3 .FPGA簡介  

11 3 .圖形編輯器介紹  

12 3 .邏輯模擬器之使用介紹  

13 3 .如何建自己的元件庫  

14 3 .自訂元件模組之使用  

15 3 .狀態機設計法  

16 3 .硬體描述語言  

17 3 .設計實例

18 3 期末考試 全校停課舉行期末考試 

Page 6: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

6

Scores Term Exam 30% Final Exam 30% Home Works, Computer Exercises, an

d Others 40%

Page 7: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

7

Question & Answer ? ? ? ? ? ?

Page 8: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

8

Chapter 1 Introduction

Page 9: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

9

Design Concept Verification The design is described in

equations or behavioral expressions

This high-level design description is then simulated or verified to match with expected result

Page 10: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

10

Design Implementation Verification

Simulates the physical design The simulated result should match

with the expected specification

Page 11: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

11

Design Performance Verification

Predicts or verifies the design “quality”

Post-layout simulation with extracted RCs is needed in nanometer technology

Page 12: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

12

Verification Methodologies Dynamic simulation

Examples: SPICE, Verilog Static verification or analysis

Examples: Formal verification, static timing analysis

Page 13: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

13

Dynamic vs Static Verification Dynamic simulation mimics the physical

behavior Difficult to select the input stimulus pattern to

cover all possible verifications using dynamic simulation

More time consuming to simulate many possible test patterns

Static verification tends to validate the design still works under all possible working conditions

Static verification is less accurate and may give wrong results occasionally

Static verification is limited to digital circuits only

Page 14: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

14

Important Simulation Technologies Complier code logic simulation Transistor-level SPICE-like circuit

simulation Switch-level transistor circuit

simulation Fast SPICE circuit simulation Analog behavioral simulation Hierarchical circuit simulation

Page 15: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

15

Complied Code Logic Simulation Complier the digital circuit into a

sequence of computer machine code Traditional interpretation method

looks up the logic gate model to simulate the digital state changes

Machine code execution runs faster than procedural interpretation

Page 16: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

16

SPICE Circuit Simulation Developed at UC Berkeley in early 1970s Models and simulations the electrical-level

circuit behavior accurately Widely used due to open release to public users Solves the whole circuit as a single entity Slow and limited to speed circuit size less than

100,000 elements Earlier attempts to speed up simulation,

including waveform relaxation and iterative method, failed to commercialize

Fast SPICE simulation technology achieved commercial success until late 1990s

Page 17: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

17

History of Dynamic Simulation Logic simulation and circuit

simulation are converging into a mixed-signal simulation

Page 18: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

18

Basic Idea of Circuit Simulation

Page 19: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

19

First Generation SPICE Technology

Page 20: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

20

Second Generation Fast SPICE Technology

Page 21: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

21

Hierarchical Simulation Technology

Page 22: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

22

Hierarchical Circuit Simulation

Page 23: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

23

Switch-Level Simulation Models MOSFET as a switch Able to model the bi-directional signal flow

behavior of MOSFET Simulates the flat transistor netlist extracte

d from physical layout Simulation speed is 1,000X faster than SPIC

E and is close to gate-level logic simulation Limited in digital circuit only A hot technology in 1980s but only achieved

limited commercial success

Page 24: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

24

Switch-Level Logic Simulation

Page 25: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

25

Switch-Level Timing Simulation Models the conducting MOSFET by an

equivalent resistance Calculates the switching delay by the RC time

constant Limited to digital CMOS circuit simulation Unable to simulate analog behavior even in

digital circuits

Page 26: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

26

Analog Event-Driven Simulation

Similar to digital logic simulation except the event is triggered by analog voltage change instead of logic state transition

Page 27: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

27

Fast SPICE Circuit Simulation Partitions the whole circuit into smaller subci

rcuits and solves each one individually Runs 10-100X faster than SPICE Can simulate circuits up to 5 million element

s Simulates analog behavior in digital circuits Less accurate especially when simulating hig

h-sensitivity analog circuits Gets more acceptance due to new enhancem

ents in simulating analog circuits

Page 28: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

28

Analog Behavioral Simulation Needed in top-down analog/mixed-signal d

esign flow Further speeds up verification A new trend: device model described in Veri

log-A Verifies design concept instead of design im

plementation Very difficult to create and characterize the

analog behavior model

Page 29: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

29

Use SPICE or Mixed-Signal Simulation Mixed-signal simulator is difficult to use No need if SPICE performance is

reasonable Fast SPICE may do a better job if

majority portions are analog

Page 30: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

30

Reference A.-C. Deng, Signal Integrity in SOC Des

ign, SOC/IP 菁英人才養成課程 , 三 C 整合策劃推行小組 , July 2002.

Page 31: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

31

Question & Answer

Page 32: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

32

SPICE & OrCAD PSpice 介紹

Page 33: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

33

SPICE 模擬電路程式之功能 DC Analysis Small Signal Transfer Function DC Transfer Curves Small Signal Sensitivities Small Signal Frequency Domain Response Noise Analysis Distortion Analysis Transient Analysis Fourier Analysis Temperature Analysis

Page 34: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

電路描述模擬的方式

Page 35: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

35

OrCAD PSpice 使用電路描述模擬的方式 (1)

開始→程式集→ OrCAD family release 9.2 Lite Edition →PSpiceAD Lite Edition

File→New→Text File 依 OrCAD PSpice 描述格式將電路輸入 ,

filename 為 XXX.CIR

Page 36: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

OrCAD PSpice 使用電路描述模擬的方式(2)

Page 37: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

37

OrCAD PSpice 使用電路描述模擬的方式 (3)

Page 38: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

38

OrCAD PSpice 使用電路描述模擬的方式 (4)

File→Open→XXX.CIR Simulation File→Run XXX View→Outputfile ( 出現輸出檔視窗 XXX.out)

Page 39: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

39

OrCAD PSpice 使用電路描述模擬的方式 (5)

Page 40: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

40

OrCAD PSpice 使用電路描述模擬的方式 (6)

Page 41: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

41

OrCAD PSpice 使用電路描述模擬的方式 (7)

File→Exit (Exit OrCAD PSpice)

Page 42: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

42

OrCAD PSpice 使用繪圖描述模擬的方式 (1)

開始→程式集→ OrCAD family release 9.2.1 Lite Edition →Capture Lite Edition

Page 43: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

43

OrCAD PSpice 使用繪圖描述模擬的方式 (2)

File→New→Project

Page 44: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

44

OrCAD PSpice 使用繪圖描述模擬的方式 (3)

Location → 輸入 C:\OrCAD pspice\project\example1 →OK ( 目錄要先存在 )

Create a blank project

Page 45: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

45

OrCAD PSpice 使用繪圖描述模擬的方式 (4)

Project Manager and Schematic page Editor

Page 46: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

46

OrCAD PSpice 使用繪圖描述模擬的方式 (5)

繪圖及模擬 : 1. 取元件 ~ 直流電源 Place → Part → Begin Search → VDC

→ VDC/source.olb

Page 47: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

47

OrCAD PSpice 使用繪圖描述模擬的方式 (6)

繪圖及模擬 : 1. 取元件 ~ 電阻 Place → Part → Begin Search → R/ana

log.olb →ok (Ctrl + R 轉動用 )

Page 48: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

48

OrCAD PSpice 使用繪圖描述模擬的方式 (7)

繪圖及模擬 : 1. 取元件 ~ 地線 Place → Ground, libraries →SOURCE,

Symbol →0 →ok

Page 49: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

49

OrCAD PSpice 使用繪圖描述模擬的方式 (8)

繪圖及模擬 : 2. 開始連線 Place → Wire

Page 50: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

50

OrCAD PSpice 使用繪圖描述模擬的方式 (9)

繪圖及模擬 : 3. 改變元件的屬性 ~ 電源 在該 VDC 元件以 mouse 左鍵連續按兩

Page 51: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

51

OrCAD PSpice 使用繪圖描述模擬的方式 (10)

繪圖及模擬 : 3. 改變元件的屬性 ~ 電阻 改變電阻的屬性之方法與改變電源的屬

性類似

Page 52: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

52

OrCAD PSpice 使用繪圖描述模擬的方式 (11)

繪圖及模擬 : 4. 加入元件節點編號 Place → Net Alias →1 →Ok → 放置電路中

Page 53: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

53

OrCAD PSpice 使用繪圖描述模擬的方式 (12)

繪圖及模擬 : 5. 電路圖存檔 File →Save →OrCAD Capture 對話盒

→ OK

Page 54: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

54

OrCAD PSpice 使用繪圖描述模擬的方式 (13)

繪圖及模擬 : 6. 產生網路連接表 Letlist PSpice →Create Netlist 繪圖及模擬 : 7. 觀看網路連接表 PSpice → View Netlist

Page 55: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

55

OrCAD PSpice 使用繪圖描述模擬的方式 (14)

繪圖及模擬 : 8. 開始模擬 PSpice →New Simulation profile

Page 56: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

56

OrCAD PSpice 使用繪圖描述模擬的方式 (15)

設定 Analysis type

Page 57: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

57

OrCAD PSpice 使用繪圖描述模擬的方式 (16)

PSpice →Run

Page 58: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

58

OrCAD PSpice 使用繪圖描述模擬的方式 (17)

View →output file ( 模擬的輸出之結果 )

Page 59: 課程名稱 :  積體電路分析與模擬 (Analysis and Simulation of Integrated Circuits)

59

Question & Answer