::SpiceGenTcl::Ltspice::SourcesTop, Main, Index
ClassesTop, Main, Index
ac [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Subclasses
constructor [::SpiceGenTcl::Ltspice::Sources::ac]ac, Top, Main, Index
ac new type ?args?
Details
Parameters
type | Not documented. |
method constructor {type args} { if {$type eq {v}} { set typeName voltage } else { set typeName current } set arguments [argparse -inline -pfirst -help "Creates object of class '[string totitle ${type}ac]' that describes ac $typeName source" { {-dc= -default 0 -help {DC voltage value}} {-ac= -required -help {AC voltage value}} {-rser= -help {Series resistor value}} {-cpar= -help {Parallel capacitor value}} {name -help {Name of the device without first-letter designator}} {np -help {Name of node connected to positive pin}} {nm -help {Name of node connected to negative pin}} }] set dcVal [dget $arguments dc] if {([llength $dcVal]>1) && ([@ $dcVal 1] eq {-eq})} { lappend params [list dc [@ $dcVal 0] -poseq] } else { lappend params [list dc $dcVal -pos] } set acVal [dget $arguments ac] if {([llength $acVal]>1) && ([@ $acVal 1] eq {-eq})} { lappend params [list ac [@ $acVal 0] -eq] } else { lappend params [list ac $acVal] } dict for {paramName value} $arguments { if {$paramName ni {dc ac name np nm}} { if {([llength $value]>1) && ([@ $value 1] eq {-eq})} { lappend params [list $paramName [@ $value 0] -eq] } else { lappend params [list $paramName {*}$value] } } } next $type[dget $arguments name] [list [list np [dget $arguments np]] [list nm [dget $arguments nm]]] $params }
B [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
BehaviouralSource [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Subclasses
constructor [::SpiceGenTcl::Ltspice::Sources::BehaviouralSource]BehaviouralSource, Top, Main, Index
Creates object of class BehaviouralSource
that describes behavioural source.
OBJECT constructor name np nm -i value ?-ic value? ?-tripdv value -tripdt value? ?-laplace value ?-window value? ?-nfft value? ?-mtol value??
Details
Parameters
-i | Current expression. |
-ic | Initial condition. |
-tripdt | Voltage control time step rejection. |
-tripdv | Voltage control step rejection. |
-v | Voltage expression. |
name | Name of the device without first-letter designator B. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Bnnn n001 n002 V=<expression> [ic=<value>] + [tripdv=<value>] [tripdt=<value>] + [laplace=<expression> [window=<time>] + [nfft=<number>] [mtol=<number>]]
Bnnn n001 n002 I=<expression> [ic=<value>] + [tripdv=<value>] [tripdt=<value>] [Rpar=<value>] + [laplace=<expression> [window=<time>] + [nfft=<number>] [mtol=<number>]]
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::BehaviouralSource new 1 netp netm -v "V(a)+V(b)+pow(V(c),2)"
method constructor {args} { # Creates object of class `BehaviouralSource` that describes behavioural source. # name - name of the device without first-letter designator B # np - name of node connected to positive pin # nm - name of node connected to negative pin # -i - current expression # -v - voltage expression # -ic - initial condition # -tripdv - voltage control step rejection # -tripdt - voltage control time step rejection # ``` # Bnnn n001 n002 V=<expression> [ic=<value>] # + [tripdv=<value>] [tripdt=<value>] # + [laplace=<expression> [window=<time>] # + [nfft=<number>] [mtol=<number>]] # ``` # ``` # Bnnn n001 n002 I=<expression> [ic=<value>] # + [tripdv=<value>] [tripdt=<value>] [Rpar=<value>] # + [laplace=<expression> [window=<time>] # + [nfft=<number>] [mtol=<number>]] # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::BehaviouralSource new 1 netp netm -v "V(a)+V(b)+pow(V(c),2)" # ``` # Synopsis: name np nm -v value ?-ic value? ?-tripdv value -tripdt value? ?-laplace value # ?-window value? ?-nfft value? ?-mtol value?? # Synopsis: name np nm -i value ?-ic value? ?-tripdv value -tripdt value? ?-laplace value # ?-window value? ?-nfft value? ?-mtol value?? set arguments [argparse -inline -pfirst -help {Creates object of class 'BehaviouralSource' that describes behavioural source} { {-i= -forbid {v} -help {Current expression}} {-v= -forbid {i} -help {Voltage expression}} {-ic= -help {Initial condition}} {-tripdv= -require tripdt -help {Voltage control step rejection}} {-tripdt= -require tripdv -help {Voltage control time step rejection}} {-laplace= -help {Laplace equation}} {-window= -require laplace} {-nfft= -require laplace} {-mtol= -require laplace} {name -help {Name of the device without first-letter designator}} {np -help {Name of node connected to positive pin}} {nm -help {Name of node connected to negative pin}} }] if {[dexist $arguments i]} { lappend params [list i [dget $arguments i] -eq] } elseif {[dexist $arguments v]} { lappend params [list v [dget $arguments v] -eq] } else { return -code error {Equation must be specified as argument to -i or -v} } dict for {paramName value} $arguments { if {$paramName ni {i v name np nm}} { lappend params [list $paramName {*}$value] } } next b[dget $arguments name] [list [list np [dget $arguments np]] [list nm [dget $arguments nm]]] $params }
Cccs [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
::SpiceGenTcl::Common::Sources::Cccs
Subclasses
Ccvs [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
::SpiceGenTcl::Common::Sources::Ccvs
Subclasses
dc [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Subclasses
constructor [::SpiceGenTcl::Ltspice::Sources::dc]dc, Top, Main, Index
dc new type ?args?
Details
Parameters
type | Not documented. |
method constructor {type args} { if {$type eq {v}} { set typeName voltage } else { set typeName current } set arguments [argparse -inline -pfirst -help "Creates object of class '[string totitle ${type}dc]' that describes simple constant $typeName source" { {-dc= -required -help {DC voltage value}} {-rser= -help {Series resistor value}} {-cpar= -help {Parallel capacitor value}} {name -help {Name of the device without first-letter designator}} {np -help {Name of node connected to positive pin}} {nm -help {Name of node connected to negative pin}} }] set dcVal [dget $arguments dc] if {([llength $dcVal]>1) && ([@ $dcVal 1] eq {-eq})} { lappend params [list dc [@ $dcVal 0] -poseq] } else { lappend params [list dc $dcVal -pos] } dict for {paramName value} $arguments { if {$paramName ni {dc name np nm}} { if {([llength $value]>1) && ([@ $value 1] eq {-eq})} { lappend params [list $paramName [@ $value 0] -eq] } else { lappend params [list $paramName {*}$value] } } } next $type[dget $arguments name] [list [list np [dget $arguments np]] [list nm [dget $arguments nm]]] $params }
E [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
exp [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Mixins
Subclasses
constructor [::SpiceGenTcl::Ltspice::Sources::exp]exp, Top, Main, Index
exp new type ?args?
Details
Parameters
type | Not documented. |
method constructor {type args} { if {$type eq {v}} { set typeName voltage } else { set typeName current } set arguments [argparse -inline -pfirst -help "Creates object of class '[string totitle ${type}exp]' that describes exponential $typeName source" { {-i1|v1= -required -help {Initial value}} {-i2|v2= -required -help {Pulsed value}} {-td1= -required -help {Rise delay time}} {-tau1= -required -help {Rise time constant}} {-td2= -required -help {Fall delay time}} {-tau2= -required -help {Fall time constant}} {-rser= -help {Series resistor value}} {-cpar= -help {Parallel capacitor value}} {name -help {Name of the device without first-letter designator}} {np -help {Name of node connected to positive pin}} {nm -help {Name of node connected to negative pin}} }] set paramsOrder {v1 v2 td1 tau1 td2 tau2} lappend params {model exp -posnocheck} my ParamsProcess $paramsOrder $arguments params dict for {paramName value} $arguments { if {($paramName ni $paramsOrder) && ($paramName ni {name np nm})} { if {([llength $value]>1) && ([@ $value 1] eq {-eq})} { lappend params [list $paramName [@ $value 0] -eq] } else { lappend params [list $paramName {*}$value] } } } next $type[dget $arguments name] [list [list np [dget $arguments np]] [list nm [dget $arguments nm]]] $params }
F [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
G [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
H [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Iac [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Iac]Iac, Top, Main, Index
Creates object of class Iac
that describes ac current source.
Details
Parameters
-ac | AC current value. |
-dc | DC current value, default 0. |
name | Name of the device without first-letter designator I. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Ixxx n+ n- <current> AC=<amplitude>
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Iac new 1 netp netm -ac 10
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 - DC current value, default 0 # -ac - AC current value # ``` # Ixxx n+ n- <current> AC=<amplitude> # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::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 }
Idc [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Idc]Idc, Top, Main, Index
Creates object of class Idc
that describes simple constant current source.
Details
Parameters
-dc | DC current value. |
name | Name of the device without first-letter designator I. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Ixxx n+ n- <current>
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Idc new 1 netp netm -dc 10
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 - DC current value # ``` # Ixxx n+ n- <current> # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Idc new 1 netp netm -dc 10 # ``` # Synopsis: name np nm -dc value if {({-rser} in $args) || ({-cpar} in $args)} { return -code error {Current source doesn't support rser and cpar parameters} } next i {*}$args }
Iexp [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Iexp]Iexp, Top, Main, Index
Creates object of class Iexp
that describes exponential current source.
Details
Parameters
-i1 | Initial value. |
-i2 | Pulsed value. |
-tau1 | Rise time constant. |
-tau2 | Fall time constant. |
-td1 | Rise delay time. |
-td2 | Fall delay time. |
name | Name of the device without first-letter designator I. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Ixxx n+ n- EXP(I1 I2 Td1 Tau1 Td2 Tau2)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Iexp new 1 net1 net2 -i1 0 -i2 1 -td1 1e-9 -tau1 1e-9 -td2 {td2 -eq} -tau2 10e-6
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 - initial value # -i2 - pulsed value # -td1 - rise delay time # -tau1 - rise time constant # -td2 - fall delay time # -tau2 - fall time constant # ``` # Ixxx n+ n- EXP(I1 I2 Td1 Tau1 Td2 Tau2) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Iexp new 1 net1 net2 -i1 0 -i2 1 -td1 1e-9 -tau1 1e-9 -td2 {td2 -eq} -tau2 10e-6 # ``` # Synopsis: name np nm -i1 value -i2 value -td1 value -tau1 value -td2 value -tau2 value if {({-rser} in $args) || ({-cpar} in $args)} { return -code error {Current source doesn't support rser and cpar parameters} } next i {*}$args }
Ipulse [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Ipulse]Ipulse, Top, Main, Index
Creates object of class Ipulse
that describes pulse current source.
Details
Parameters
-high | High value, aliases: -von, ion. |
-low | Low value, aliases: -voff, -ioff. |
-npulses | Number of pulses, optional, alias -ncycles. |
-per | Period time, alias -tper. |
-pw | Width of pulse, alias -ton. |
-td | Time delay. |
-tf | Fall time. |
-tr | Rise time. |
name | Name of the device without first-letter designator I. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Ixxx n+ n- PULSE(Ioff Ion Tdelay Trise Tfall Ton Tperiod Ncycles)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Ipulse new 1 net1 net2 -low 0 -high 1 -td {td -eq} -tr 1e-9 -tf 1e-9 -pw 10e-6 -per 20e-6 -npulses {np -eq}
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 - low value, aliases: -voff, -ioff # -high - high value, aliases: -von, ion # -td - time delay # -tr - rise time # -tf - fall time # -pw - width of pulse, alias -ton # -per - period time, alias -tper # -npulses - number of pulses, optional, alias -ncycles # ``` # Ixxx n+ n- PULSE(Ioff Ion Tdelay Trise Tfall Ton Tperiod Ncycles) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Ipulse new 1 net1 net2 -low 0 -high 1 -td {td -eq} -tr 1e-9 -tf 1e-9 -pw 10e-6 -per 20e-6 -npulses {np -eq} # ``` # 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 }
Ipwl [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Ipwl]Ipwl, Top, Main, Index
Creates object of class Ipwl
that describes piece-wise current source.
Details
Parameters
-cpar | Parallel capacitor value, optional. |
-rser | Series resistor value, optional. |
-seq | Sequence of pwl points in form {t0 v0 t1 v1 t2 v2 t3 v3 ...} |
name | Name of the device without first-letter designator I. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Ixxx n+ n- PWL(t1 i1 t2 i2 t3 i3...)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Ipwl new 1 np nm -seq {0 0 {t1 -eq} 1 2 2 3 3 4 4}
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 - sequence of pwl points in form {t0 v0 t1 v1 t2 v2 t3 v3 ...} # -rser - series resistor value, optional # -cpar - parallel capacitor value, optional # ``` # Ixxx n+ n- PWL(t1 i1 t2 i2 t3 i3...) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Ipwl new 1 np nm -seq {0 0 {t1 -eq} 1 2 2 3 3 4 4} # ``` # Synopsis: name np nm -seq list if {({-rser} in $args) || ({-cpar} in $args)} { return -code error {Current source doesn't support rser and cpar parameters} } next i {*}$args }
Isffm [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Isffm]Isffm, Top, Main, Index
Creates object of class Isffm
that describes single-frequency FM current source.
Details
Parameters
-fc | Carrier frequency, alias -fcar. |
-fs | Signal frequency, alias -fsig. |
-i0 | Initial value, aliases: -voff, -v0, -ioff. |
-ia | Pulsed value, aliases: -vamp, -va, -iamp. |
-mdi | Modulation index. |
name | Name of the device without first-letter designator I. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Ixxx n+ n- SFFM(Ioff Iamp Fcar MDI Fsig)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Isin new 1 net1 net2 -i0 0 -ia 1 -fc {freq -eq} -mdi 0 -fs 1e3
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 - initial value, aliases: -voff, -v0, -ioff # -ia - pulsed value, aliases: -vamp, -va, -iamp # -fc - carrier frequency, alias -fcar # -mdi - modulation index # -fs - signal frequency, alias -fsig # ``` # Ixxx n+ n- SFFM(Ioff Iamp Fcar MDI Fsig) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Isin new 1 net1 net2 -i0 0 -ia 1 -fc {freq -eq} -mdi 0 -fs 1e3 # ``` # Synopsis: name np nm -i0|ioff value -ia|iamp value -fc|fcar value -mdi value -fs|fsig value if {({-rser} in $args) || ({-cpar} in $args)} { return -code error {Current source doesn't support rser and cpar parameters} } next i {*}$args }
Isin [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Isin]Isin, Top, Main, Index
Creates object of class Isin
that describes sinusoidal current source.
Details
Parameters
-freq | Frequency of sinusoidal signal. |
-ncycles | Number of cycles, optional, require -td, -theta and -phase. |
-phase | Phase of signal, optional, require -td and -theta, alias -phi. |
-td | Time delay, optional. |
-theta | Damping factor, optional, require -td. |
-v0 | DC shift value, aliases: -voffset, -v0, -ioffset. |
-va | Amplitude value, aliases: -vamp, -va, -iamp. |
name | Name of the device without first-letter designator I. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Ixxx n+ n- SINE(Ioffset Iamp Freq Td Theta Phi Ncycles)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Isin new 1 net1 net2 -v0 0 -va 2 -freq {freq -eq} -td 1e-6 -theta {theta -eq}
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 - DC shift value, aliases: -voffset, -v0, -ioffset # -va - amplitude value, aliases: -vamp, -va, -iamp # -freq - frequency of sinusoidal signal # -td - time delay, optional # -theta - damping factor, optional, require -td # -phase - phase of signal, optional, require -td and -theta, alias -phi # -ncycles - number of cycles, optional, require -td, -theta and -phase # ``` # Ixxx n+ n- SINE(Ioffset Iamp Freq Td Theta Phi Ncycles) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Isin new 1 net1 net2 -v0 0 -va 2 -freq {freq -eq} -td 1e-6 -theta {theta -eq} # ``` # 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 }
pulse [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Mixins
Subclasses
constructor [::SpiceGenTcl::Ltspice::Sources::pulse]pulse, Top, Main, Index
pulse new type ?args?
Details
Parameters
type | Not documented. |
method constructor {type args} { if {$type eq {v}} { set typeName voltage } else { set typeName current } set arguments [argparse -inline -pfirst -help "Creates object of class '[string totitle ${type}pulse]' that describes pulse $typeName source" { {-voff|ioff|low= -required -help {Low value}} {-von|ion|high= -required -help {High value}} {-td= -required -help {Delay time}} {-tr= -required -help {Rise time}} {-tf= -required -help {Fall time}} {-pw|ton= -required -help {Width of pulse}} {-per|tper= -required -help {Period time}} {-ncycles|npulses= -help {Number of pulses}} {-rser= -help {Series resistor value}} {-cpar= -help {Parallel capacitor value}} {name -help {Name of the device without first-letter designator}} {np -help {Name of node connected to positive pin}} {nm -help {Name of node connected to negative pin}} }] set paramsOrder {low high td tr tf ton tper npulses} lappend params {model pulse -posnocheck} my ParamsProcess $paramsOrder $arguments params dict for {paramName value} $arguments { if {($paramName ni $paramsOrder) && ($paramName ni {name np nm})} { if {([llength $value]>1) && ([@ $value 1] eq {-eq})} { lappend params [list $paramName [@ $value 0] -eq] } else { lappend params [list $paramName {*}$value] } } } next $type[dget $arguments name] [list [list np [dget $arguments np]] [list nm [dget $arguments nm]]] $params }
pwl [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Subclasses
constructor [::SpiceGenTcl::Ltspice::Sources::pwl]pwl, Top, Main, Index
pwl new type ?args?
Details
Parameters
type | Not documented. |
method constructor {type args} { if {$type eq {v}} { set typeName voltage } else { set typeName current } set arguments [argparse -inline -pfirst -help "Creates object of class '[string totitle ${type}pwl]' that describes piece-wise $typeName source" { {-seq= -required -help {Sequence of pwl points in form {t0 i0 t1 i1 t2 i2 t3 i3 ...}}} {-rser= -help {Series resistor value}} {-cpar= -help {Parallel capacitor value}} {name -help {Name of the device without first-letter designator}} {np -help {Name of node connected to positive pin}} {nm -help {Name of node connected to negative pin}} }] set pwlSeqVal [dget $arguments seq] set pwlSeqLen [llength $pwlSeqVal] if {$pwlSeqLen%2} { return -code error "Number of elements '$pwlSeqLen' in pwl sequence is odd in element '$type[dget $arguments name]', must be even" } elseif {$pwlSeqLen<4} { return -code error "Number of elements '$pwlSeqLen' in pwl sequence in element '$type[dget $arguments name]' must be >=4" } # parse pwlSeq argument for {set i 0} {$i<[llength $pwlSeqVal]/2} {incr i} { set 2i [* 2 $i] set 2ip1 [+ $2i 1] lappend params [list t$i [@ $pwlSeqVal $2i]] [list $type$i [@ $pwlSeqVal $2ip1]] } foreach param $params { if {([llength [@ $param 1]]>1) && ([@ [@ $param 1] 1] eq {-eq})} { lappend paramList [list [@ $param 0] [@ [@ $param 1] 0] -poseq] } else { lappend paramList [list [@ $param 0] [@ $param 1] -pos] } } foreach paramName {rser cpar} { if {[dexist $arguments $paramName]} { set paramVal [dget $arguments $paramName] if {([llength $paramVal]>1) && ([@ $paramVal 1] eq {-eq})} { lappend paramList [list $paramName [@ $paramVal 0] -eq] } else { lappend paramList [list $paramName {*}$paramVal] } } } set paramList [linsert $paramList 0 {model pwl -posnocheck}] next $type[dget $arguments name] [list [list np [dget $arguments np]] [list nm [dget $arguments nm]]] $paramList }
sffm [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Mixins
Subclasses
constructor [::SpiceGenTcl::Ltspice::Sources::sffm]sffm, Top, Main, Index
sffm new type ?args?
Details
Parameters
type | Not documented. |
method constructor {type args} { if {$type eq {v}} { set typeName voltage } else { set typeName current } set arguments [argparse -inline -pfirst -help "Creates object of class '[string totitle ${type}sffm]' that describes single-frequency FM $typeName source" { {-i0|voff|ioff|v0= -required -help {Initial value}} {-ia|vamp|iamp|va= -required -help {Pulsed value}} {-fcar|fc= -required -help {Carrier frequency}} {-mdi= -required -help {Modulation index}} {-fsig|fs= -required -help {Signal frequency}} {-rser= -help {Series resistor value}} {-cpar= -help {Parallel capacitor value}} {name -help {Name of the device without first-letter designator}} {np -help {Name of node connected to positive pin}} {nm -help {Name of node connected to negative pin}} }] set paramsOrder {v0 va fc mdi fs} lappend params {model sffm -posnocheck} my ParamsProcess $paramsOrder $arguments params dict for {paramName value} $arguments { if {($paramName ni $paramsOrder) && ($paramName ni {name np nm})} { if {([llength $value]>1) && ([@ $value 1] eq {-eq})} { lappend params [list $paramName [@ $value 0] -eq] } else { lappend params [list $paramName {*}$value] } } } next $type[dget $arguments name] [list [list np [dget $arguments np]] [list nm [dget $arguments nm]]] $params }
sin [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
Mixins
Subclasses
constructor [::SpiceGenTcl::Ltspice::Sources::sin]sin, Top, Main, Index
sin new type ?args?
Details
Parameters
type | Not documented. |
method constructor {type args} { if {$type eq {v}} { set typeName voltage } else { set typeName current } set arguments [argparse -inline -pfirst -help "Creates object of class '[string totitle ${type}sin]' that describes sinusoidal $typeName source" { {-i0|voffset|ioffset|v0= -required -help {DC value}} {-ia|vamp|iamp|va= -required -help {AC value}} {-freq= -required -help {Frequency of sinusoidal signal}} {-td= -help {Time delay}} {-theta= -require td -help {Damping factor}} {-phi|phase= -require {td theta} -help {Phase of signal}} {-ncycles= -require {td theta phase} -help {Number of periods}} {-rser= -help {Series resistor value}} {-cpar= -help {Parallel capacitor value}} {name -help {Name of the device without first-letter designator}} {np -help {Name of node connected to positive pin}} {nm -help {Name of node connected to negative pin}} }] set paramsOrder {v0 va freq td theta phase ncycles} lappend params {model sin -posnocheck} my ParamsProcess $paramsOrder $arguments params dict for {paramName value} $arguments { if {($paramName ni $paramsOrder) && ($paramName ni {name np nm})} { if {([llength $value]>1) && ([@ $value 1] eq {-eq})} { lappend params [list $paramName [@ $value 0] -eq] } else { lappend params [list $paramName {*}$value] } } } next $type[dget $arguments name] [list [list np [dget $arguments np]] [list nm [dget $arguments nm]]] $params }
Vac [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Vac]Vac, Top, Main, Index
Creates object of class Vac
that describes ac voltage source.
Details
Parameters
-ac | AC voltage value. |
-cpar | Parallel capacitor value, optional. |
-dc | DC voltage value, default 0. |
-rser | Series resistor value, optional. |
name | Name of the device without first-letter designator V. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Vxxx n+ n- <voltage> AC=<amplitude> [Rser=<value>] [Cpar=<value>]
Example of class initialization:
::SpiceGenTcl::Common::Sources::Vac new 1 netp netm -ac 10 -cpar 1e-9
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 - DC voltage value, default 0 # -ac - AC voltage value # -rser - series resistor value, optional # -cpar - parallel capacitor value, optional # ``` # Vxxx n+ n- <voltage> AC=<amplitude> [Rser=<value>] [Cpar=<value>] # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Common::Sources::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 }
Vccs [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
::SpiceGenTcl::Common::Sources::Vccs
Subclasses
Vcvs [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
::SpiceGenTcl::Common::Sources::Vcvs
Subclasses
Vdc [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Vdc]Vdc, Top, Main, Index
Creates object of class Vdc
that describes simple constant voltage source.
Details
Parameters
-cpar | Parallel capacitor value, optional. |
-dc | DC voltage value. |
-rser | Series resistor value, optional. |
name | Name of the device without first-letter designator V. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Vxxx n+ n- <voltage> [Rser=<value>] [Cpar=<value>]
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Vdc new 1 netp netm -dc 10 -rser 0.001
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 - DC voltage value # -rser - series resistor value, optional # -cpar - parallel capacitor value, optional # ``` # Vxxx n+ n- <voltage> [Rser=<value>] [Cpar=<value>] # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Vdc new 1 netp netm -dc 10 -rser 0.001 # ``` # Synopsis: name np nm -dc value ?-rser value? ?-cpar value? next v {*}$args }
Vexp [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Vexp]Vexp, Top, Main, Index
Creates object of class Vexp
that describes exponential voltage source.
Details
Parameters
-cpar | Parallel capacitor value, optional. |
-rser | Series resistor value, optional. |
-tau1 | Rise time constant. |
-tau2 | Fall time constant. |
-td1 | Rise delay time. |
-td2 | Fall delay time. |
-v1 | Initial value. |
-v2 | Pulsed value. |
name | Name of the device without first-letter designator V. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Vxxx n+ n- EXP(V1 V2 Td1 Tau1 Td2 Tau2)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Vexp new 1 net1 net2 -v1 0 -v2 1 -td1 1e-9 -tau1 1e-9 -td2 {td2 -eq} -tau2 10e-6
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 - initial value # -v2 - pulsed value # -td1 - rise delay time # -tau1 - rise time constant # -td2 - fall delay time # -tau2 - fall time constant # -rser - series resistor value, optional # -cpar - parallel capacitor value, optional # ``` # Vxxx n+ n- EXP(V1 V2 Td1 Tau1 Td2 Tau2) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Vexp new 1 net1 net2 -v1 0 -v2 1 -td1 1e-9 -tau1 1e-9 -td2 {td2 -eq} -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 }
Vpulse [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Vpulse]Vpulse, Top, Main, Index
Creates object of class Vpulse
that describes pulse voltage source.
Details
Parameters
-cpar | Parallel capacitor value, optional. |
-high | High value, aliases: -von, ion. |
-low | Low value, aliases: -voff, -ioff. |
-npulses | Number of pulses, optional, alias -ncycles. |
-per | Period time, alias -tper. |
-pw | Width of pulse, alias -ton. |
-rser | Series resistor value, optional. |
-td | Time delay. |
-tf | Fall time. |
-tr | Rise time. |
name | Name of the device without first-letter designator V. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Vxxx n+ n- PULSE(V1 V2 Tdelay Trise Tfall Ton Tperiod Ncycles)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Vpulse new 1 net1 net2 -low 0 -high 1 -td {td -eq} -tr 1e-9 -tf 1e-9 -pw 10e-6 -per 20e-6 -npulses {np -eq}
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 - low value, aliases: -voff, -ioff # -high - high value, aliases: -von, ion # -td - time delay # -tr - rise time # -tf - fall time # -pw - width of pulse, alias -ton # -per - period time, alias -tper # -npulses - number of pulses, optional, alias -ncycles # -rser - series resistor value, optional # -cpar - parallel capacitor value, optional # ``` # Vxxx n+ n- PULSE(V1 V2 Tdelay Trise Tfall Ton Tperiod Ncycles) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Vpulse new 1 net1 net2 -low 0 -high 1 -td {td -eq} -tr 1e-9 -tf 1e-9 -pw 10e-6 -per 20e-6 -npulses {np -eq} # ``` # 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 }
Vpwl [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Vpwl]Vpwl, Top, Main, Index
Creates object of class Vpwl
that describes piece-wise voltage source.
Details
Parameters
-cpar | Parallel capacitor value, optional. |
-rser | Series resistor value, optional. |
-seq | Sequence of pwl points in form {t0 v0 t1 v1 t2 v2 t3 v3 ...} |
name | Name of the device without first-letter designator V. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Vxxx n+ n- PWL(t1 v1 t2 v2 t3 v3...)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Vpwl new 1 np nm -seq {0 0 {t1 -eq} 1 2 2 3 3 4 4}
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 - sequence of pwl points in form {t0 v0 t1 v1 t2 v2 t3 v3 ...} # -rser - series resistor value, optional # -cpar - parallel capacitor value, optional # ``` # Vxxx n+ n- PWL(t1 v1 t2 v2 t3 v3...) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Vpwl new 1 np nm -seq {0 0 {t1 -eq} 1 2 2 3 3 4 4} # ``` # Synopsis: name np nm -seq list ?-rser value? ?-cpar value? next v {*}$args }
Vsffm [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Vsffm]Vsffm, Top, Main, Index
Creates object of class Vsffm
that describes single-frequency FM voltage source.
Details
Parameters
-cpar | Parallel capacitor value, optional. |
-fc | Carrier frequency, alias -fcar. |
-fs | Signal frequency, alias -fsig. |
-mdi | Modulation index. |
-rser | Series resistor value, optional. |
-v0 | Initial value, aliases: -voff, -i0, -ioff. |
-va | Pulsed value, aliases: -vamp, -ia, -iamp. |
name | Name of the device without first-letter designator V. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Vxxx n+ n- SFFM(Voff Vamp Fcar MDI Fsig)
Example of class initialization:
::SpiceGenTcl::Ltspice::Sources::Vsin new 1 net1 net2 -v0 0 -va 1 -fc {freq -eq} -mdi 0 -fs 1e3
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 - initial value, aliases: -voff, -i0, -ioff # -va - pulsed value, aliases: -vamp, -ia, -iamp # -fc - carrier frequency, alias -fcar # -mdi - modulation index # -fs - signal frequency, alias -fsig # -rser - series resistor value, optional # -cpar - parallel capacitor value, optional # ``` # Vxxx n+ n- SFFM(Voff Vamp Fcar MDI Fsig) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Ltspice::Sources::Vsin new 1 net1 net2 -v0 0 -va 1 -fc {freq -eq} -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 }
Vsin [::SpiceGenTcl::Ltspice::Sources]Top, Main, Index
Method summary
constructor | Constructor for the class. |
addParam | See ::SpiceGenTcl::Device.addParam |
addPin | See ::SpiceGenTcl::Device.addPin |
checkFloatingPins | See ::SpiceGenTcl::Device.checkFloatingPins |
configure | Configure properties. |
deleteParam | See ::SpiceGenTcl::Device.deleteParam |
genSPICEString | See ::SpiceGenTcl::Device.genSPICEString |
getParams | See ::SpiceGenTcl::Device.getParams |
getPins | See ::SpiceGenTcl::Device.getPins |
setParamValue | See ::SpiceGenTcl::Device.setParamValue |
setPinNodeName | See ::SpiceGenTcl::Device.setPinNodeName |
Properties
Readable: -name
Writable: -name
Superclasses
constructor [::SpiceGenTcl::Ltspice::Sources::Vsin]Vsin, Top, Main, Index
Creates object of class Vsin
that describes sinusoidal voltage source.
Details
Parameters
-cpar | Parallel capacitor value, optional. |
-freq | Frequency of sinusoidal signal. |
-ncycles | Number of cycles, optional, require -td, -theta and -phase. |
-phase | Phase of signal, optional, require -td and -theta, alias -phi. |
-rser | Series resistor value, optional. |
-td | Time delay, optional. |
-theta | Damping factor, optional, require -td. |
-v0 | DC shift value, aliases: -voffset, -i0, -ioffset. |
-va | Amplitude value, aliases: -vamp, -ia, -iamp. |
name | Name of the device without first-letter designator V. |
nm | Name of node connected to negative pin. |
np | Name of node connected to positive pin. |
Description
Vxxx n+ n- SINE(Voffset Vamp Freq Td Theta Phi Ncycles)
Example of class initialization:
::SpiceGenTcl::Common::Sources::Vsin new 1 net1 net2 -v0 0 -va 2 -freq {freq -eq} -td 1e-6 -theta {theta -eq}
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 - DC shift value, aliases: -voffset, -i0, -ioffset # -va - amplitude value, aliases: -vamp, -ia, -iamp # -freq - frequency of sinusoidal signal # -td - time delay, optional # -theta - damping factor, optional, require -td # -phase - phase of signal, optional, require -td and -theta, alias -phi # -ncycles - number of cycles, optional, require -td, -theta and -phase # -rser - series resistor value, optional # -cpar - parallel capacitor value, optional # ``` # Vxxx n+ n- SINE(Voffset Vamp Freq Td Theta Phi Ncycles) # ``` # Example of class initialization: # ``` # ::SpiceGenTcl::Common::Sources::Vsin new 1 net1 net2 -v0 0 -va 2 -freq {freq -eq} -td 1e-6 -theta {theta -eq} # ``` # 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 }