Circuit elements (device instances)
Each element in the circuit is a device instance specified by an instance line that contains:
- the element instance name,
- the circuit nodes to which the element is connected,
- and the values of the parameters that determine the electrical characteristics of the element.
The first letter of the element instance name specifies the element type. The format for the ngspice element types is given in the following manual chapters. In the rest of the manual, the strings XXXXXXX, YYYYYYY, and ZZZZZZZ denote arbitrary alphanumeric strings.
For example, a resistor instance name must begin with the letter R and can contain one or more characters. Hence, R, R1,** **RSE, ROUT, and R3AC2ZY are valid resistor names. Details of each type of device are supplied in a following section 3. Table 2.1 lists the element types available in ngspice, sorted by their first letter.
First letter
|
Element description
|
Comments, links
|
A
|
XSPICE code model
|
|
B
|
Behavioral (arbitrary) source
|
|
C
|
Capacitor
|
|
D
|
Diode
|
|
E
|
Voltage-controlled voltage source (VCVS)
|
|
F
|
Current-controlled current source (CCCs)
|
linear (4.2.3)
|
G
|
Voltage-controlled current source (VCCS)
|
|
H
|
Current-controlled voltage source (CCVS)
|
linear (4.2.4)
|
I
|
Current source
|
|
J
|
Junction field effect transistor (JFET)
|
|
K
|
Coupled (Mutual) Inductors
|
|
L
|
Inductor
|
|
M
|
Metal oxide field effect transistor (MOSFET)
|
|
N
|
Numerical device for GSS
|
|
O
|
Lossy transmission line
|
|
P
|
Coupled multiconductor line (CPL)
|
|
Q
|
Bipolar junction transistor (BJT)
|
|
R
|
Resistor
|
|
S
|
Switch (voltage-controlled)
|
|
T
|
Lossless transmission line
|
|
U
|
Uniformly distributed RC line
|
|
V
|
Voltage source
|
|
W
|
Switch (current-controlled)
|
|
X
|
Subcircuit
|
|
Y
|
Single lossy transmission line (TXL)
|
|
Z
|
Metal semiconductor field effect transistor (MESFET)
|
Table 2.1: ngspice element types