Vous êtes sur la page 1sur 44

HSPICE Introduction

Chieh-Hung Chen Po-Chiun Huang


July, 07, 2003

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.2

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.3

Circuit Simulations in IC Designs


Spec. Definition Simulation Functional Simulation

Layout Transistor Level Simulation

Behavioral Simulation

Logic/Gate Simulation

Simulation

Fabrication Analog/Digital Co-Simulation Testing

Transistor Level Simulation

Logic/Gate Simulation

Analog/Digital Co-Simulation

Product
CHCHEN @ 2005/3/16 HSPICE Introduction P.4

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.5

General Descriptions of SPICE


SPICE : Simulation Program with Integrated Circuit Emphasis
Developed by University of California Berkeley (UCB) Widely Adopted, Become Standard

Circuit Analysis Tool in Steady-State, Transient, and Frequency Domain Numerical Approach to Circuit Simulation
Circuit Node/Connections Define a Matrix

Must Rely on Sub-Models for Behavior of Various Circuit Elements


Simple (e.g. Resistor) Complex (e.g. MOSFET)

Different SPICE Tools (HSPICE, Spectre, PSPICE, ISPICE)


In Different Platform and Different Applications Originated from Berkeleys SPICE Program Support Common Original SPICE Syntax Algorithm are Similar The Control of Time Step, Equation Solver, and Convergence Control might be Different
CHCHEN @ 2005/3/16 HSPICE Introduction P.6

Numerical Analysis of Circuit Simulations


Solution of a Linear Network

CHCHEN @ 2005/3/16

HSPICE Introduction

P.7

Numerical Analysis of Circuit Simulations


Iteration and Approximation

CHCHEN @ 2005/3/16

HSPICE Introduction

P.8

General Descriptions of SPICE


You can Run SPICE Simulation with Knowledge of
Basic Electrical Circuit Theory (KVL, KCL, Ohms Law) Basic Semiconductor Electronic Circuit Theory (MOSFET, BJT)

You need the Following Knowledge to Get what you want


Basic Characteristics of Simulation Elements Familiar with the Function of Circuit You want to Simulate Understand the Relationship between Analysis Type and Circuit Specifications. Understand the Input Signal Characteristics Understand the Dependency of each Specifications and their Priority
CHCHEN @ 2005/3/16 HSPICE Introduction P.9

General Descriptions of SPICE

Input Stimulus

Analysis Type

Simulation Control

Simulation O/P Data Files TEST.DC0

Output Waveform With GUI Tools

Circuit Netlist Descriptions

TEST.AC0

TEST.TR0 TEST.SP

CHCHEN @ 2005/3/16

HSPICE Introduction

P.10

Basic Flow of SPICE Simulation


Setup Basic Circuit Structure and Parameter 1. Setup Working Condition
P/S, Temperature, Output Load,

2. Select Analysis Type and Input Stimulus


.OP / .DC / .TRAN / .AC SIN / PWL / PULSE

3. Setup Simulation Circuit Configurations 4. Select Output and Measurement Parameter


.PROBE / .MEAS / .PRINT

Execute Simulation Program Change Circuit Parameters N

Meet Spec. ? Y

Other Spec. ? N END

CHCHEN @ 2005/3/16

HSPICE Introduction

P.11

General Descriptions of SPICE


SPICE Netlist

CHCHEN @ 2005/3/16

HSPICE Introduction

P.12

General Descriptions of SPICE


SPICE Netlist

CHCHEN @ 2005/3/16

HSPICE Introduction

P.13

General Descriptions of SPICE


Simple Example

CHCHEN @ 2005/3/16

HSPICE Introduction

P.14

General Descriptions of SPICE


Node Naming
Number, Words, or Characteristics (e.g. C1, 99, NOD1) 0 (Zero) is Ground All Nodes are LOCAL Node Node Names can be GLOBAL by a .GLOBAL Statement

CHCHEN @ 2005/3/16

HSPICE Introduction

P.15

General Descriptions of SPICE


Elements and Node Naming

CHCHEN @ 2005/3/16

HSPICE Introduction

P.16

General Descriptions of SPICE


Units and Scale Factors

CHCHEN @ 2005/3/16

HSPICE Introduction

P.17

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Input Stimulus

Analysis Type

Simulation Control

Simulation O/P Data Files

Output Waveform With GUI Tools

Circuit Netlist Descriptions

TEST.DC0

TEST.AC0

TEST.TR0 TEST.SP

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.18

Elements & Device Models


Passive Devices
Resistor R Capacitor C Inductor L Mutual Inductor K

Active Devices
Diode D BJT Q JFET and MESFET J MOSFET M

Other Devices
Subcircuit X Behavoral E, G, H, F, B Transmission Lines T, U, O
CHCHEN @ 2005/3/16 HSPICE Introduction P.19

