0% found this document useful (0 votes)
74 views48 pages

HSPICE Simulation Overview and Tutorial

The document provides an introduction to Hspice circuit simulation software. It discusses SPICE simulation basics like netlists, analysis types, sources, and simulation flow. It also covers Hspice specific topics such as input controls, output files, and using the graphical interface for viewing output waveforms. The goal is to help users understand how to set up, run, and analyze simulations using the Hspice circuit simulator.

Uploaded by

Mitchell Lee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views48 pages

HSPICE Simulation Overview and Tutorial

The document provides an introduction to Hspice circuit simulation software. It discusses SPICE simulation basics like netlists, analysis types, sources, and simulation flow. It also covers Hspice specific topics such as input controls, output files, and using the graphical interface for viewing output waveforms. The goal is to help users understand how to set up, run, and analyze simulations using the Hspice circuit simulator.

Uploaded by

Mitchell Lee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Introduction to Hspice

2011/10/28 Advisor: Ke-Horng Chen Speaker: Wei-Chung Chen

LAB 912

Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Graphic tools

Reference: CIC SPICE Note


LAB 912 2

SPICE Overview

Simulation:

Predicting the Circuit/System Characteristic after manufacturing

Circuit simulation:

Physical model Circuit structure Simulation Program with Integrated Circuit Emphasis SPICE tools (HSPICE, Spectre, PSPICE) Steady-State, Transient, and Frequency Domains

SPICE:

LAB 912

Basic Flow for SPICE

LAB 802

Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Simulation tool & Graphic tools

LAB 912

HSPICE Data Flow


1. Write circuit

3. Awaves tools

2. Simulation the circuit

LAB 912

Net Structure ( SPICE Preferred )

LAB 912

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 8

Element and Node Naming Conventions (Cont.)

LAB 912

Unit and Scale Factors

LAB 912

10

Input Control Statement: .option

LAB 912

11

Input Control Statement: .option (cont)


.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 12

Input Control Statement: .temp

.Temp statement:

No Specifying Defaulting 25C for HSPICE

LAB 912

13

Library Input Statement

LAB 912

14

Input Control Statement: .alter

LAB 912

15

Input Control Statement: .alter (contd)

LAB 912

16

Description of MOSFET

LAB 912

17

Hierarchical Circuit

LAB 912

18

Hierarchical Circuit (cont)

LAB 912

19

Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Input and Controls Simulation tool & Graphic tools

LAB 912

20

DC, AC Sources

LAB 912

21

Transient Sources

Transient sources statement:


Pulse (PULSE Function) Sinusoidal (SIN Function) Exponential (EXP Function) Piecewise Linear (PWL Function)

LAB 912

22

Pulse Source Function

LAB 912

23

Sinusoidal Source Function

LAB 912

24

Piecewise Linear Source Function

LAB 912

25

Voltage and Current Controlled Elements

LAB 912

26

Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Simulation tool & Graphic tools

Reference: CIC Note LAB 912

27

Analysis Types & Orders

LAB 912

28

DC Sweep & DC Small Signal Analysis

LAB 912

29

DC Sweep & DC Small Signal Analysis (cont)

LAB 912

30

AC Sweep & AC Small Signal Analysis

LAB 912

31

AC Sweep & AC Small Signal Analysis (cont)

LAB 912

32

Transient Analysis

LAB 912

33

Transient analysis (Cont.)

LAB 912

34

Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Simulation tool & Graphic tools

Reference: CIC Note LAB 912

35

Output Files Summary (HSPICE)

LAB 912

36

Output Statement

LAB 912

37

Content
SPICE Overview Simulation Input and Controls Sources Analysis Types Simulation Output and Controls Simulation tool & Graphic tools

Reference: CIC Note LAB 912

38

Simulation tool-Hspice
Open [Link]
()

Open [Link]
()

(1st step)

LAB 912 39

Graphic tools-Awaves
menu
(1st step) ()

Tool button

Waveform data

waveform
LAB 912 40

Result browser
Step1: Analysis type Step2: Instant name and hierarchy Set X axis
Step5:
LAB 912 41

Design name
Step3: Step4:

Data name and data type

Awaves Windows

log

42

Example
(1) [Link] 1 (2) [Link]- (1) [Link] [Link] DC operation point (3) [Link]-dc (2) [Link] ac.ac0 Frequency Analysis (4) [Link]-

(3) (4)

[Link] [Link]

dc.sw0 tr.tr0

DC Sweep Transient response

LAB 912

43

