Circuit Elements

Flags

Some circuit elements have parameters that are flags. For instance, the independent current source has a load flag. A flag is active if it is used. Alternatively, you can assign a value to the flag. A value ≥ 0.5 means the flag is on, anything else means the flag is off. For example:

I1 N001 0 2m load=1

is the same as

I1 N001 0 2m load

Dynamic Nodes

Instead of naming a node directly, its name can be the result of an expression. For instance:

.param CONNECT = "N001"
I1 {CONNECT} 0 2m

is identical to

I1 N001 0 2m

This is mainly useful for library authors to make connectivity dependent on parameters.

List of Components

Component Syntax
Special functions

Axx n1 n2 n3 n4 n5 n6 n7 n8
+ <model> [extra parameters]

Arbitrary behavioral source Bxx n+ n- <V=... or I=...>
Capacitor

Cxx n+ n- <capacitance>
+ [ic=<val.>] [Rser=<val.>]
+ [Lser=<val.>] [Rpar=<val.>]
+ [Cpar=<val.>] [m=<val.>]

Diode Dxx A K <model> [area]
Voltage dependent voltage Exx n+ n- nc+ nc- <gain>
Current dependent current Fxx n+ n- <Vnam> <gain>
Voltage dependent current Gxx n+ n- nc+ nc- <transcond.>
Current dependent voltage Hxx n+ n- <Vnam> <transres.>
Independent current source Ixx n+ n- <current>
JFET transistor

Jxx D G S <model> [area] [off]
+[IC=<Vds,Vgs>] [temp=<T>]

Mutual inductance Kxx L1 L2 L3... <coeff.>
Inductance

Lxx n+ n- <inductance>
+ [ic=<val.>] [Rser=<val.>]
+ [Rpar=<val.>]
+ [Cpar=<val.>] [m=<val.>]

MOSFET transistor

Mxx D G S B <model> [L=<len>]
+ [W=<width>] [AD=<area>]
+ [AS=<area>] [PD=<perim>]
+ [PS=<perim>] [NRD=<value>]
+ [NRS=<value>] [off]
+ [IC=<Vds, Vgs, Vbs>
+ [temp=<T>]

Lossy transmission line Oxx L+ L- R+ R- <model>
Bipolar transistor

Qxx C B E [S] <model> [area]
+ [off] [IC=Vbe,Vce][temp=<T>]

Resistor Rxx n1 n2 <value>
Voltage controlled switch

Sxx n1 n2 nc+ nc- <model>
+ [on,off]

Lossless transmission line

Txx L+ L- R+ R- ZO=<value>
+ TD=<value>

Uniform RC-line

Uxx n1 n2 ncommon <model>
+ L=<len> [N=<lumps>]

Independent voltage source Vxx n+ n- <voltage>
Current controlled switch

Wxx n1 n2 <Vnam> <model>
+ [on,off]

Subcircuit Xxx n1 n2 n3... <subckt name>
MESFET or IGBT transistors

Zxx D G S model [area] [off]
+ [IC=<Vds,Vgs>]

Frequency Response Analyzer

@xx fstart=<val> fend=<val>
+ [delay=<val>] [oct=<val>]
+ [fcoarse=<val>] [nmax=<val>]
+ [[vpp0=<val>] [[vpp1=<val>]
+ [f0=<val>f1=<val>]]]
+ [tavgmin=<val>] [tsettle=<val>]
+ [rpar=<val>] [flist=<values>]
+ [acmag=<val>] [acphase=<val>]
+ [refnode=<netname>]
+ [intnode=<netname>]

Frequency Response Analysis Probe &xx o+ o- i+ i-