model Pin extends src.INTERFACE.Pin; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

Pin connector


Figure 1. Pin.

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

Pin model is conceived to allow the simultaneous connection of the three formulation terminal variables. The connector variables are shown in Table 1.

AC small-signal currents and voltages (complex numbers) are represented in rectangular coordinates (i.e, real and imaginary).

Table 1. Pin connector variables.
DC AC TRAN
Voltage (across) vDC vAC_Re , vAC_Im vTran
Current (through) iDC iAC_Re , iAC_Im iTran


Sign convention: the current is positive when flows into the pin.

")); end Pin; package breakout model Ground extends src.BREAKOUT.Ground; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

Ground model


Figure 1. Ground.

Node


Table 1. Instantiation of Pin class
Name Comment
p (+) node


Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


None.

Variables of interest to the library user


None.

Constitutive relations


Table 3. Model formulations.
Static p.vDC=0
AC small-signal p.vAC_Re=0
p.vAC_Im=0
Large signal p.vTran=0


")); end Ground; model Rbreak extends src.BREAKOUT.Rbreak; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

Rbreak - Linear resistor


Figure 1. Resistor.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


(+) and (-) nodes define the polarity when the resistor has a positive voltage across it. The voltage across the component is therefore defined as the (+) node voltage minus the (-) node voltage.

Positive current flows from the (+) node through the resistor to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.
pinP_vAC_mag AC small-signal voltage. Magnitude.
pinP_vAC_mag_dB AC small-signal voltage. Magnitude (dB).
pinP_vAC_phase AC small-signal voltage. Phase (deg).


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.
pinN_vAC_mag AC small-signal voltage. Magnitude.
pinN_vAC_mag_dB AC small-signal voltage. Magnitude (dB).
pinN_vAC_phase AC small-signal voltage. Phase (deg).


Parameters


Table 4. Resistor parameters.
Name Type Default Description
R SI.Resistance 1000 Resistance value
HIDDEN_COMPONENT Boolean false See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the resistor.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.
vAC_mag AC small-signal voltage. Magnitude.
vAC_mag_dB AC small-signal voltage. Magnitude (dB).
vAC_phase AC small-signal voltage. Phase (deg).


Table 6. Current flowing through the resistor.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Constitutive relations


Table 7. Model formulations.
Static vDC = R * iDC
AC small-signal vAC_Re = R * iAC_Re
vAC_Im = R * iAC_Im
Large signal vTran = R * iTran


")); end Rbreak; model Cbreak extends src.BREAKOUT.Cbreak; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

Cbreak - Linear capacitor


Figure 1. Capacitor.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


(+) and (-) nodes define the polarity when the capacitor has a positive voltage across it. The voltage across the component is therefore defined as the (+) node voltage minus the (-) node voltage.

Positive current flows from the (+) node through the capacitor to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 4. Capacitor parameters.
Name Type Default Description
C SI.Capacitance 1e-9 Capacitance value
IC SI.Voltage 0 Initial voltage across the capacitor during the bias point calculation (see analyses.OP model documentation).
Note: the initial voltage across the capacitor can also be set by using the IC1 part if the capacitor is connected to ground or by using the IC2 part for setting the initial conditions between two nodes (these parts can be found in special package).
IC_ENABLED Boolean false The capacitor parameter IC_ENABLED enables or disables the IC property. It allows distinguishing between the cases when IC is intentionally set to zero and those cases when the IC property is not enabled.


Variables of interest to the library user


Table 5. Voltage across the capacitor.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the capacitor.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Table 7. Global variables.
Name Description
freq AC small-signal frequency.


Constitutive relations


Table 8. Model formulations.
Static iDC = 0
AC small-signal vAC_Re = iAC_Im / 2 * pi * freq * C
vAC_Im = - iAC_Re / 2 * pi * freq * C
Large signal C * der(vTran) = iTran


")); end Cbreak; model Lbreak extends src.BREAKOUT.Lbreak; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

Lbreak - Linear inductor


Figure 1. Inductor.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


(+) and (-) nodes define the polarity when the inductor has a positive voltage across it. The voltage across the component is therefore defined as the (+) node voltage minus the (-) node voltage.

Positive current flows from the (+) node through the inductor to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 4. Inductor parameters.
Name Type Default Description
L SI.Inductance 1e-9 Inductance value
IC SI.Current 0 Initial current across the inductor during the bias point calculation (see analyses.OP model documentation).
IC_ENABLED Boolean false The inductor parameter IC_ENABLED enables or disables the IC property. It allows distinguishing between the cases when IC is intentionally set to zero and those cases when the IC property is not enabled.


Variables of interest to the library user


Table 5. Voltage across the inductor.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the inductor.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Table 7. Global variables.
Name Description
freq AC small-signal frequency.


Constitutive relations


Table 8. Model formulations.
Static vDC = 0
AC small-signal vAC_Re = iAC_Im * 2 * pi * freq * L
vAC_Im = - iAC_Re * 2 * pi * freq * L
Large signal L * der(iTran) = vTran


")); end Lbreak; model PSPICE_diode extends src.BREAKOUT.PSPICE_diode; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

