4
HSPICE/SPICE Elements
This chapter contains the following topics:
-
HSPICE/SPICE Elements and Corresponding Library Cells
This section lists the HSPICE/SPICE elements and the corresponding cells in the sample library. -
HSPICE/SPICE Model and Element Parameters
This section has information about the library cells, terminal names, element and model parameters, for each HSPICE/SPICE element. -
Formatting Functions
This section has information about the formatting functions for each HSPICE/SPICE element.
HSPICE/SPICE Elements and Corresponding Library Cells
| HSPICE/SPICE Element (Model Type) | Library Cell |
|---|---|
HSPICE/SPICE Model and Element Parameters
Resistor
| Terminal Name | Level of Simulation | Direction |
|---|---|---|
| Element Parameter | Data Type | Units |
|---|---|---|
Capacitor
| Terminal Name | Level of Simulation | Direction |
|---|---|---|
| Element Parameter | DataType | Units |
|---|---|---|
Inductor
| Terminal Name | Level of Simulation | Direction |
|---|---|---|
| Element Parameter | Data Type | Units |
|---|---|---|
Transmission Line
| Terminal Name | Level of Simulation | Direction |
|---|---|---|
| Element Parameter | Data Type | Units |
|---|---|---|
Diode
| Terminal Name | Level of Simulation | Direction |
|---|---|---|
| Element Parameter | Data Type | Units |
|---|---|---|
| Model Parameter | Data Type | Units |
|---|---|---|
BJT
| Terminal Name | Level of Simulation | Direction |
|---|---|---|
| Element Parameter | Data Type | Units |
|---|---|---|
| Model Parameter | Data Type | Units |
|---|---|---|
JFET
| Terminal Name | Level of Simulation | Direction |
|---|---|---|
| Element Parameter | Data Type | Units |
|---|---|---|
| Model Parameter | Data Type | Units |
|---|---|---|
MOSFET
| Terminal Name | Level of Simulation | Direction |
|---|---|---|
| Element Parameter | Data Type | Units |
|---|---|---|
| Model Parameter | Data Type | Units |
|---|---|---|
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:
|
item(s) in braces can be repeated as many times as necessary |
|
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