method constructor {args} {
# Creates object of class `Iac` that describes ac current source.# name - name of the device without first-letter designator I# np - name of node connected to positive pin# nm - name of node connected to negative pin# -dc value - DC current value, default 0# -ac value - AC current value# ```# Ixxx n+ n- <current> AC=<amplitude># ```# Example of class initialization:# ```# Iac new 1 netp netm -ac 10# ```# Synopsis: name np nm -ac value ?-dc value?if {({-rser} in $args) || ({-cpar} in $args)} {
return -code error {Current source doesn't support rser and cpar parameters}
}
next i {*}$args
}
method constructor {args} {
# Creates object of class `Idc` that describes simple constant current source.# name - name of the device without first-letter designator I# np - name of node connected to positive pin# nm - name of node connected to negative pin# -dc value - DC current value# ```# Ixxx n+ n- <current># ```# Example of class initialization:# ```# Idc new 1 netp netm -dc 10# ```# Synopsis: name np nm -dc valueif {({-rser} in $args) || ({-cpar} in $args)} {
return -code error {Current source doesn't support rser and cpar parameters}
}
next i {*}$args
}
method constructor {args} {
# Creates object of class `Iexp` that describes exponential current source.# name - name of the device without first-letter designator I# np - name of node connected to positive pin# nm - name of node connected to negative pin# -i1 value - initial value# -i2 value - pulsed value# -td1 value - rise delay time# -tau1 value - rise time constant# -td2 value - fall delay time# -tau2 value - fall time constant# ```# Ixxx n+ n- EXP(I1 I2 Td1 Tau1 Td2 Tau2)# ```# Example of class initialization:# ```# Iexp new 1 net1 net2 -i1 0 -i2 1 -td1 1e-9 -tau1 1e-9 -td2 {-eq td2} -tau2 10e-6# ```# Synopsis: name np nm -i1 value -i2 value -td1 value -tau1 value -td2 value -tau2 valueif {({-rser} in $args) || ({-cpar} in $args)} {
return -code error {Current source doesn't support rser and cpar parameters}
}
next i {*}$args
}
method constructor {args} {
# Creates object of class `Ipulse` that describes pulse current source.# name - name of the device without first-letter designator I# np - name of node connected to positive pin# nm - name of node connected to negative pin# -low value - low value, aliases: `-voff`, `-ioff`# -high value - high value, aliases: `-von, `-ion`# -td value - time delay# -tr value - rise time# -tf value - fall time# -pw value - width of pulse, alias `-ton`# -per value - period time, alias `-tper`# -npulses value - number of pulses, optional, alias `-ncycles`# ```# Ixxx n+ n- PULSE(Ioff Ion Tdelay Trise Tfall Ton Tperiod Ncycles)# ```# Example of class initialization:# ```# Ipulse new 1 net1 net2 -low 0 -high 1 -td {-eq td} -tr 1e-9 -tf 1e-9 -pw 10e-6 -per 20e-6 -npulses {-eq np}# ```# Synopsis: name np nm -low|ioff value -high|ion value -td value -tr value -tf value -pw|ton value# -per|tper value ?-np|ncycles value?if {({-rser} in $args) || ({-cpar} in $args)} {
return -code error {Current source doesn't support rser and cpar parameters}
}
next i {*}$args
}
method constructor {args} {
# Creates object of class `Ipwl` that describes piece-wise current source.# name - name of the device without first-letter designator I# np - name of node connected to positive pin# nm - name of node connected to negative pin# -seq list - sequence of pwl points in form `{t0 v0 t1 v1 t2 v2 t3 v3 ...}`# -rser value - series resistor value, optional# -cpar value - parallel capacitor value, optional# ```# Ixxx n+ n- PWL(t1 i1 t2 i2 t3 i3...)# ```# Example of class initialization:# ```# Ipwl new 1 np nm -seq {0 0 {-eq t1} 1 2 2 3 3 4 4}# ```# Synopsis: name np nm -seq listif {({-rser} in $args) || ({-cpar} in $args)} {
return -code error {Current source doesn't support rser and cpar parameters}
}
next i {*}$args
}
method constructor {args} {
# Creates object of class `Isffm` that describes single-frequency FM current source.# name - name of the device without first-letter designator I# np - name of node connected to positive pin# nm - name of node connected to negative pin# -i0 value - initial value, aliases: `-voff`, `-v0`, `-ioff`# -ia value - pulsed value, aliases: `-vamp`, `-va`, `-iamp`# -fc value - carrier frequency, alias `-fcar`# -mdi value - modulation index# -fs value - signal frequency, alias `-fsig`# ```# Ixxx n+ n- SFFM(Ioff Iamp Fcar MDI Fsig)# ```# Example of class initialization:# ```# Isin new 1 net1 net2 -i0 0 -ia 1 -fc {-eq freq} -mdi 0 -fs 1e3# ```# Synopsis: name np nm -i0|ioff value -ia|iamp value -fc|fcar value -mdi value -fs|fsig valueif {({-rser} in $args) || ({-cpar} in $args)} {
return -code error {Current source doesn't support rser and cpar parameters}
}
next i {*}$args
}
method constructor {args} {
# Creates object of class `Isin` that describes sinusoidal current source.# name - name of the device without first-letter designator I# np - name of node connected to positive pin# nm - name of node connected to negative pin# -v0 value - DC shift value, aliases: `-voffset`, `-v0`, `-ioffset`# -va value - amplitude value, aliases: `-vamp`, `-va`, `-iamp`# -freq value - frequency of sinusoidal signal# -td value - time delay, optional# -theta value - damping factor, optional, requires `-td`# -phase value - phase of signal, optional, requires `-td` and `-theta`, alias `-phi`# -ncycles value - number of cycles, optional, requires `-td`, `-theta` and `-phase`# ```# Ixxx n+ n- SINE(Ioffset Iamp Freq Td Theta Phi Ncycles)# ```# Example of class initialization:# ```# Isin new 1 net1 net2 -v0 0 -va 2 -freq {-eq freq} -td 1e-6 -theta {-eq theta}# ```# Synopsis: name np nm -i0|ioffset value -ia|iamp value -freq value ?-td value ?-theta value# ?-phase|phi value ?-ncycles value????if {({-rser} in $args) || ({-cpar} in $args)} {
return -code error {Current source doesn't support rser and cpar parameters}
}
next i {*}$args
}
method constructor {args} {
# Creates object of class `Vac` that describes ac voltage source.# name - name of the device without first-letter designator V# np - name of node connected to positive pin# nm - name of node connected to negative pin# -dc value - DC voltage value, default 0# -ac value - AC voltage value# -rser value - series resistor value, optional# -cpar value - parallel capacitor value, optional# ```# Vxxx n+ n- <voltage> AC=<amplitude> [Rser=<value>] [Cpar=<value>]# ```# Example of class initialization:# ```# Vac new 1 netp netm -ac 10 -cpar 1e-9# ```# Synopsis: name np nm -ac value ?-dc value? ?-rser value? ?-cpar value?next v {*}$args
}
method constructor {args} {
# Creates object of class `Vdc` that describes simple constant voltage source.# name - name of the device without first-letter designator V# np - name of node connected to positive pin# nm - name of node connected to negative pin# -dc value - DC voltage value# -rser value - series resistor value, optional# -cpar value - parallel capacitor value, optional# ```# Vxxx n+ n- <voltage> [Rser=<value>] [Cpar=<value>]# ```# Example of class initialization:# ```# Vdc new 1 netp netm -dc 10 -rser 0.001# ```# Synopsis: name np nm -dc value ?-rser value? ?-cpar value?next v {*}$args
}
method constructor {args} {
# Creates object of class `Vexp` that describes exponential voltage source.# name - name of the device without first-letter designator V# np - name of node connected to positive pin# nm - name of node connected to negative pin# -v1 value - initial value# -v2 value - pulsed value# -td1 value - rise delay time# -tau1 value - rise time constant# -td2 value - fall delay time# -tau2 value - fall time constant# -rser value - series resistor value, optional# -cpar value - parallel capacitor value, optional# ```# Vxxx n+ n- EXP(V1 V2 Td1 Tau1 Td2 Tau2)# ```# Example of class initialization:# ```# Vexp new 1 net1 net2 -v1 0 -v2 1 -td1 1e-9 -tau1 1e-9 -td2 {-eq td2} -tau2 10e-6# ```# Synopsis: name np nm -v1 value -v2 value -td1 value -tau1 value -td2 value -tau2 value# ?-rser value? ?-cpar value?next v {*}$args
}
Creates object of class Vpulse that describes pulse voltage source.
OBJECT constructorname np nm -low|voff value -high|von value -td value -tr value -tf value -pw|ton value -per|tper value ?-np|ncycles value? ?-rser value? ?-cpar value?
Parameters
-cpar value
Parallel capacitor value, optional.
-high value
High value, aliases: -von, -ion
-low value
Low value, aliases: -voff, -ioff
-npulses value
Number of pulses, optional, alias -ncycles
-per value
Period time, alias -tper
-pw value
Width of pulse, alias -ton
-rser value
Series resistor value, optional.
-td value
Time delay.
-tf value
Fall time.
-tr value
Rise time.
name
Name of the device without first-letter designator V.
method constructor {args} {
# Creates object of class `Vpulse` that describes pulse voltage source.# name - name of the device without first-letter designator V# np - name of node connected to positive pin# nm - name of node connected to negative pin# -low value - low value, aliases: `-voff`, `-ioff`# -high value - high value, aliases: `-von`, `-ion`# -td value - time delay# -tr value - rise time# -tf value - fall time# -pw value - width of pulse, alias `-ton`# -per value - period time, alias `-tper`# -npulses value - number of pulses, optional, alias `-ncycles`# -rser value - series resistor value, optional# -cpar value - parallel capacitor value, optional# ```# Vxxx n+ n- PULSE(V1 V2 Tdelay Trise Tfall Ton Tperiod Ncycles)# ```# Example of class initialization:# ```# Vpulse new 1 net1 net2 -low 0 -high 1 -td {-eq td} -tr 1e-9 -tf 1e-9 -pw 10e-6 -per 20e-6 -npulses {-eq np}# ```# Synopsis: name np nm -low|voff value -high|von value -td value -tr value -tf value -pw|ton value# -per|tper value ?-np|ncycles value? ?-rser value? ?-cpar value?next v {*}$args
}
method constructor {args} {
# Creates object of class `Vpwl` that describes piece-wise voltage source.# name - name of the device without first-letter designator V# np - name of node connected to positive pin# nm - name of node connected to negative pin# -seq list - sequence of pwl points in form `{t0 v0 t1 v1 t2 v2 t3 v3 ...}`# -rser value - series resistor value, optional# -cpar value - parallel capacitor value, optional# ```# Vxxx n+ n- PWL(t1 v1 t2 v2 t3 v3...)# ```# Example of class initialization:# ```# Vpwl new 1 np nm -seq {0 0 {-eq t1} 1 2 2 3 3 4 4}# ```# Synopsis: name np nm -seq list ?-rser value? ?-cpar value?next v {*}$args
}
method constructor {args} {
# Creates object of class `Vsffm` that describes single-frequency FM voltage source.# name - name of the device without first-letter designator V# np - name of node connected to positive pin# nm - name of node connected to negative pin# -v0 value - initial value, aliases: `-voff`, `-i0`, `-ioff`# -va value - pulsed value, aliases: `-vamp`, `-ia`, `-iamp`# -fc value - carrier frequency, alias `-fcar`# -mdi value - modulation index# -fs value - signal frequency, alias `-fsig`# -rser value - series resistor value, optional# -cpar value - parallel capacitor value, optional# ```# Vxxx n+ n- SFFM(Voff Vamp Fcar MDI Fsig)# ```# Example of class initialization:# ```# Vsin new 1 net1 net2 -v0 0 -va 1 -fc {-eq freq} -mdi 0 -fs 1e3# ```# Synopsis: name np nm -v0|voff value -va|vamp value -fc|fcar value -mdi value -fs|fsig value# ?-rser value? ?-cpar value?next v {*}$args
}
Creates object of class Vsin that describes sinusoidal voltage source.
OBJECT constructorname np nm -v0|voffset value -va|vamp value -freq value ?-td value ?-theta value ?-phase|phi value ?-ncycles value???? ?-rser value? ?-cpar value?
Parameters
-cpar value
Parallel capacitor value, optional.
-freq value
Frequency of sinusoidal signal.
-ncycles value
Number of cycles, optional, requires -td, -theta and -phase
-phase value
Phase of signal, optional, requires -td and -theta, alias -phi
-rser value
Series resistor value, optional.
-td value
Time delay, optional.
-theta value
Damping factor, optional, requires -td
-v0 value
DC shift value, aliases: -voffset, -i0, -ioffset
-va value
Amplitude value, aliases: -vamp, -ia, -iamp
name
Name of the device without first-letter designator V.
method constructor {args} {
# Creates object of class `Vsin` that describes sinusoidal voltage source.# name - name of the device without first-letter designator V# np - name of node connected to positive pin# nm - name of node connected to negative pin# -v0 value - DC shift value, aliases: `-voffset`, `-i0`, `-ioffset`# -va value - amplitude value, aliases: `-vamp`, `-ia`, `-iamp`# -freq value - frequency of sinusoidal signal# -td value - time delay, optional# -theta value - damping factor, optional, requires `-td`# -phase value - phase of signal, optional, requires `-td` and `-theta`, alias `-phi`# -ncycles value - number of cycles, optional, requires `-td`, `-theta` and `-phase`# -rser value - series resistor value, optional# -cpar value - parallel capacitor value, optional# ```# Vxxx n+ n- SINE(Voffset Vamp Freq Td Theta Phi Ncycles)# ```# Example of class initialization:# ```# Vsin new 1 net1 net2 -v0 0 -va 2 -freq {-eq freq} -td 1e-6 -theta {-eq theta}# ```# Synopsis: name np nm -v0|voffset value -va|vamp value -freq value ?-td value ?-theta value# ?-phase|phi value ?-ncycles value???? ?-rser value? ?-cpar value?next v {*}$args
}