PSPICE_diode - Pspice diode


Figure 1. Diode.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


(+) and (-) nodes define the polarity when the diode has a positive voltage across it. The voltage across the component is therefore defined as the (+) node voltage minus the (-) node voltage.

Positive current flows from the (+) node through the diode to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 4. Diode parameters.
Name Type Default Description
IS SI.Current 1e-14 Saturation current.
RS SI.Resistance 10 Ohmic Resistance.
N Real 1 Emission coefficient.
TT SI.Time 0 Transit time.
CJ0 SI.Capacitance 1e-6 Zero-bias junction capacitance.
VJ SI.Voltage 1 Junction potential.
M Real 0.5 Grading coefficient.
FC Real 0.5 Coefficient for forward-bias depletion capacitance formula.
BV SI.Voltage 1e40 Reverse breakdown voltage (positive number).
IKF SI.Current -1 High injection knee current.
ISR SI.Current 1e-14 Recombination current.
NR Real 1 Emission coefficient for ISR.
IBV SI.Current 1e-3 Reverse breakdown current (positive number).


Variables of interest to the library user


Table 5. Voltage across the diode.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the diode.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Table 7. Global variables.
Name Description
scaleGMIN Scale factor of the GMIN stepping algorithm for bias point calculation.
GMIN Conductance in parallel with the pn junction.
freq AC small-signal frequency.


References


Massobrio, G. and Antognetti, P. (1993): Semiconductor Device Modeling with SPICE. McGraw-Hill, Inc.
Model's equations can be found in src package documentation.

")); end PSPICE_diode; model Spice2MOS1 extends src.BREAKOUT.Spice2MOS1; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

Spice2MOS1 - SPICE2 Level1 n-channel MOSFET


Figure 1. n-channel MOSFET.

Nodes


Table 1. Instantiations of Pin class.
Name Description
d drain node
s source node
g gate node
b bulk node


Table 2. drain node variables.
Name Description
d.vDC Static model.
d.vTran Large-signal voltage.
d.vAC_Re AC small-signal voltage. Real part.
d.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) source node variables.
Name Description
s.vDC Static model.
s.vTran Large-signal voltage.
s.vAC_Re AC small-signal voltage. Real part.
s.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (-) gate node variables.
Name Description
g.vDC Static model.
g.vTran Large-signal voltage.
g.vAC_Re AC small-signal voltage. Real part.
g.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) bulk node variables.
Name Description
b.vDC Static model.
b.vTran Large-signal voltage.
b.vAC_Re AC small-signal voltage. Real part.
b.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. p-channel MOSFET parameters.
Name Type Default Description
AD SI.Area 1e-8 Drain junction area.
AS SI.Area 1e-8 Source junction area.
CGB0 Real 2e-10 Gate-bulk overlap capacitance perimeter (farad/meter).
CGD0 Real 4e-11 Gate-drain overlap capacitance perimeter (farad/meter).
CGS0 Real 4e-11 Gate-source overlap capacitance perimeter (farad/meter).
CJ Real 2e-4 Capacitance at zero-bias voltage per square meter of area (farad/meter2).
CJSW Real 1e-9 Capacitance at zero-bias voltage per meter of perimeter (farad/meter).
FC Real 0.5 Substrate-junction forward-bias coefficient.
GAMMA Real 0.526 Body-effect parameter.
IS SI.Current 1e-14 Reverse saturation current at 300K.
KP Real 27.6e-6 Transconductance parameter (A/V2).
L SI.Length 100e-6 Gate length.
LAMBDA Real 0 Channel length modulation (V-1).
LD SI.Length 0.8e-6 Lateral diffusion.
MJ Real 0.5 Bulk junction capacitance grading coefficient.
MJSW Real 0.33 Perimeter capacitance grading coefficient.
PB SI.Voltage 0.75 Surface inversion potential.
PD SI.Length 4e-4 Drain junction perimeter.
PS SI.Length 4e-4 Source junction perimeter.
RD SI.Resistance 10 Drain ohmic resistance.
RS SI.Resistance 10 Source ohmic resistance.
RB SI.Resistance 10 Bulk ohmic resistance.
RG SI.Resistance 10 Gate ohmic resistance.
TOX SI.Length 1e-7 Gate oxide thickness.
VT0 SI.Voltage 1 Zero-bias threshold voltage.
W SI.Length 100e-6 Gate width.


Variables of interest to the library user


Table 7. Static Model.
Name Description
vthDC Threshold voltage.
vdsDC Drain to source voltage.
vgsDC Gate to source voltage.
vbsDC Bulk to source voltage.


Table 8. Large-signal model.
Name Description
vthTran Threshold voltage.
vdsTran Drain to source voltage.
vgsTran Gate to source voltage.
vbsTran Bulk to source voltage.


Table 9. Small-signal model.
Name Description
gate_vAC_Re Gate voltage. Real part.
gate_vAC_Im Gate voltage. Imaginary part.
bulk_vAC_Re Bulk voltage. Real part.
bulk_vAC_Im Bulk voltage. Imaginary part.


