package parts "Types of devices supported by SPICELib" annotation ( Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

Device Models



Device types

The following summary table lists all the device types supported by SPICELib. Each device type is described in detail in the model documentation.


Table 1. Analog device summary.
Package Model Device type
parts Pin Electric connector
parts.breakout Ground '0' ground
parts.breakout Rbreak Resistor
parts.breakout Cbreak Capacitor
parts.breakout Lbreak Inductor
parts.breakout PSPICE_diode SPICE2 pspice DIODE
parts.breakout Spice2MOS1 SPICE2 level1 n-channel MOSFET
parts.breakout Spice2MOS1P SPICE2 level1 p-channel MOSFET
parts.source V Independent voltage source
parts.source VEXP Independent voltage source & EXP stimulus
parts.source VPULSE Independent voltage source & PULSE stimulus
parts.source VPWL Independent voltage source & PWL stimulus
parts.source VSIN Independent voltage source & SIN stimulus
parts.source VCONST Independent voltage source & CONST stimulus
parts.source I Independent current source
parts.source IEXP Independent current source & EXP stimulus
parts.source IPULSE Independent current source & PULSE stimulus
parts.source IPWL Independent current source & PWL stimulus
parts.source ISIN Independent current source & SIN stimulus
parts.source ICONST Independent current source & CONST stimulus
parts.source E Linear Voltage-Controlled Current Source
parts.source F Linear Current-Controlled Current Source
parts.source G Linear Voltage-Controlled Current Source
parts.source H Linear Current-Controlled Voltage Source


Device models are composed of three formulations: Each model formulation is described by its own set of equations and variables.

Setting initial conditions

Two procedures are provided by SPICELib to specify the initial conditions: The IC property allows the user to associate the initial condition with a device, while the IC1 and IC2 pseudocomponents allow the association to be with a node or node pair.

Table 2. Pseudocomponents that specify initial conditions.
Package Model Device type
parts.special IC1 A one-pin symbol that allows you to set the initial condition on a net for both small-signal and transient bias points.
parts.special IC2 A two-pin symbol that allows you to set initial condition between two nets.

"), Icon(Rectangle(extent=[-80, 60; 80, -60], style(color=43, thickness=2)), Text (extent=[-70, 30; 80, -24], string="parts"))); end parts;