[Link]

(1)concluded (2)mos

(2) (3) (4) (5) (6) (7) (8)

(3)Ids (4)VGSVDS (5)VTH (6)VGS-VTH (7)gm (8)1/rDS


LAB 912

(1)

44

[Link] / [Link] / [Link]


[Link] [Link] [Link]

VDrain VGate

VIN AC 1V

VOUT

VSS
LAB 912

VSS

45

[Link]
VDD

a
inv0

b
inv1

MP0 MN0

d Cout

VSS

LAB 912

46

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)
.tran 1n 100u .tran 1n 100u UIC .tran 1n 100u sweep temp -40 120 20
LAB 912 47

Transient Analysis:

Thanks for your attention!

LAB 912

48

Common questions

Powered by AI

SPICE simulations facilitate different analysis types including DC Sweep & DC Small Signal Analysis, AC Sweep & AC Small Signal Analysis, and Transient Analysis. DC Sweep Analysis is used to assess the circuit's response to varying DC voltages or currents, essential for linear and non-linear circuit designs. AC Sweep Analysis evaluates the frequency response of circuits, crucial for understanding bandwidth and signal integrity in amplifiers and filters. Transient Analysis examines time-domain circuit behaviors, important for observing the performance of circuits like digital pulse circuits over a period .

AC Sweep Analysis in SPICE allows the evaluation of a circuit's frequency response, providing information on gain and phase over a spectrum of frequencies, useful for designing filters and amplifiers. Conversely, DC Sweep Analysis focuses on static characteristics by sweeping DC voltages to capture a range of operating points, essential for characterizing nonlinear components and stability. These analyses provide distinct outputs, with AC Sweep suited for dynamic applications and DC Sweep for stationary characteristics .

Hierarchical circuit definition in SPICE allows designers to manage complex circuits by dividing them into smaller sub-circuits or blocks, promoting modularity and reuse. This approach simplifies the design process, as each sub-circuit can be individually tested and verified before integration into the larger system, ensuring better manageability and reduced error propagation .

Awaves offers interactive visualization of simulation data from HSPICE, allowing users to examine waveforms and effectively analyze circuit behaviors. It provides features like zooming, panning, and changing axis scales, aiding in detailed examination of results to identify and resolve design issues. The tool facilitates better communication of analysis outcomes through clear visual outputs, beneficial for refining design specifications .

Transient source functions in SPICE simulations model time-dependent voltage or current sources to analyze circuit responses over time. These are implemented using specific functions like PULSE for rectangular pulses, SIN for sinusoidal waveforms, and EXP for exponential changes. This allows designers to simulate real-life signal behavior such as pulses in digital circuits or sinusoidal signals in communication systems .

The .temp statement in HSPICE determines the simulation's operating temperature, with a default of 25ºC for most scenarios unless specified otherwise. The choice of default settings depends on the typical operating conditions of the circuit's environment and application-specific requirements. For temperature-sensitive designs, specifying multiple temperatures is essential to understand the circuit's performance variations under different thermal conditions .

The gear method in HSPICE prioritizes simulation stability, making it suitable for analog circuits and switching regulators where small numerical instabilities might lead to significant erroneous trends. In contrast, the trap method provides higher accuracy and shorter simulation times, which is beneficial for digital CMOS circuits requiring precise timing analyses. The choice between these methods affects the balance between computation time and result fidelity .

Using .GLOBAL statements in SPICE facilitates the sharing of common nodes like power supply lines (e.g., VDD, VSS) across different parts of a circuit, ensuring consistent reference points. This is especially useful in hierarchical designs where multiple sub-circuits may need to interact with a global power node. Improper use, however, can lead to unintended connections, affecting circuit behavior .

Voltage and current-controlled elements in SPICE, like controlled voltage sources (VCCS, VCVS) or controlled current sources (CCCS, CCVS), enable complex interactions by allowing parameters of one part of the circuit to affect another. They improve simulation accuracy by modeling real-world dependencies such as those found in amplifiers, thus providing more realistic outcomes by imitating feedback and dependency relationships prevalent in integrated circuits .

The .option control statement in HSPICE customizes simulation parameters to optimize for accuracy, speed, or stability depending on circuit type. For example, setting .option method = gear achieves a stable simulation suitable for analog and switching regulator circuits. Conversely, .option method = trap prioritizes accuracy with reduced simulation time, ideal for CMOS digital circuits. The chosen method affects how simulations handle numerical integration, impacting both stability and result precision .

You might also like