Table 10. Global variables.
Name Description
scaleGMIN Scale factor of the GMIN stepping algorithm for bias point calculation.
GMIN Conductance in parallel with the pn junction.
freq AC small-signal frequency.
Temp Temperature.


References


Massobrio, G. and Antognetti, P. (1993): Semiconductor Device Modeling with SPICE. McGraw-Hill, Inc.
Model's equations can be found in src package documentation.

")); end Spice2MOS1; model Spice2MOS1P extends src.BREAKOUT.Spice2MOS1P; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

Spice2MOS1P - SPICE2 Level1 p-channel MOSFET


Figure 1. p-channel MOSFET.

Nodes


Table 1. Instantiations of Pin class.
Name Description
d drain node
s source node
g gate node
b bulk node


Table 2. drain node variables.
Name Description
d.vDC Static model.
d.vTran Large-signal voltage.
d.vAC_Re AC small-signal voltage. Real part.
d.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) source node variables.
Name Description
s.vDC Static model.
s.vTran Large-signal voltage.
s.vAC_Re AC small-signal voltage. Real part.
s.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (-) gate node variables.
Name Description
g.vDC Static model.
g.vTran Large-signal voltage.
g.vAC_Re AC small-signal voltage. Real part.
g.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) bulk node variables.
Name Description
b.vDC Static model.
b.vTran Large-signal voltage.
b.vAC_Re AC small-signal voltage. Real part.
b.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. p-channel MOSFET parameters.
Name Type Default Description
AD SI.Area 1e-8 Drain junction area.
AS SI.Area 1e-8 Source junction area.
CGB0 Real 2e-10 Gate-bulk overlap capacitance perimeter (farad/meter).
CGD0 Real 4e-11 Gate-drain overlap capacitance perimeter (farad/meter).
CGS0 Real 4e-11 Gate-source overlap capacitance perimeter (farad/meter).
CJ Real 2e-4 Capacitance at zero-bias voltage per square meter of area (farad/meter2).
CJSW Real 1e-9 Capacitance at zero-bias voltage per meter of perimeter (farad/meter).
FC Real 0.5 Substrate-junction forward-bias coefficient.
GAMMA Real 0.526 Body-effect parameter.
IS SI.Current 1e-14 Reverse saturation current at 300K.
KP Real 27.6e-6 Transconductance parameter (A/V2).
L SI.Length 100e-6 Gate length.
LAMBDA Real 0 Channel length modulation (V-1).
LD SI.Length 0.8e-6 Lateral diffusion.
MJ Real 0.5 Bulk junction capacitance grading coefficient.
MJSW Real 0.33 Perimeter capacitance grading coefficient.
PB SI.Voltage 0.75 Surface inversion potential.
PD SI.Length 4e-4 Drain junction perimeter.
PS SI.Length 4e-4 Source junction perimeter.
RD SI.Resistance 10 Drain ohmic resistance.
RS SI.Resistance 10 Source ohmic resistance.
RB SI.Resistance 10 Bulk ohmic resistance.
RG SI.Resistance 10 Gate ohmic resistance.
TOX SI.Length 1e-7 Gate oxide thickness.
VT0 SI.Voltage -1 Zero-bias threshold voltage.
W SI.Length 100e-6 Gate width.


Variables of interest to the library user


Table 7. Static Model.
Name Description
vthDC Threshold voltage.
vsdDC Source to drain voltage.
vsgDC Source to gate voltage.
vsbDC Source to bulk voltage.


Table 8. Large-signal model.
Name Description
vthTran Threshold voltage.
vsdTran Source to drain voltage.
vsgTran Source to gate voltage.
vsbTran Source to bulk voltage.


Table 9. Small-signal model.
Name Description
gate_vAC_Re Gate voltage. Real part.
gate_vAC_Im Gate voltage. Imaginary part.
bulk_vAC_Re Bulk voltage. Real part.
bulk_vAC_Im Bulk voltage. Imaginary part.


Table 10. Global variables.
Name Description
scaleGMIN Scale factor of the GMIN stepping algorithm for bias point calculation.
GMIN Conductance in parallel with the pn junction.
freq AC small-signal frequency.
Temp Temperature.


References


Massobrio, G. and Antognetti, P. (1993): Semiconductor Device Modeling with SPICE. McGraw-Hill, Inc.
Model's equations can be found in src package documentation.

")); end Spice2MOS1P; annotation ( Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

breakout package



The following summary table lists all the device types of breakout package. Each device type is described in detail in the model documentation.


Table 1. breakout package devices.
Model Device type
Ground '0' ground
Rbreak Resistor
Cbreak Capacitor
Lbreak Capacitor
PSPICE_diode PSPICE diode
Spice2MOS1 SPICE2 level1 n-channel MOSFET
Spice2MOS1P SPICE2 level1 p-channel MOSFET


"), Icon(Rectangle(extent=[-80, 60; 80, -60], style(color=71, thickness=2)), Text(extent=[-86, 26; 88, -20], string="breakout"))); end breakout; package source model V parameter SI.Voltage DC_VALUE; parameter SI.Voltage AC_MAG; extends src.SOURCE.VSource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.NULL); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