Elements & Device Models Passive Elements

CHCHEN @ 2005/3/16

HSPICE Introduction

P.20

Elements & Device Models BJT

CHCHEN @ 2005/3/16

HSPICE Introduction

P.21

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.22

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.23

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.24

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.25

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.26

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.27

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.28

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.29

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.30

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.31

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.32

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.33

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.34

Elements & Device Models MOSFET

CHCHEN @ 2005/3/16

HSPICE Introduction

P.35

Elements & Device Models MOSFET


High Order Effects

CHCHEN @ 2005/3/16

HSPICE Introduction

P.36

Elements & Device Models MOSFET Models


First Generation
Physical Analysis Models Geometry Coded into Model Equations LEVEL1, 2, & 3

Second Generation
Shift in Emphasis to Circuit Simulation Extensive Mathematical Conditioning Individual Device Parameters & Separate Geometry Parameters Shift Action to Parameter Extraction (Quality of Final Model is Heavily Dependent on Parameter Extraction) BSIM1, BSIM2

Third Generations
Scalable MOSFET Model First Derivative is Continuous Attempt to Re-introduce a Physical Basis while Maintaining Mathematical Fitness BSIM3, MOS-8
CHCHEN @ 2005/3/16 HSPICE Introduction P.37

Outline
Introduction SPICE Introduction

Input Stimulus

Analysis Type

Simulation Control

Simulation O/P Data Files

Output Waveform With GUI Tools

Circuit Netlist Descriptions

TEST.DC0

TEST.AC0

TEST.TR0 TEST.SP

General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.38

Input Source Type


Independent Source Elements
Pulse Input Function (PULSE) Sinusoidal Input Function (SIN) Exponential Input Function (EXP) Piecewise Linear Input Function (PWL) Others

Dependent Source Elements


Voltage-Control Voltage-Control Current-Control Current-Control Voltage Source (VCVS) Current Source (VCCS) Voltage Source (CCVS) Current Source (CCCS)

CHCHEN @ 2005/3/16

HSPICE Introduction

P.39

Independent Source Elements AC/DC

CHCHEN @ 2005/3/16

HSPICE Introduction

P.40

Independent Source Elements Transient


Independent Source Element : PULSE

CHCHEN @ 2005/3/16

HSPICE Introduction

P.41

Independent Source Elements Transient


Independent Source Element : SIN

CHCHEN @ 2005/3/16

HSPICE Introduction

P.42

Independent Source Elements Transient


Independent Source Element : PWL

CHCHEN @ 2005/3/16

HSPICE Introduction

P.43

Dependent Source Elements

CHCHEN @ 2005/3/16

HSPICE Introduction

P.44

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Input Stimulus

Analysis Type

Simulation Control

Simulation O/P Data Files

Output Waveform With GUI Tools

Circuit Netlist Descriptions

TEST.DC0

TEST.AC0

TEST.TR0 TEST.SP

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.45

Analysis Types
DC Operating Point Analysis
.OP .IC .NODESET

DC Sweep and Small Signal Analysis


.DC .TF

AC Sweep and Small Signal Analysis


.AC .NOISE .DOSTO

Transient Analysis
.TRAN .FOUR
CHCHEN @ 2005/3/16 HSPICE Introduction P.46

Analysis Types DC Operation Point

CHCHEN @ 2005/3/16

HSPICE Introduction

P.47

Analysis Types DC Sweep & Small Signal

CHCHEN @ 2005/3/16

HSPICE Introduction

P.48

Analysis Types AC Sweep & Small Signal

CHCHEN @ 2005/3/16

HSPICE Introduction

P.49

Analysis Types AC Sweep & Small Signal

CHCHEN @ 2005/3/16

HSPICE Introduction

P.50

Analysis Types Transient Analysis

CHCHEN @ 2005/3/16

HSPICE Introduction

P.51

Analysis Types Transient Analysis

CHCHEN @ 2005/3/16

HSPICE Introduction

P.52

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Input Stimulus

Analysis Type

Simulation Control

Simulation O/P Data Files


TEST.DC0

Output Waveform With GUI Tools

Circuit Netlist Descriptions

TEST.AC0

TEST.TR0 TEST.SP

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.53

Simulation Output & Control


Output Commands
.PRINT Statement : Print Numeric Analysis Results .PLOT Statement : Generates Low Resolution Plot in .lis file .PROBE Statement : Allows Save Output Variables only into the Graphic Data Files .MEAS Statement : Print Numeric Results of Measured Specifications

CHCHEN @ 2005/3/16

HSPICE Introduction

P.54

Simulation Output & Control

CHCHEN @ 2005/3/16

HSPICE Introduction

P.55

Simulation Output & Control

CHCHEN @ 2005/3/16

HSPICE Introduction

P.56

