::SpiceGenTcl::Ngspice::BasicDevices¶
Classes¶
C¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Capacitor¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Subclasses
constructor¶
Creates object of class Capacitor that describes capacitor.
OBJECT constructor name np nm -c value ?-tc1 value? ?-tc2 value? ?-m value? ?-temp value|-dtemp value? ?-scale value? ?-ic value? OBJECT constructor name np nm -beh -c value ?-tc1 value? ?-tc2 value? OBJECT constructor name np nm -beh -q value ?-tc1 value? ?-tc2 value? OBJECT constructor name np nm -model value ?-c value? ?-l value? ?-w value? ?-temp value|-dtemp value? ?-m value? ?scale value? ?-ic value?
Parameters
-beh:Selects behavioural type of resistor, optional.
-c value:Capacitance value or equation.
-dtemp value:Temperature offset, optional.
-ic value:Initial voltage on capacitor, optional.
-l value:Length of semiconductor capacitor, optional.
-m value:Multiplier value, optional.
-model value:Model of the resistor, optional.
-q value:Charge equation.
-scale value:Scaling factor, optional.
-tc1 value:Linear thermal coefficient, optional.
-tc2 value:Quadratic thermal coefficient, optional.
-temp value:Device temperature, optional.
-w value:Width of semiconductor capacitor, optional.
name:Name of the device without first-letter designator C.
nm:Name of node connected to negative pin.
np:Name of node connected to positive pin.
Description
Capacitor type could be specified with additional switches: -beh if we
want to model circuit’s variable dependent capacitor, or -model modelName
if we want to simulate capacitor with model card (semiconductor capacitor).
Simple capacitor:
CXXXXXXX n+ n- <value> <mname> <m=val> <scale=val> <temp=val>
+ <dtemp=val> <tc1=val> <tc2=val> <ic=init_condition>
Example of class initialization as a simple capacitor:
Capacitor new 1 netp netm 1e-6 -tc1 1 -temp {-eq temp}
Behavioral capacitor with C =ession:
CXXXXXXX n+ n- C={expression} <tc1=value> <tc2=value>
Example of class initialization:
Capacitor new 1 netp netm -c "V(a)+V(b)+pow(V(c),2)" -beh -tc1 1
Behavioral capacitor with Q expression:
CXXXXXXX n+ n- Q={expression} <tc1=value> <tc2=value>
Example of class initialization:
Capacitor new 1 netp netm -q "V(a)+V(b)+pow(V(c),2)" -beh -tc1 1
Capacitor with model card:
CXXXXXXX n+ n- <value> <mname> <l=length> <w=width> <m=val>
+ <scale=val> <temp=val> <dtemp=val> <ic=init_condition>
Example of class initialization:
Capacitor new 1 netp netm -model capm -l 1e-6 -w 10e-6
CModel¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Model.
- genSPICEString
Inherited from ::SpiceGenTcl::Model.
Properties
-name:Readable, writable. Inherited.
-type:Readable, writable. Inherited.
Superclasses
constructor¶
Creates object of class CModel that describes semiconductor capacitor model.
OBJECT constructor name ?-option value ...?
Parameters
args:Keyword instance parameters.
name:Name of the model.
Description
Example of class initialization:
CModel new capmod -tc1 1 -tc2 2
Coupling¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Subclasses
constructor¶
Creates object of class Coupling that describes inductance coupling between inductors.
OBJECT constructor name -l1 value -l2 value -k value #nagelfar implicitvarcmd argparse *Creates object of class `Coupling` name l1 l2 k*
Parameters
-k value:Coupling coefficient.
-l1 value:First inductor name.
-l2 value:Second inductor name.
name:Name of the device without first-letter designator L.
Description
KXXXXXXX LYYYYYYY LZZZZZZZ value
Example of class initialization as a simple inductor:
Coupling new 1 -l1 la -l2 lb -k 0.5
CSwitch¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
::SpiceGenTcl::Common::BasicDevices::CSwitch
Subclasses
CSwitchModel¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Model.
- genSPICEString
Inherited from ::SpiceGenTcl::Model.
Properties
-name:Readable, writable. Inherited.
-type:Readable, writable. Inherited.
Superclasses
constructor¶
Creates object of class CSwitchModel that describes current switch model.
OBJECT constructor name ?-option value ...?
Parameters
args:Keyword instance parameters.
name:Name of the model.
Description
Example of class initialization:
CSwitchModel new cswmod -it 1 -ih 0.5 -ron 1 -roff 1e6
Inductor¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Subclasses
constructor¶
Creates object of class Inductor that describes inductor.
OBJECT constructor name np nm -l value ?-tc1 value? ?-tc2 value? ?-m value? ?-temp value|-dtemp value? ?-scale value? ?-ic value? OBJECT constructor name np nm -beh -l value ?-tc1 value? ?-tc2 value? OBJECT constructor name np nm -model value ?-l value? ?-temp value|-dtemp value? ?-m value? ?scale value? ?-ic value? ?-nt value? ?-tc1 value? ?-tc2 value?
Parameters
-beh:Selects behavioural type of inductor, optional.
-dtemp value:Temperature offset, optional.
-ic value:Initial current through inductor, optional.
-l value:Inductance value or equation.
-m value:Multiplier value, optional.
-model value:Model of the inductor, optional.
-nt value:Number of turns, optional.
-scale value:Scaling factor, optional.
-tc1 value:Linear thermal coefficient, optional.
-tc2 value:Quadratic thermal coefficient, optional.
-temp value:Device temperature, optional.
name:Name of the device without first-letter designator L.
nm:Name of node connected to negative pin.
np:Name of node connected to positive pin.
Description
Inductor type could be specified with additional switches: -beh if we want to model circuit’s variable
dependent inductor, or -model modelName if we want to simulate inductor with model card.
Simple inductor:
LYYYYYYY n+ n- <value> <m=val>
+ <scale=val> <temp=val> <dtemp=val> <tc1=val>
+ <tc2=val> <ic=init_condition>
Example of class initialization as a simple inductor:
Inductor new 1 netp netm -l 1e-6 -tc1 1 -temp {-eq temp}
Behavioral inductor:
LYYYYYYY n+ n- L={expression} <tc1=val> <tc2=val>
Example of class initialization:
Inductor new 1 netp netm -l "V(a)+V(b)+pow(V(c),2)" -beh -tc1 1
Inductor with model card:
LYYYYYYY n+ n- <value> <mname> <nt=val> <m=val>
+ <scale=val> <temp=val> <dtemp=val> <tc1=val>
+ <tc2=val> <ic=init_condition>
Example of class initialization:
Inductor new 1 netp netm -l 1e-6 -model indm
K¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
L¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
LModel¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Model.
- genSPICEString
Inherited from ::SpiceGenTcl::Model.
Properties
-name:Readable, writable. Inherited.
-type:Readable, writable. Inherited.
Superclasses
constructor¶
Creates object of class LModel that describes inductor model.
OBJECT constructor name ?-option value ...?
Parameters
args:Keyword instance parameters.
name:Name of the model.
Description
Example of class initialization:
LModel new indmod -tc1 1 -tc2 2
N¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
R¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Resistor¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Subclasses
constructor¶
Creates object of class Resistor that describes resistor.
OBJECT constructor name np nm -r value ?-tc1 value? ?-tc2 value? ?-ac value? ?-m value? ?-noisy 0|1? ?-temp value|-dtemp value? ?-scale value? OBJECT constructor name np nm -beh -r value ?-tc1 value? ?-tc2 value? OBJECT constructor name np nm -model value ?-r value? ?-l value? ?-w value? ?-temp value|-dtemp value? ?-m value? ?-noisy 0|1? ?-ac value? ?scale value?
Parameters
-ac value:AC resistance value, optional.
-beh:Selects behavioural type of resistor, optional.
-dtemp value:Temperature offset, optional.
-l value:Length of semiconductor resistor, optional.
-m value:Multiplier value, optional.
-model value:Model of the resistor, optional.
-noisy:Selects noise behaviour.
-r value:Resistance value or equation.
-scale value:Scaling factor, optional.
-tc1 value:Linear thermal coefficient, optional.
-tc2 value:Quadratic thermal coefficient, optional.
-temp value:Device temperature, optional.
-w value:Width of semiconductor resistor, optional.
name:Name of the device without first-letter designator R.
nm:Name of node connected to negative pin.
np:Name of node connected to positive pin.
Description
Resistor type could be specified with additional switches: -beh if we
want to model circuit’s variable dependent resistor, or -model modelName
if we want to simulate resistor with model card (semiconductor resistor).
Simple resistor:
RXXXXXXX n+ n- <resistance|r=>value <ac=val> <m=val>
+ <scale=val> <temp=val> <dtemp=val> <tc1=val> <tc2=val>
+ <noisy=0|1>
Example of class initialization as a simple resistor:
Resistor new 1 netp netm -r 1e3 -tc1 1 -ac 1e6 -temp {-eq temp_amb}
Behavioral resistor:
RXXXXXXX n+ n- R={expression} <tc1=value> <tc2=value> <noisy=0>
Example of class initialization:
Resistor new 1 netp netm -r "V(a)+V(b)+pow(V(c),2)" -beh -tc1 1
Resistor with model card:
RXXXXXXX n+ n- <value> <mname> <l=length> <w=width>
+ <temp=val> <dtemp=val> <m=val> <ac=val> <scale=val>
+ <noisy=0|1>
Example of class initialization:
Resistor new 1 netp netm -model resm -l 1e-6 -w 10e-6
RModel¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Model.
- genSPICEString
Inherited from ::SpiceGenTcl::Model.
Properties
-name:Readable, writable. Inherited.
-type:Readable, writable. Inherited.
Superclasses
constructor¶
Creates object of class RModel that describes semiconductor resistor model.
OBJECT constructor name ?-option value ...?
Parameters
args:Keyword instance parameters.
name:Name of the model.
Description
Example of class initialization:
RModel new resmod -tc1 1 -tc2 2
S¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
SubcircuitInstance¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Subclasses
constructor¶
Creates object of class SubcircuitInstance that describes subcircuit instance.
SubcircuitInstance create OBJNAME ?args? SubcircuitInstance new ?args?
Parameters
name:Name of the device without first-letter designator X.
params:List of parameters
{{?-eq? paramName paramValue} {?-eq? paramName paramValue}}pins:List of pins
{{pinName nodeName} {pinName nodeName} ...}subName:Name of subcircuit definition.
Description
XYYYYYYY N1 <N2 N3 ...> SUBNAM
Example of class initialization:
SubcircuitInstance new 1 {{plus net1} {minus net2}} rcnet {{r 1} {-eq c cpar}}
#nagelfar implicitvarcmd {argparse Creates object of class ‘SubcircuitInstance’} name pins subName params
SubcircuitInstanceAuto¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Subclasses
constructor¶
Creates object of class SubcircuitInstanceAuto that describes subcircuit instance with already created
subcircuit definition object.
OBJECT constructor subcktObj name nodes ?-paramName ?-eq? paramValue ...?
Parameters
subcktObj:Object of subcircuit that defines it’s pins, subName and parameters.
name:Not documented.
nodes:List of nodes connected to pins in the same order as pins in subcircuit definition
{nodeName1 nodeName2 ...}args:Parameters as argument in form :
-paramName {?-eq? paramValue} -paramName {?-eq? paramValue}
Description
XYYYYYYY N1 <N2 N3 ...> SUBNAM
Example of class initialization:
SubcircuitInstanceAuto new $subcktObj 1 {net1 net2} -r 1 -c {-eq cpar}
VerilogA¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Subclasses
constructor¶
Creates object of class VerilogA that describes Verilog-A instance.
VerilogA create OBJNAME ?args? VerilogA new ?args?
Parameters
modName:Name of Verilog-A model.
name:Name of the device without first-letter designator N.
params:List of parameters
{{?-eq? paramName paramValue} {?-eq? paramName paramValue}}pins:List of pins
{{pinName nodeName} {pinName nodeName} ...}
Description
NYYYYYYY N1 <N2 N3 ...> MODNAME
Example of class initialization:
VerilogA new 1 {{plus net1} {minus net2}} vmod {{r 1} {-eq c cpar}}
#nagelfar implicitvarcmd {argparse Creates object of class ‘VerilogA’} name pins modName params
VSwitch¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
::SpiceGenTcl::Common::BasicDevices::VSwitch
Subclasses
VSwitchModel¶
Method summary
- constructor
Constructor for the class.
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Model.
- genSPICEString
Inherited from ::SpiceGenTcl::Model.
Properties
-name:Readable, writable. Inherited.
-type:Readable, writable. Inherited.
Superclasses
constructor¶
Creates object of class VSwitchModel that describes voltage switch model.
OBJECT constructor name ?-option value ...?
Parameters
args:Keyword instance parameters.
name:Name of the model.
Description
Example of class initialization:
VSwitchModel new swmod -vt 1 -vh 0.5 -ron 1 -roff 1e6
W¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
X¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
XAuto¶
Method summary
- configure
Configure properties. See ::oo::configuresupport::configurable.
- actOnParam
Inherited from ::SpiceGenTcl::Device.
- actOnPin
Inherited from ::SpiceGenTcl::Device.
- checkFloatingPins
Inherited from ::SpiceGenTcl::Device.
- genSPICEString
Inherited from ::SpiceGenTcl::Device.
Properties
-name:Readable, writable. Inherited.
Superclasses
Copyright (c) George Yashin