V - Independent voltage source


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - Transient specification


None. ")); end V; model VEXP parameter SI.Voltage S1 "Initial signal"; parameter SI.Voltage S2 "Peak signal"; parameter SI.Time TD1 "Rise (fall) delay"; parameter SI.Time TC1 "Rise (fall) time constant"; parameter SI.Time TD2 "Fall (rise) delay"; parameter SI.Time TC2 "Fall (rise) time constant"; parameter SI.Voltage DC_VALUE; parameter SI.Voltage AC_MAG; extends src.SOURCE.VSource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.EXP ( S1=S1, S2=S2, TD1=TD1, TC1=TC1, TD2=TD2, TC2=TC2)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

VEXP - Independent voltage source & EXP stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - EXP waveform


The EXP form causes the voltage to be S1 for the first TD1 seconds. Then the voltage decays exponentially from S1 to S2 using a time constant of TC1. The decay lasts TD2-TD1 seconds. Then, the voltage decays from S2 back to S1 using a time constant of TC2. See Tables 8 and 9.

Table 8. EXP waveform parameters.
Parameter Description Units
S1 Initial voltage. SI.Voltage
S2 Peak voltage. SI.Voltage
TD1 Rise (fall) delay. SI.Time
TC1 Rise (fall) time constant. SI.Time
TD2 Fall (rise) delay. SI.Time
TC2 Fall (rise) time constant. SI.Time


Table 9. Exponential waveform formulas.
Time period Value
0 to TD1 S1
TD1 to TD2 S1+(S2-S1)*(1-e-(TIME-TD1)/TC1)
TD2 to TSTOP S1+(S2-S1)*((1-e-(TIME-TD1)/TC1)-(1-e-(TIME-TD2)/TC2))


")); end VEXP; model VPULSE parameter SI.Voltage S1 "Initial signal"; parameter SI.Voltage S2 "Pulse signal"; parameter SI.Time TD(min=0) "Delay"; parameter SI.Time TF(min=0) "Fall time"; parameter SI.Time TR(min=0) "Rise time"; parameter SI.Time PW(min=0) "Pulse width"; parameter SI.Time PER(min=TR + PW + TF) "Period"; parameter SI.Voltage DC_VALUE; parameter SI.Voltage AC_MAG; extends src.SOURCE.VSource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.PULSE ( S1=S1, S2=S2, TD=TD, TF=TF, TR=TR, PW=PW, PER=PER)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

VPULSE - Independent voltage source & PULSE stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - PULSE waveform


The PULSE form causes the voltage to start at S1, and stay there for TD seconds. Then, the voltage goes linearly from S1 to S2 during the next TR seconds, and the the voltage stays at S2 for PW seconds. Then it goes linearly from S2 back to S1 during the next TF seconds. It stays at S1 for PER-(TR+PW+TF) seconds, and then the cycle is repeated except for the initial delay of TD seconds.

Table 10. PULSE waveform parameters.
Parameter Description Units
S1 Initial voltage. SI.Voltage
S2 Pulsed voltage. SI.Voltage
TD Delay. SI.Time
TF Fall time. SI.Time
TR Rise time. SI.Time
PW Pulse width. SI.Time
PER Period. SI.Time


Table 11. Pulse waveform formulas.
Time period Value
0 S1
TD S1
TD+TR S2
TD+TR+PW S2
TD+TR+PW+TF S1
TD+PER S1
TD+PER+TR S2
... ...


")); end VPULSE; model VPWL parameter SI.Voltage signalCorners[:] "Signal at corners"; parameter SI.Time timeCorners[:] "Time at corners"; parameter Integer N=size(signalCorners, 1) "Number of corner points"; parameter SI.Voltage DC_VALUE; parameter SI.Voltage AC_MAG; extends src.SOURCE.VSource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.PWL ( signalCorners=signalCorners, timeCorners=timeCorners, N=Nm)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

VPWL - Independent voltage source & PWL stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - PWL waveform


The PWL form describes a piecewise linear waveform. Each pair of time-voltage values specifies a corner of the waveform. The voltage at times between corners is the linear interpolation of the voltages at the corners.

Table 12. PWL waveform parameters.
Parameter Description Units
timeCorners[:] Time at corners. SI.Time
signalCorners[:] Voltage at corners. SI.Voltage


")); end VPWL; model VSIN parameter SI.Voltage OFF "Constant Voltage"; parameter SI.Voltage AMPL "Amplitude"; parameter SI.Frequency FREQ "Frequency"; parameter SI.Voltage DC_VALUE; parameter SI.Voltage AC_MAG; extends src.SOURCE.VSource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.SIN ( OFF=OFF, AMPL=AMPL, FREQ=FREQ)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

VSIN - Independent voltage source & SIN stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - SIN waveform


The SIN form causes the voltage to follow v = OFF + AMPL*sin(2*pi*FREQ*time). See Table 8.

