Product Documentation
HSPICE/SPICE Interface Reference
Product Version IC23.1, June 2023

4


HSPICE/SPICE Elements

This chapter contains the following topics:

HSPICE/SPICE Elements and Corresponding Library Cells

HSPICE/SPICE Element (Model Type) Library Cell

R

res

R

resistor

C

cap

C

capacitor

C

pcapacitor

L

inductor

T

tline

G

soi.vc

G

vcisrc

E

sov.vc

E

vcvsrc

F

soi.ic

H

sov.ic

V

sov

V

vsrc

I

soi

I

isrc

D

diode

D

pdiode

Q(npn)

npn

Q(npn)

npns

Q(pnp)

pnp

Q(pnp)

pnps

J(njf)

njfet

J(pjf)

pjfet

M(nmos)

ndepl

M(nmos)

nfet

M(nmos)

nmos

M(nmos)

nmosd

M(nmos)

nmose

M(nmos)

nsftn

M(nmos)

nxfr

M(pmos)

pdepl

M(pmos)

pfet

M(pmos)

pmos

M(pmos)

pmosd

M(pmos)

pmose

M(pmos)

psftn

M(pmos)

pxfr

HSPICE/SPICE Model and Element Parameters

Resistor

HSPICE/SPICE Element: Resistor Element Name: R Used by Library Cells: res, resistor
Terminal Name Level of Simulation Direction

A

Circuit

inputOutput

Y

Circuit

inputOutput

Element Parameter Data Type Units

r

float

ohms

tc

string

--

Capacitor

HSPICE/SPICE Element: Capacitor Element Named: C Used by Library Cells: cap, capacitor, pcapacitor
Terminal Name Level of Simulation Direction

Y

Circuit

inputOutput

gnd!

Circuit

inputOutput

Element Parameter DataType Units

c

float

farads

ic

string

--

Inductor

HSPICE/SPICE Element: Inductor Element Name: L Used by Library Cell: inductor
Terminal Name Level of Simulation Direction

PLUS

Circuit

inputOutput

MINUS

Circuit

inputOutput

Element Parameter Data Type Units

l

float

henrys

ic

string

--

Transmission Line

HSPICE/SPICE Element: Transmission Line Element Name: T Used by Library Cell: tline
Terminal Name Level of Simulation Direction

N1

Circuit

inputOutput

N2

Circuit

inputOutput

N3

Circuit

inputOutput

N4

Circuit

inputOutput

Element Parameter Data Type Units

z0

float

ohms

td

float

seconds

f

float

hertz

nl

float

unitless

ic

string

--

Diode

HSPICE/SPICE Element: Diode Element Name: D Model Type: D Used by Library Cell: diode
Terminal Name Level of Simulation Direction

PLUS

Circuit

inputOutput

MINUS

Circuit

inputOutput

Element Parameter Data Type Units

area

float

unitless

off

string

“off”

ic

string

--

Model Parameter Data Type Units

is

float

amperes

rs

float

ohms

n

float

unitless

tt

float

seconds

cjo

float

farads

vj

float

volts

m

float

unitless

eg

float

electronvolts

xti

float

unitless

kf

float

unitless

af

float

unitless

fc

float

unitless

ibv

float

amperes

bv

float

volts

BJT

HSPICE/SPICE Element: BJT Element Name: Q Model Type: NPN, PNP Used by Library Cells: npn, npns, pnp, pnps
Terminal Name Level of Simulation Direction

C

Circuit

inputOutput

B

Circuit

inputOutput

E

Circuit

inputOutput

SUB

Circuit

inputOutput

Element Parameter Data Type Units

area

float

unitless

off

string

“off”

ic

string

--

Model Parameter Data Type Units

is

float

amperes

bf

float

unitless

nf

float

unitless

ise

float

amperes

ne

float

unitless

br

float

unitless

nr

float

unitless

isc

float

amperes

nc

float

unitless

rb

float

ohms

rbm

float

ohms

re

float

ohms

rc

float

ohms

cje

float

farads

vje

float

volts

mje

float

unitless

tf

float

seconds

xtf

float

unitless

itf

float

amperes

ptf

float

degrees

cjc

float

farads

vjc

float

volts

mjc

float

unitless

xcjc

float

unitless

tr

float

seconds

cjs

float

farads

vjs

float

volts

mjs

float

unitless

xtb

float

unitless

eg

float

electronvolts

xti

float

unitless

kf

float

unitless

af

float

unitless

fc

float

unitless

vtf

float

volts

irb

float

amperes

ikr

float

amperes

var

float

volts

vaf

float

volts

ikf

float

amperes

JFET

HSPICE/SPICE Element: JFET Element Name: J Model Type: NJF, PJF Used by Libary Cells: njfet, pjfet
Terminal Name Level of Simulation Direction

D

Circuit

inputOutput

G

Circuit

inputOutput

S

Circuit

inputOutput

Element Parameter Data Type Units

area

float

unitless

off

string

“off”

