::SpiceGenTcl::Common::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 ?-m value? ?-temp value? ?-tc1 value? ?-tc2 value? ?-ic value?
Parameters
-c value:Capacitance value.
-ic value:Initial condition, optional.
-m value:Multiplier value, optional.
-tc1 value:Linear thermal coefficient, optional.
-tc2 value:Quadratic thermal coefficient, optional.
-temp value:Device temperature, optional, 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
Simple capacitor:
CXXXXXXX n+ n- <value> <m=val> <temp=val> <tc1=val> <tc2=val>
Example of class initialization:
Capacitor new 1 netp netm -c 1e3 -tc1 1 -temp {-eq temp_amb}
CSwitch¶
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
W, ::SpiceGenTcl::Ngspice::BasicDevices::CSwitch, ::SpiceGenTcl::Xyce::BasicDevices::CSwitch, ::SpiceGenTcl::Ltspice::BasicDevices::CSwitch
constructor¶
Creates object of class CSwitch that describes current controlled switch device.
OBJECT constructor name np nm -icntrl value -model value ?-on|-off?
Parameters
-icntrl value:Source of control current.
-model value:Model name.
-on/-off:Initial state of switch.
name:Name of the device without first-letter designator W.
nm:Name of node connected to negative pin.
np:Name of node connected to positive pin.
Description
WYYYYYYY N+ N- VNAM MODEL <ON> <OFF>
Example of class initialization:
CSwitch new 1 net1 0 -icntrl v1 -model sw1 -on
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 ?-m value? ?-temp value? ?-tc1 value? ?-tc2 value?
Parameters
-l value:Inductance value.
-m value:Multiplier value, optional.
-tc1 value:Linear thermal coefficient, optional.
-tc2 value:Quadratic thermal coefficient, optional.
-temp value:Device temperature, optional, 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
Simple inductor:
LXXXXXXX n+ n- <value> <m=val> <temp=val> <tc1=val> <tc2=val>
Example of class initialization:
Inductor new 1 netp netm -l 1e3 -tc1 1 -temp {-eq temp_amb}
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
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
R, ::SpiceGenTcl::Ltspice::BasicDevices::Resistor
constructor¶
Creates object of class Resistor that describes resistor.
OBJECT constructor name np nm -r value ?-m value? ?-temp value? ?-tc1 value? ?-tc2 value?
Parameters
-m value:Multiplier value, optional.
-r value:Resistance value.
-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 R.
nm:Name of node connected to negative pin.
np:Name of node connected to positive pin.
Description
Simple resistor:
RXXXXXXX n+ n- <value> <m=val> <temp=val> <tc1=val> <tc2=val>
Example of class initialization:
Resistor new 1 netp netm -r 1e3 -tc1 1 -temp {-eq temp_amb}
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}
VSw¶
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
VSwitch¶
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
VSw, ::SpiceGenTcl::Ngspice::BasicDevices::VSwitch, ::SpiceGenTcl::Xyce::BasicDevices::VSwitch, ::SpiceGenTcl::Ltspice::BasicDevices::VSwitch
constructor¶
Creates object of class VSwitch that describes voltage controlled switch device.
OBJECT constructor name np nm ncp ncm -model value ?-on|-off?
Parameters
-model value:Model name.
-on/-off:Initial state of switch.
name:Name of the device without first-letter designator S.
ncm:Name of node connected to negative controlling pin.
ncp:Name of node connected to positive controlling pin.
nm:Name of node connected to negative pin.
np:Name of node connected to positive pin.
Description
SXXXXXXX N+ N- NC+ NC- MODEL <ON> <OFF>
Example of class initialization:
VSwitch new 1 net1 0 netc 0 -model sw1 -on
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