Table 8. SIN waveform parameters. ")); end VSIN; model VCONST parameter SI.Voltage OFF "Constant Voltage"; parameter SI.Voltage DC_VALUE; parameter SI.Voltage AC_MAG; extends src.SOURCE.VSource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.CONST (OFF=OFF)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

VCONST - Independent voltage source & CONST stimulus


Figure 1. Voltage source.

Nodes


Table 1. Instantiations of Pin class.
Parameter Description Units
OFF Constant voltage. SI.Voltage
AMPL Amplitude. SI.Voltage
FREQ Frequency. SI.Frequency
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent voltage source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - CONST waveform


The CONST form causes the voltage to follow v = OFF. See Table 8.

Table 8. CONST waveform parameters. ")); end VCONST; model I parameter SI.Current DC_VALUE; parameter SI.Current AC_MAG; extends src.SOURCE.ISource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.NULL); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

I - Independent current source


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Parameter Description Units
OFF Constant voltage. SI.Voltage
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - Transient specification


None. ")); end I; model IEXP parameter SI.Current S1 "Initial signal"; parameter SI.Current S2 "Peak signal"; parameter SI.Time TD1 "Rise (fall) delay"; parameter SI.Time TC1 "Rise (fall) time constant"; parameter SI.Time TD2 "Fall (rise) delay"; parameter SI.Time TC2 "Fall (rise) time constant"; parameter SI.Current DC_VALUE; parameter SI.Current AC_MAG; extends src.SOURCE.ISource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.EXP ( S1=S1, S2=S2, TD1=TD1, TC1=TC1, TD2=TD2, TC2=TC2)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

IEXP - Independent current source & EXP stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - EXP waveform


The EXP form causes the current to be S1 for the first TD1 seconds. Then the current decays exponentially from S1 to S2 using a time constant of TC1. The decay lasts TD2-TD1 seconds. Then, the current decays from S2 back to S1 using a time constant of TC2. See Tables 8 and 9.

Table 8. EXP waveform parameters.
Parameter Description Units
S1 Initial voltage. SI.Current
S2 Peak voltage. SI.Current
TD1 Rise (fall) delay. SI.Time
TC1 Rise (fall) time constant. SI.Time
TD2 Fall (rise) delay. SI.Time
TC2 Fall (rise) time constant. SI.Time


Table 9. Exponential waveform formulas.
Time period Value
0 to TD1 S1
TD1 to TD2 S1+(S2-S1)*(1-e-(TIME-TD1)/TC1)
TD2 to TSTOP S1+(S2-S1)*((1-e-(TIME-TD1)/TC1)-(1-e-(TIME-TD2)/TC2))


")); end IEXP; model IPULSE parameter SI.Current S1 "Initial signal"; parameter SI.Current S2 "Pulse signal"; parameter SI.Time TD(min=0) "Delay"; parameter SI.Time TF(min=0) "Fall time"; parameter SI.Time TR(min=0) "Rise time"; parameter SI.Time PW(min=0) "Pulse width"; parameter SI.Time PER(min=TR + PW + TF) "Period"; parameter SI.Current DC_VALUE; parameter SI.Current AC_MAG; extends src.SOURCE.ISource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.PULSE ( S1=S1, S2=S2, TD=TD, TF=TF, TR=TR, PW=PW, PER=PER)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

IPULSE - Independent current source & PULSE stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - PULSE waveform


The PULSE form causes the current to start at S1, and stay there for TD seconds. Then, the current goes linearly from S1 to S2 during the next TR seconds, and the the current stays at S2 for PW seconds. Then it goes linearly from S2 back to S1 during the next TF seconds. It stays at S1 for PER-(TR+PW+TF) seconds, and then the cycle is repeated except for the initial delay of TD seconds.

Table 10. PULSE waveform parameters.
Parameter Description Units
S1 Initial voltage. SI.Current
S2 Pulsed voltage. SI.Current
TD Delay. SI.Time
TF Fall time. SI.Time
TR Rise time. SI.Time
PW Pulse width. SI.Time
PER Period. SI.Time


Table 11. Pulse waveform formulas.
Time period Value
0 S1
TD S1
TD+TR S2
TD+TR+PW S2
TD+TR+PW+TF S1
TD+PER S1
TD+PER+TR S2
... ...


")); end IPULSE; model IPWL parameter SI.Currrent signalCornersm[:] "Signal at corners"; parameter SI.Time timeCornersm[:] "Time at corners"; parameter Integer Nm=size(signalCorners, 1) "Number of corner points"; parameter SI.Voltage DC_VALUE; parameter SI.Voltage AC_MAG; extends src.SOURCE.ISource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.PWL ( signalCorners=signalCorners, timeCorners=timeCorners, N=N)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

IPWL - Independent current source & PWL stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - PWL waveform


The PWL form describes a piecewise linear waveform. Each pair of time-current values specifies a corner of the waveform. The current at times between corners is the linear interpolation of the currents at the corners.

Table 12. PWL waveform parameters.
Parameter Description Units
timeCorners[:] Time at corners. SI.Time
signalCorners[:] Voltage at corners. SI.Current