ic

string

--

Model Parameter Data Type Units

vto

float

volts

beta

float

amperes/square volts

lambda

float

1/volts

rd

float

ohms

rs

float

ohms

cgs

float

farads

cgd

float

farads

pb

float

volts

is

float

amperes

kf

float

unitless

af

float

unitless

fc

float

unitless

MOSFET

HSPICE/SPICE Element: MOSFET Element Name: M Model Type: NMOS, PMOS Used by Library Cells: ndepl, nfet, nmos, mosd, nmose, nsftn, nxfr, pdepl, pfet, pmos, pmos, pmose, psftn, pxfr
Terminal Name Level of Simulation Direction

D

Circuit

inputOutput

G

Circuit

inputOutput

S

Circuit

inputOutput

B

Circuit

inputOutput

Element Parameter Data Type Units

l

float

meters

w

float

meters

ad

float

square meters

as

float

square meters

pd

float

meters

ps

float

meters

nrd

float

unitless

nrs

float

unitless

off

string

“off”

ic

string

--

Model Parameter Data Type Units

level

integer

unitless

vto

float

volts

kp

float

amperes/volts squared

gamma

float

volts**0.5

phi

float

volts

lambda

float

1/volts

rd

float

ohms

rs

float

ohms

cbd

float

farads

cbs

float

farads

is

float

amperes

pb

float

volts

cgso

float

farads/meter

cgdo

float

farads/meter

cgbo

float

farads/meter

rsh

float

ohms/square

cj

float

farads/square meter

mj

float

unitless

cjsw

float

farads/meter

mjsw

float

unitless

js

float

amperes/square meter

tox

float

meters

nsub

float

1/cubic centimeters

nss

float

1/square centimeters

nfs

float

1/square centimeters

tpg

integer

unitless

xj

float

meters

ld

float

meters

uo

float

square centimeters/volt seconds

ucrit

float

volts/centimeter

uexp

float

unitless

utra

float

unitless

vmax

float

meters/second

neff

float

unitless

xqc

float

unitless

kf

float

unitless

af

float

unitless

fc

float

unitless

delta

float

unitless

theta

float

1/volts

eta

float

unitless

kappa

float

unitless

Formatting Functions

This section describes the formatting functions included with the HSPICE/SPICE interface. The cells in the sample library that use these formatting functions are also listed. The syntax for these formatting functions is that of the nlpglobal functions, but the same parameters are also defined in the hspice formatter for hierarchical netlisting.

This section uses the following notations:

<...>

name in the brackets is an identifier

{...}

item(s) in braces can be repeated as many times as necessary

[...]

item(s) in brackets are optional

@name

value of property name is substituted

Element Formats

Below is the list of HSPICE/SPICE elements and their formats:

res

r<name> <A> <Y> @r @ns @tc1 @tc2 @scale @rsh ac=@ac m=@m  

The res cell in the sample library uses this format.

resistor

r<name> <PLUS> <MINUS> @r @ns @tc1 @tc2 @scale @rsh ac=@ac m=@m 

The resistor cell in the sample library uses this format.

cap

c<name> <Y> gnd! @c @ns @tc1 @tc2 @scale @cj ic=@ic m=@m  

The cap cell in the sample library uses this format.

capacitor

c<name> <PLUS> <MINUS> @c @ns @tc1 @tc2 @scale @cj ic=@ic m=@m 

The  capacitor and pcapacitor cells in the sample library use this format.

inductor

l<name> <PLUS> <MINUS> @l  @tc1 @tc2 @nt ic=@ic  

The inductor cell in the sample library uses this format.

transmission line

t<name> <N1> <N2> <N3> <N4> z0=@z0 td=@td f=@f nl=@nl ic=@ic

The tline cell in the sample library uses this format.

diode

d<name> <PLUS> <MINUS> <cellName> w=@w l=@l area=@area pj=@pj wp=@wp lp=@lp wm=@wm lm=@lm @off ic=@ic m=@m  

The diode and pdiode cells in the sample library use this format.

BJT

q<name>  <C> <B> <E> <SUB> <cellName> area=@area @off ic=@ic m=@m 

The npns and pnps cells in the sample library use this format.

JFET

j<name> <D> <G> <S> <cellName> area=@area w=@w l=@l @off ic=@ic m=@m  

The njfet and pjfet cells in the sample library use this format.

MOSfet

m<name> <D> <G> <S> <B> <cellName> w=@w l=@l ad=@ad as=@as pd=@pd ps=@ps nrd=@nrd nrs=@nrs off" off ic=@ic m=@m  

The ndepl, nfet, nsftn, pdepl, pfet, and psftn cells  in the sample library use this format.

NMOSfet

m<name>  <D> <G> <S> gnd! <cellName> w=@w l=@l ad=@ad as=@as pd=@pd ps=@ps nrd=@nrd nrs=@nrs off" off ic=@ic m=@m

The nxfr, nmos, nmosd, and nmose cells  in the sample library use this format.

