::SpiceGenTcl::Ltspice::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

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

::SpiceGenTcl::Device

Subclasses

C

constructor

Creates object of class Capacitor that describes capacitor.

OBJECT constructor name np nm -c value ?-m value? ?-temp value? ?-ic value? ?-rser value? ?-lser value? ?-rpar value? ?-cpar value? ?-rlshunt value?
OBJECT constructor name np nm -q value ?-m value? ?-ic value? ?-rser value? ?-lser value? ?-rpar value? ?-cpar value? ?-rlshunt value?

Parameters

-c value:

Capacitance value or equation.

-cpar value:

Parallel capacitor, optional.

-ic value:

Initial voltage on capacitor, optional.

-lser value:

Series inductance, optional.

-m value:

Multiplier value, optional.

-q value:

Charge equation.

-rlshunt value:

Shunt resistance across series inductance, optional.

-rpar value:

Parallel resistance, optional.

-rser value:

Series resistance, optional.

-temp value:

Device temperature, 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 switch -q if we want to model circuit’s variable dependent capacitor. Simple capacitor:

Cnnn n1 n2 <capacitance> [ic=<value>]
+ [Rser=<value>] [Lser=<value>] [Rpar=<value>]
+ [Cpar=<value>] [m=<value>]
+ [RLshunt=<value>] [temp=<value>]

Example of class initialization as a simple capacitor:

Capacitor new 1 netp netm -r 1e-6 -temp {-eq temp}

Behavioral capacitor with Q expression:

Cnnn n1 n2 Q=<expression> [ic=<value>] [m=<value>]

Example of class initialization:

Capacitor new 1 netp netm -q "V(a)+V(b)+pow(V(c),2)"

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

W

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

::SpiceGenTcl::Model

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

::SpiceGenTcl::Device

Subclasses

L

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

-a value:

Cross sectional area.

-br value:

Remnant flux density.

-bs value:

Saturation flux density.

-cpar value:

Parallel capacitor.

-flux value:

Equation for the flux.

-hc value:

Coercive force.

-hyst:

Nonlinear inductor model switch -m value- number of parallel units.

-ic value:

Initial current.

-l value:

Inductance value.

-lg value:

Length of gap.

-lm value:

Magnetic Length (excl. gap)

-n value:

Number of turns.

-rpar value:

Parallel resistance.

-rser value:

Series resistance.

-tc1 value:

Linear inductance temperature coefficient.

-tc2 value:

Quadratic inductance temperature coefficient.

-temp value:

Device temperature.

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

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

Inductor

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

Resistor

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::Resistor

Subclasses

R

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

::SpiceGenTcl::Device

Subclasses

X

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

Xxxx n1 n2 n3... <subckt name> [<parameter>=<expression>]

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

::SpiceGenTcl::Device

Subclasses

XAuto

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

Xxxx n1 n2 n3... <subckt name> [<parameter>=<expression>]

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

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

VSw

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

::SpiceGenTcl::Model

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

CSwitch

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

SubcircuitInstance

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

SubcircuitInstanceAuto


Copyright (c) George Yashin