Introduction to HSPICE - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

Introduction to HSPICE

Description:

Title: HSPICE Author: Terence Shieh Last modified by: Terence Created Date: 12/29/1997 6:17:52 AM Document presentation format: A4 (210x297 ) – PowerPoint PPT presentation

Number of Views:61
Avg rating:3.0/5.0
Slides: 16
Provided by: Teren153
Category:

less

Transcript and Presenter's Notes

Title: Introduction to HSPICE


1
Introduction to HSPICE
  • Speaker Shang-Jyh Shieh
  • Email d8542015_at_ccunix.ccu.edu.tw
  • TEL Lab 7354

2
PRELIMINARY
  • Appending the following line in your .cshrc
    file source
  • /usr/meta/cur/bin/cshrc.meta
  • HSPICE model path
  • /vlsi-data/eda_models/hspice/tsmc035/logsp35.l (T
    SMC 0.35um)
  • /vlsi-data/eda_models/hspice/tsmc06/logic06.l
    (TSMC 0.6um)
  • /vlsi-data/eda_models/hspice/tsmc08/model0.8t
    (TSMC 0.8um)
  • HSPICE online document
  • /usr/meta/cur/docs/hspiceManual.pdf

3
EXAMPLE OF INPUT (.sp)
  • Include files
  • .INC and2.subckt
  • Library Call
  • .LIB /vlsi-data/eda_models/hspice/tsmc035/logsp35
    .l TT
  • Netlist
  • mp1 1 2 vdd! vdd! pch w2.8u l0.6u
  • mn1 1 2 gnd! gnd! nch w1.4u l0.6u
  • C1 3 gnd! 250fF IC3.3V
  • R2 2 3 100meg
  • Output Control
  • .meas tran Tr TRIG v(in) val3.3/2' TD10n'
    RISE1
  • TARG v(out) val3.3/2'
    RISE1
  • .meas tran Tf TRIG v(in) val3.3/2' TD10n'
    FALL1
  • TARG v(out) val3.3/2'
    FALL1
  • .meas Tdelay param'(TrTf)/2'
  • free format / case insensitive

4
ELEMENTS (I)
  • Independent Voltage / Current Source (DC)

n1
n3
Idc n3 n4 20m
3.3V
20mA
Vdc n1 n2 3.3
n4
n2
tpw
v2
v1
tf
tr
tper
td
Pulse Vpul n1 n2 pulse( v1 v2 td tr tf tpw tper
)
5
ELEMENTS - MOSFET (I)
  • MOSFET
  • Mxxx D G S B MODEL Wx Lx ASx ADx PSx PDx

6
ELEMENTS - MOSFET (II)
  • Basic Knowledge
  • LDD Lightly Doped Drain

HDIF
LDIF
7
ELEMENTS - MOSFET (III)
  • Basic Knowledge
  • ACM Area Calculation Method ACM3

GEO2
GEO1
GEO3
LDIF
HDIF
HDIF
W
D
D
D
S
S
S
AD2HDIFW
ADHDIFW
AS2HDIFW
ADHDIFW
ASHDIFW
ASHDIFW
PD4HDIFW
PS4HDIFW
PD2HDIF
PD2HDIF
PS2HDIF
PS2HDIF
  • Default GEO0

8
ELEMENTS - MOSFET (IV)
vdd
vdd
ia
zn
ib
n1
gnd
Example mp1 zn ia vdd vdd pch w1.4u
l0.6u GEO1 mp2 zn ib vdd vdd pch w1.4u
l0.6u GEO1 mn1 zn ib n1 gnd nch w1.4u
l0.6u GEO2 mn2 n1 ia gnd gnd nch w1.4u
l0.6u GEO1
9
SUBCIRCUIT
  • subcircuit definition
  • example

.subckt XOR3 5 8 6 1 2 3 99
A B C s sb vds vss mp1 1 2 3 3
pch w1.4u l0.6u mn1 1 2 99 99 nch w1.4u
l0.6u mp2 2 1 3 3 pch w1.4u
l0.6u mn2 2 1 99 99 nch w1.4u l0.6u mn3 7
10 1 99 nch w1.4u l0.6u mn4 5 4 7 99
nch w1.4u l0.6u mn5 11 6 1 99 nch w1.4u
l0.6u mn6 9 8 7 99 nch w1.4u
l0.6u mn7 7 6 2 99 nch w1.4u
l0.6u mn8 5 8 11 99 nch w1.4u
l0.6u mn9 11 10 2 99 nch w1.4u
l0.6u mna 9 4 11 99 nch w1.4u
l0.6u xinvA 5 9 3 99 inv
wp_inv2.8u xinvB 8 4 3 99 inv
wp_inv2.8u xinvC 6 10 3 99 inv
wp_inv2.8u .ends
.subckt inv 2 3 1 4 wp_inv1.4u mp1 3 2
1 1 pch wwp_inv l0.6u mn1 3 2 4 4 nch
w1.4u l0.6u .ends
  • subcircuit call

xinvX 5 9 3 99 inv wp_inv2.8u xinvY 8
4 3 99 inv wp_inv2.8u xinvZ 6 10 3 99
inv wp_inv2.8u
10
MEASURE (I)
  • Trigger/Target
  • .MEAS TRAN T1 TRIG v(in) VAL2.5V TD20n'
    RISE1
  • TARG v(out) VAL2.5V
    FALL1
  • .MEAS TRAN T2 TRIG v(in) VAL2.5V TD20n'
    FALL1
  • TARG v(out) VAL2.5V
    RISE1
  • .MEAS Tpd PARAM'(T1T2)/2
  • AVG/RMS/MIN/MAX/PP
  • .MEAS TRAN vomax MAX v(out) FROM20n TO100
    n
  • .MEAS TRAN vomin MIN v(out) FROM20n
    TO100n
  • .MEAS TRAN vorms RMS v(out) FROM20n
    TO100n

11
MEASURE (II)
  • FIND/WHEN
  • .MEAS TRAN time1 WHEN v(out)2.5V FALLLAST
  • .MEAS TRAN time2 WHEN v(out)2.5V CROSS4
  • .MEAS TRAN v1 FIND v(out) AT50n

12
Power Measurement
  • Basic Power Meter
  • Practical Power Meter

REFERENCE Ry1e15 Cy1e-12
13
ANALYSIS TYPE
  • Transient analysis
  • .TRAN 0.1n 100n UIC
  • Operating Point
  • .OP
  • DC Sweep
  • .DC vin 1V 5V 0.5V
  • AC small signal analysis
  • .AC LIN 1K 100MEG
  • .AC DEC 1K 100MEG

14
OTHER COMMAND CARD
  • OPTION for Accuracy
  • .OPTIONs absmos1p absv1p relmos1u relv1p
    relvar1m
  • Temperature
  • .TEMP 100 ( default 25 degree C )
  • Graphic Output for AWAVES
  • Plot all input, output and internal nodes
  • .OPTIONs POST
  • Plot specified nodes
  • .OPTIONs POST PROBE
  • .PROBE v(1) V(2) V(3) V(4) V(5)

15
INVOKING HSPICE
  • Executing HSPICE
  • hspice myfile.sp Ã
  • Output files
  • .tr? graphic output files for awaves
  • .mt? measure output files (TXT file)
Write a Comment
User Comments (0)
About PowerShow.com