NPN

q<name>  <C> <B> <E> vee! <cellName> area=@area off" off ic=@ic m=@m 

The npn cell in the sample library uses this format.

PMOSfet

"m<name> <D> <G> <S> vdd! <cellName> w=@w l=@l ad=@ad as=@as pd=@pd ps=@ps nrd=@nrd nrs=@nrs off" off ic=@ic m=@m

The pxfr, pmos, pmosd, and pmose cells in the sample library use this format.

PNP

"q<name>  <C> <B> <E> vcc! <cellName> @area off" off ic=@ic m=@m  

The pnp cell in the sample library uses this format.

Model Format

Below is the list of HSPICE/SPICE models and their model card format.

Diode

.model <cellName> d level=@level area=@area eg=@eg is=@is jsw=@jsw n=@n pj=@pj tlev=@tlev xti=@xti ibv=@ibv tcv=@tcv vb=@vb af=@af kf=@kf rs=@rs trs=@trs cjo=@cjo cjp=@cjp cta=@cta ctp=@ctp fc=@fc fcs=@fcs m=@m mjsw=@mjsw pb=@pb php=@php tt=@tt ef=@ef er=@er jf=@jf jr=@jr w=@w l=@l tox=@tox wm=@wm lm=@lm wp=@wp lp=@lp xm=@xm xp=@xp xoi=@xoi xom=@xom

The diode and pdiode cells in the sample library use this format.

BJT

.model <cellName> @modelType bf=@bf br=@br bulk=@bulk eg=@eg is=@is iss=@iss nf=@nf nr=@nr subs=@subs isc=@isc ise=@ise nc=@nc ne=@ne vaf=@vaf var=@var ikf=@ikf ikr=@ikr irb=@irb rb=@rb rbm=@rbm re=@re rc=@rc cjc=@cjc cje=@cje cjs=@cjs fc=@fc mjc=@mjc mje=@mje mjs=@mjs vjc=@vjc vje=@vje vjs=@vjs xcjc=@xcjc itf=@itf ptf=@ptf tf=@tf tr=@tr vtf=@vtf xtf=@xtf tlev=@tlev tre1=@tre1 tre2=@tre2 trb1=@trb1 trb2=@trb2 trc1=@trc1 trc2=@trc2 trm1=@trm1 trm2=@trm2 xtb=@xtb xti=@xti af=@af kf=@kf  

The  npn, npns, pnp, and pnps cells in the sample library use this format.

JFET

.model <cellName> @modelType level=%s" level a=@a alpha=@alpha beta=@beta d=@d gamds=@gamds lambda=@lambda w=@w l=@l wdel=@wdel ldel=@ldel tcv=@tcv vto=@vto eg=@eg gap1=@gap1 gap2=@gap2 is=@is n=@n ni=@ni xti=@xti af=@af kf=@kf rd=@rd rg=@rg rs=@rs trd=@trd trg=@trg trs=@trs cgd=@cgd cgs=@cgs fc=@fc m=@m pb=@pb capop=@capop ctd=@ctd cts=@cts tt=@tt bex=@bex lam1=@lam1 nchan=@nchan sat=@sat ucrit=@ucrit vbi=@vbi vgexp=@vgexp vp=@vp tlev=@tlev tlevc=@tlevc tpb=@tpb 

The njfet and pjfet cells in the sample library use this format.

MOSfet

.model<cellName> @modelType level=@level vto=@vto nss=@nss tpg=@tpg phi=@phi gamma=@gamma nsub=@nsub bulk=@bulk bex=@bex kp=@kp lambda=@lambda ecrit=@ecrit neff=@neff nfs=@nfs ucrit=@ucrit uexp=@uexp uo=@uo utra=@utra vmax=@vmax xj=@xj ld=@ld theta=@theta clm=@clm dns=@dns fds=@fds mbl=@mbl mob=@mob nu=@nu nwe=@nwe nwm=@nwm scm=@scm tcv=@tcv ufds=@ufds vbo=@vbo vfds=@vfds vsh=@vsh wic=@wic f1=@f1 mob=@mob af=@af kf=@kf cgbo=@cgbo cgdo=@cgdo cgso=@cgso cox=@cox meto=@meto tox=@tox wd=@wd capop=@capop cf1=@cf1 cf2=@cf2 cf3=@cf3 cf4=@cf4 cf5=@cf5 cf6=@cf6 alpha=@alpha is=@is js=@js jsw=@jsw vcr=@vcr cbd=@cbd cbs=@cbs cj=@cj cjsw=@cjsw mj=@mj mjsw=@mjsw pb=@pb php=@php ldif=@ldif rd=@rd rs=@rs rsh=@rsh trd=@trd trs=@trs delta=@delta kappa=@kappa eta=@eta

The ndepl, nfet, nmos, nmosd, nmose, nsftn, nxfr, pdepl, pfet, pmos, pmosd, pmose, psftn, and pxfr cells in the sample library use this format.


Return to top
 ⠀
X