Simulation Output & Control .PRINT & .PLOT

CHCHEN @ 2005/3/16

HSPICE Introduction

P.57

Simulation Output & Control .PROBE

CHCHEN @ 2005/3/16

HSPICE Introduction

P.58

Simulation Output & Control .MEAS

CHCHEN @ 2005/3/16

HSPICE Introduction

P.59

Simulation Output & Control .MEAS


RISE, FALL, and DELAY

CHCHEN @ 2005/3/16

HSPICE Introduction

P.60

Simulation Output & Control .MEAS


AVG , RMS, MIN, MAX, PP

CHCHEN @ 2005/3/16

HSPICE Introduction

P.61

Simulation Output & Control .MEAS


FIND, WHEN

CHCHEN @ 2005/3/16

HSPICE Introduction

P.62

Simulation Output & Control .MEAS


Examples

CHCHEN @ 2005/3/16

HSPICE Introduction

P.63

Simulation Output & Control .MEAS


Examples

CHCHEN @ 2005/3/16

HSPICE Introduction

P.64

Simulation Output & Control .MEAS


Examples

CHCHEN @ 2005/3/16

HSPICE Introduction

P.65

Simulation Output & Control

CHCHEN @ 2005/3/16

HSPICE Introduction

P.66

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Input Stimulus

Analysis Type

Simulation Control

Simulation O/P Data Files

Output Waveform With GUI Tools

Circuit Netlist Descriptions

TEST.DC0

TEST.AC0

TEST.TR0 TEST.SP

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.67

Optimization

CHCHEN @ 2005/3/16

HSPICE Introduction

P.68

Optimization

CHCHEN @ 2005/3/16

HSPICE Introduction

P.69

Optimization Syntax

CHCHEN @ 2005/3/16

HSPICE Introduction

P.70

Optimization Example

CHCHEN @ 2005/3/16

HSPICE Introduction

P.71

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Input Stimulus

Analysis Type

Simulation Control

Simulation O/P Data Files

Output Waveform With GUI Tools

Circuit Netlist Descriptions

TEST.DC0

TEST.AC0

TEST.TR0 TEST.SP

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.72

Control Options

CHCHEN @ 2005/3/16

HSPICE Introduction

P.73

Convergence

CHCHEN @ 2005/3/16

HSPICE Introduction

P.74

Convergence

CHCHEN @ 2005/3/16

HSPICE Introduction

P.75

Convergence DC Operating Point

CHCHEN @ 2005/3/16

HSPICE Introduction

P.76

Convergence DC Operating Point

CHCHEN @ 2005/3/16

HSPICE Introduction

P.77

Convergence DC Operating Point

CHCHEN @ 2005/3/16

HSPICE Introduction

P.78

General Solution for Non-Convergence Problem

CHCHEN @ 2005/3/16

HSPICE Introduction

P.79

General Solution for Non-Convergence Problem

CHCHEN @ 2005/3/16

HSPICE Introduction

P.80

Numerical Algorithm in Transient Analysis

CHCHEN @ 2005/3/16

HSPICE Introduction

P.81

Numerical Algorithm in Transient Analysis

CHCHEN @ 2005/3/16

HSPICE Introduction

P.82

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Input Stimulus

Analysis Type

Simulation Control

Simulation O/P Data Files

O/P Waveform With GUI Tools

Circuit Netlist Descriptions

TEST.DC0

TEST.AC0

TEST.TR0 TEST.SP

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.83

Graphic Tools Awaves, StarWave

CHCHEN @ 2005/3/16

HSPICE Introduction

P.84

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.85

Summary
SPICE is a Circuit Simulator Performing Transistor Level Simulation. SPICE can Perform Accurate Simulation with Accurate Modeling of Each Component. Some Simulation Tricks
Try to Get more Knowledge about your Circuit to Reduce your Simulation Case and Simulation Time. DO NOT try to Run Large Circuit with SPICE Simulator. Run Different Type of Simulation to Confirm Your Simulation Results (DC/AC/TRAN) is Correct. Try to Use Behavioral Models or Macro Models in your First Simulation to Reduce Simulation Time. Avoid Try and Error Simulations. DO NOT Trust the Error Simulation Results There must be Something Wrong in Your Simulation Files.
CHCHEN @ 2005/3/16 HSPICE Introduction P.86

Outline
Introduction SPICE Introduction
General Descriptions Elements and Device Models Input Sources and Stimulus Analysis Types Simulation Output and Controls Optimization Control Options & Convergence Graphic Tools

Summary Reference
CHCHEN @ 2005/3/16 HSPICE Introduction P.87

Reference
HSPICE Training Course Material from , JULY, 2003 HSPICE Manual

CHCHEN @ 2005/3/16

HSPICE Introduction

P.88

Vous aimerez peut-être aussi