")); end IPWL; model ISIN parameter SI.Current OFF "DC Voltage"; parameter SI.Current AMPL "Amplitude"; parameter SI.Frequency FREQ "Frequency"; parameter SI.Current DC_VALUE; parameter SI.Current AC_MAG; extends src.SOURCE.ISource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.SIN ( OFF=OFF, AMPL=AMPL, FREQ=FREQ)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

ISIN - Independent current source & SIN stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Voltage DC value.
AC_MAG SI.Voltage AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.


Stimulus - SIN waveform


The SIN form causes the voltage to follow v = OFF + AMPL*sin(2*pi*FREQ*time). See Table 8.

Table 8. SIN waveform parameters. ")); end ISIN; model ICONST parameter SI.Current OFF "Constant Current"; parameter SI.Current DC_VALUE; parameter SI.Current AC_MAG; extends src.SOURCE.ISource( DC_VALUE=DC_VALUE, AC_MAG=AC_MAG, redeclare model TransientSpecification = src.WAVEFORMS.CONST (OFF=OFF)); annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

ICONST - Independent current source & CONST stimulus


Figure 1. Current source.

Nodes


Table 1. Instantiations of Pin class.
Parameter Description Units
OFF DC voltage. SI.Voltage
AMPL Amplitude. SI.Voltage
FREQ Frequency. SI.Frequency
Name Description
p (+) node
n (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Model parameters allow defining the DC and AC characteristics of the source (see Table 4).

Table 4. Parameters of the independent current source
Name Type Description
DC_VALUE SI.Current DC value.
AC_MAG SI.Current AC magnitude value.
AC_PHASE nonSI.Angle_deg AC phase value.
HIDDEN_COMPONENT Boolean See analyses package documentation.


Variables of interest to the library user


Table 5. Voltage across the source.
Name Description
vDC Static model.
vTran Large-signal voltage
vAC_Re AC small-signal voltage. Real part.
vAC_Im AC small-signal voltage. Imaginary part.


Table 6. Current flowing through the source.
Name Description
iDC DC current.
iTran Large-signal current.
iAC_Re Small-signal current. Real part.
iAC_Im Small-signal current. Imaginary part.
iAC_mag AC small-signal current. Magnitude.
iAC_mag_dB Small-signal current. Magnitude (dB).
iAC_phase Small-signal current. Phase (deg).


Stimulus - CONST waveform


The CONST form causes the voltage to follow v = OFF. See Table 8.

Table 8. CONST waveform parameters. ")); end ICONST; model E extends src.SOURCE.E; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

E - Voltage controlled voltage source


Figure 1. Voltage controlled voltage source.

Nodes


Table 1. Instantiations of Pin class.
Parameter Description Units
OFF Constant current. SI.Current
Name Description
p1 (+) controlling node
n1 (-) controlling node
p2 (+) node
n2 (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) controlling node variables.
Name Description
p1.vDC Static model.
p1.vTran Large-signal voltage
p1.vAC_Re AC small-signal voltage. Real part.
p1.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) controlling node variables.
Name Description
n1.vDC Static model.
n1.vTran Large-signal voltage
n1.vAC_Re AC small-signal voltage. Real part.
n1.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (+) node variables.
Name Description
p2.vDC Static model.
p2.vTran Large-signal voltage
p2.vAC_Re AC small-signal voltage. Real part.
p2.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) node variables.
Name Description
n2.vDC Static model.
n2.vTran Large-signal voltage
n2.vAC_Re AC small-signal voltage. Real part.
n2.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. Parameters of the voltage controlled voltage source
Name Type Description
GAIN Real Voltage gain


Variables of interest to the library user


Table 7. Voltage across the controlling port.
Name Description
vDC1 Static model.
vTran1 Large-signal voltage
vAC_Re1 AC small-signal voltage. Real part.
vAC_Im1 AC small-signal voltage. Imaginary part.


Table 8. Voltage across the source port.
Name Description
vDC2 Static model.
vTran2 Large-signal voltage
vAC_Re2 AC small-signal voltage. Real part.
vAC_Im2 AC small-signal voltage. Imaginary part.


Table 9. Current flowing through the controlling port.
Name Description
iDC1 DC current.
iTran1 Large-signal current.
iAC_Re1 Small-signal current. Real part.
iAC_Im1 Small-signal current. Imaginary part.


Table 10. Current flowing through the source port.
Name Description
iDC2 DC current.
iTran2 Large-signal current.
iAC_Re2 Small-signal current. Real part.
iAC_Im2 Small-signal current. Imaginary part.


Constitutive relations


Table 11. Model formulations.
Static iDC1 = 0
vDC2 = Gain*vDC1
AC small-signal iAC_Re1 = 0, iAC_Im1 = 0
vAC_Re2 = Gain * vAC_Re1, vAC_Im2 = Gain * vAC_Re1
Large signal iTran1 = 0
vTran2 = Gain*vTran1


")); end E; model F extends src.SOURCE.F; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

F - Current controlled current source


Figure 1. Current controlled current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p1 (+) controlling node
n1 (-) controlling node
p2 (+) node
n2 (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) controlling node variables.
Name Description
p1.vDC Static model.
p1.vTran Large-signal voltage
p1.vAC_Re AC small-signal voltage. Real part.
p1.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) controlling node variables.
Name Description
n1.vDC Static model.
n1.vTran Large-signal voltage
n1.vAC_Re AC small-signal voltage. Real part.
n1.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (+) node variables.
Name Description
p2.vDC Static model.
p2.vTran Large-signal voltage
p2.vAC_Re AC small-signal voltage. Real part.
p2.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) node variables.
Name Description
n2.vDC Static model.
n2.vTran Large-signal voltage
n2.vAC_Re AC small-signal voltage. Real part.
n2.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. Parameters of the voltage controlled voltage source
Name Type Description
GAIN Real Current gain


Variables of interest to the library user


Table 7. Voltage across the controlling port.
Name Description
vDC1 Static model.
vTran1 Large-signal voltage
vAC_Re1 AC small-signal voltage. Real part.
vAC_Im1 AC small-signal voltage. Imaginary part.


Table 8. Voltage across the source port.
Name Description
vDC2 Static model.
vTran2 Large-signal voltage
vAC_Re2 AC small-signal voltage. Real part.
vAC_Im2 AC small-signal voltage. Imaginary part.


Table 9. Current flowing through the controlling port.
Name Description
iDC1 DC current.
iTran1 Large-signal current.
iAC_Re1 Small-signal current. Real part.
iAC_Im1 Small-signal current. Imaginary part.


Table 10. Current flowing through the source port.
Name Description
iDC2 DC current.
iTran2 Large-signal current.
iAC_Re2 Small-signal current. Real part.
iAC_Im2 Small-signal current. Imaginary part.


Constitutive relations


Table 11. Model formulations.
Static vDC1 = 0
iDC2 = Gain*iDC1
AC small-signal vAC_Re1 = 0, vAC_Im1 = 0
iAC_Re2 = Gain*iAC_Re1, iAC_Im2 = Gain*iAC_Im1
Large signal vTran1 = 0
iTran2 = Gain*iTran1


")); end F; model G extends src.SOURCE.G; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

G - Voltage controlled current source


Figure 1. Voltage controlled current source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p1 (+) controlling node
n1 (-) controlling node
p2 (+) node
n2 (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) controlling node variables.
Name Description
p1.vDC Static model.
p1.vTran Large-signal voltage
p1.vAC_Re AC small-signal voltage. Real part.
p1.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) controlling node variables.
Name Description
n1.vDC Static model.
n1.vTran Large-signal voltage
n1.vAC_Re AC small-signal voltage. Real part.
n1.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (+) node variables.
Name Description
p2.vDC Static model.
p2.vTran Large-signal voltage
p2.vAC_Re AC small-signal voltage. Real part.
p2.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) node variables.
Name Description
n2.vDC Static model.
n2.vTran Large-signal voltage
n2.vAC_Re AC small-signal voltage. Real part.
n2.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. Parameters of the voltage controlled voltage source
Name Type Description
GAIN SI.Conductance Transconductance


Variables of interest to the library user


Table 7. Voltage across the controlling port.
Name Description
vDC1 Static model.
vTran1 Large-signal voltage
vAC_Re1 AC small-signal voltage. Real part.
vAC_Im1 AC small-signal voltage. Imaginary part.


Table 8. Voltage across the source port.
Name Description
vDC2 Static model.
vTran2 Large-signal voltage
vAC_Re2 AC small-signal voltage. Real part.
vAC_Im2 AC small-signal voltage. Imaginary part.


Table 9. Current flowing through the controlling port.
Name Description
iDC1 DC current.
iTran1 Large-signal current.
iAC_Re1 Small-signal current. Real part.
iAC_Im1 Small-signal current. Imaginary part.


Table 10. Current flowing through the source port.
Name Description
iDC2 DC current.
iTran2 Large-signal current.
iAC_Re2 Small-signal current. Real part.
iAC_Im2 Small-signal current. Imaginary part.


Constitutive relations


Table 11. Model formulations.
Static iDC1 = 0
iDC2 = Gain*vDC1
AC small-signal iAC_Re1 = 0, iAC_Im1 = 0
iAC_Re2 = Gain*vAC_Re1, iAC_Im2 = Gain*vAC_Im1
Large signal iTran1 = 0
iTran2 = Gain*vTran1


")); end G; model H extends src.SOURCE.H; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

H - Current controlled voltage source


Figure 1. Current controlled voltage source.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p1 (+) controlling node
n1 (-) controlling node
p2 (+) node
n2 (-) node


Positive current flows from the (+) node through the source to the (-) node.

Table 2. (+) controlling node variables.
Name Description
p1.vDC Static model.
p1.vTran Large-signal voltage
p1.vAC_Re AC small-signal voltage. Real part.
p1.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) controlling node variables.
Name Description
n1.vDC Static model.
n1.vTran Large-signal voltage
n1.vAC_Re AC small-signal voltage. Real part.
n1.vAC_Im AC small-signal voltage. Imaginary part.


Table 4. (+) node variables.
Name Description
p2.vDC Static model.
p2.vTran Large-signal voltage
p2.vAC_Re AC small-signal voltage. Real part.
p2.vAC_Im AC small-signal voltage. Imaginary part.


Table 5. (-) node variables.
Name Description
n2.vDC Static model.
n2.vTran Large-signal voltage
n2.vAC_Re AC small-signal voltage. Real part.
n2.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 6. Parameters of the voltage controlled voltage source
Name Type Description
GAIN SI.Resistance Transresistance


Variables of interest to the library user


Table 7. Voltage across the controlling port.
Name Description
vDC1 Static model.
vTran1 Large-signal voltage
vAC_Re1 AC small-signal voltage. Real part.
vAC_Im1 AC small-signal voltage. Imaginary part.


Table 8. Voltage across the source port.
Name Description
vDC2 Static model.
vTran2 Large-signal voltage
vAC_Re2 AC small-signal voltage. Real part.
vAC_Im2 AC small-signal voltage. Imaginary part.


Table 9. Current flowing through the controlling port.
Name Description
iDC1 DC current.
iTran1 Large-signal current.
iAC_Re1 Small-signal current. Real part.
iAC_Im1 Small-signal current. Imaginary part.


Table 10. Current flowing through the source port.
Name Description
iDC2 DC current.
iTran2 Large-signal current.
iAC_Re2 Small-signal current. Real part.
iAC_Im2 Small-signal current. Imaginary part.


Constitutive relations


Table 11. Model formulations.
Static vDC1 = 0
vDC2 = Gain*iDC1
AC small-signal vAC_Re1 = 0, vAC_Im1 = 0
vAC_Re2 = Gain*iAC_Re1, vAC_Im2 = Gain*iAC_Im1;
Large signal vTran1 = 0
vTran2 = Gain*iTran1


")); end H; annotation ( Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

source package



The following summary table lists all the device types of source package. Each device type is described in detail in the model documentation.


Table 1. source package devices.
Model Device type
V Independent voltage source (DC and AC characteristics).
VEXP Independent voltage source & EXP stimulus.
VPULSE Independent voltage source & PULSE stimulus.
VPWL Independent voltage source & PWL stimulus.
VSIN Independent voltage source & SIN stimulus.
VCONST Independent voltage source & CONST stimulus.
I Independent current source (DC and AC characteristics).
IEXP Independent current source & EXP stimulus.
IPULSE Independent current source & PULSE stimulus.
IPWL Independent current source & PWL stimulus
ISIN Independent current source & SIN stimulus
ICONST Independent current source & CONST stimulus
E Voltage controlled voltage source
F Current controlled current source
G Voltage controlled current source
H Current controlled voltage source


"), Icon(Rectangle(extent=[-80, 60; 80, -60], style(color=71, thickness=2)), Text(extent=[-64, 76; 68, -70], string="source"))); end source; package special model IC1 extends src.SPECIAL.IC1; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

IC1 pseudocomponent


Figure 1. IC1 pseudocomponent.

Node


Table 1. Instantiation of Pin class
Name Comment
p (+) node


Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.

Parameters


Table 3. IC1 symbol parameters.
Name Description
IC Value of the initial voltage.


Variables of interest to the library user


None.

Internal implementation

SPICELib attaches a voltage source with a 0.0002 ohm series resistance to each net to which the IC symbol is connected (see Figure 2). The voltages are clamped this way for the entire bias point calculation.

Figure 2. IC1 symbol implementation.

")); end IC1; model IC2 extends src.SPECIAL.IC2; annotation (Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

IC2 pseudocomponent


Figure 1. IC2 pseudocomponent.

Nodes


Table 1. Instantiations of Pin class.
Name Description
p (+) node
n (-) node


Table 2. (+) node variables.
Name Description
p.vDC Static model.
p.vTran Large-signal voltage
p.vAC_Re AC small-signal voltage. Real part.
p.vAC_Im AC small-signal voltage. Imaginary part.


Table 3. (-) node variables.
Name Description
n.vDC Static model.
n.vTran Large-signal voltage
n.vAC_Re AC small-signal voltage. Real part.
n.vAC_Im AC small-signal voltage. Imaginary part.


Parameters


Table 3. IC2 symbol parameters.
Name Description
IC Value of the initial voltage between two nodes.


Variables of interest to the library user


None.

Internal implementation

SPICELib attaches a voltage source with a 0.0002 ohm series resistance between the two nets to which the IC symbol is connected. The voltages are clamped this way for the entire bias point calculation.

Figure 2. IC2 symbol implementation.

")); end IC2; annotation ( Window( x=0.03, y=0.02, width=0.24, height=0.45, library=1, autolayout=1), Documentation(info="

special package

IC symbols: IC1 and IC2

IC symbols specify initial conditions for the bias point.
They substitute the model initialization procedures of the modeling environment (for instance, Dymola).

Figure 1. IC symbols.

The example in Figure 1 includes "), Icon(Rectangle(extent=[-80, 60; 80, -60], style(color=71, thickness=2)), Text(extent=[-68, 36; 72, -34], string="special"))); end special;