Tcl SpiceGenTcl package (v0.60)

::SpiceGenTcl::Xyce::SemiconductorDevicesTop, Main, Index

ClassesTop, Main, Index

Bjt [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringModify substrate pin string in order to complain square brackets enclosure, see BJT info in reference manual of Xyce.
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

::SpiceGenTcl::Device

Subclasses

Q

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::Bjt]Bjt, Top, Main, Index

Creates object of class Bjt that describes semiconductor bipolar junction transistor device.

OBJECT constructor name ncNode nbNode neNode -model value ?-ns value ?-tj value?? ?-area value? ?-m value? ?-temp value? ?-off? ?-ic1 value? ?-ic2 value?
Parameters
nameName of the device without first-letter designator Q.
ncNodeName of node connected to collector pin.
nbNodeName of node connected to base pin.
neNodeName of node connected to emitter pin.
-areaScale factor, optional.
-ic1Initial conditions for vbe, optional.
-ic2Initial conditions for vce, optional.
-mMultiplier of area and perimeter, optional.
-modelName of the model.
-nsName of node connected to substrate pin, optional.
-tempDevice temperature, optional.
-tjName of node connected to thermal pin, optional, requires -ns.
Description
QXXXXXXX nc nb ne <ns> <tj> mname <area=val> <areac=val>
+ <areab=val> <m=val> <off> <ic=vbe,vce> <temp=val>
+ <dtemp=val>

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::Bjt new 1 netc netb nete -model bjtmod -ns nets -area 1e-3
method constructor {name ncNode nbNode neNode args} {

    # Creates object of class `Bjt` that describes semiconductor bipolar junction transistor device.
    #  name - name of the device without first-letter designator Q
    #  ncNode - name of node connected to collector pin
    #  nbNode - name of node connected to base pin
    #  neNode - name of node connected to emitter pin
    #  -model - name of the model
    #  -area - scale factor, optional
    #  -m - multiplier of area and perimeter, optional
    #  -temp - device temperature, optional
    #  -ic1 - initial conditions for vbe, optional
    #  -ic2 - initial conditions for vce, optional
    #  -ns - name of node connected to substrate pin, optional
    #  -tj - name of node connected to thermal pin, optional, requires -ns
    # ```
    # QXXXXXXX nc nb ne <ns> <tj> mname <area=val> <areac=val>
    # + <areab=val> <m=val> <off> <ic=vbe,vce> <temp=val>
    # + <dtemp=val>
    # ```
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::Bjt new 1 netc netb nete -model bjtmod -ns nets -area 1e-3
    # ```
    # Synopsis: name ncNode nbNode neNode -model value ?-ns value ?-tj value?? ?-area value? ?-m value?
    #   ?-temp value? ?-off? ?-ic1 value? ?-ic2 value?
    set arguments [argparse -inline {
        {-model= -required}
        -area=
        -m=
        -temp=
        {-off -boolean}
        -ic1=
        -ic2=
        -ns=
        {-tj= -require {ns}}
    }]
    lappend params "model [dget $arguments model] -posnocheck"
    if {[dexist $arguments area]} {
        set areaVal [dget $arguments area]
        if {([llength $areaVal]>1) && ([@ $areaVal 1]=="-eq")} {
            lappend params "area [@ $areaVal 0] -poseq"
        } else {
            lappend params "area $areaVal -pos"
        }
    }
    dict for {paramName value} $arguments {
        if {$paramName ni {model area off ns tj}} {
            lappend params "$paramName $value"
        }
    }
    set pinList [list "nc $ncNode" "nb $nbNode" "ne $neNode"]
    if {[dexist $arguments ns]} {
        lappend pinList "ns [dget $arguments ns]"
        if {[dexist $arguments tj]} {
            lappend pinList "tj [dget $arguments tj]"
        }
    }
    next q$name $pinList $params
}

genSPICEString [::SpiceGenTcl::Xyce::SemiconductorDevices::Bjt]Bjt, Top, Main, Index

Modify substrate pin string in order to complain square brackets enclosure, see BJT info in reference manual of Xyce

OBJECT genSPICEString
method genSPICEString {} {

    # Modify substrate pin string in order to complain square brackets enclosure,
    # see BJT info in reference manual of Xyce
    set SPICEStr [next]
    if {[dexist [my getPins] ns]} {
        set SPICEList [split $SPICEStr]
        set SPICEStr [join [lreplace $SPICEList 4 4 "\[[@ $SPICEList 4]\]"]]
    }
    return $SPICEStr
}

BjtGPModel [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Model.addParam
argsPreprocessSee ::SpiceGenTcl::KeyArgsBuilder.argsPreprocess
buildArgStrSee ::SpiceGenTcl::KeyArgsBuilder.buildArgStr
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Model.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Model.genSPICEString
getParamsSee ::SpiceGenTcl::Model.getParams
setParamValueSee ::SpiceGenTcl::Model.setParamValue
Properties

Readable: -name, -type

Writable: -name, -type

Superclasses

::SpiceGenTcl::Model

Mixins

::SpiceGenTcl::KeyArgsBuilder

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::BjtGPModel]BjtGPModel, Top, Main, Index

Creates object of class BjtGPModel that describes Gummel-Poon model of semiconductor bipolar transistor.

OBJECT constructor name type ?-option value ...?
Parameters
nameName of the model.
typeNpn or pnp.
argsKeyword model parameters, for details please refer to Xyce reference manual, 2.3.17 section.
Description

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::DiodeModel new bjtmod npn -is 1e-15 -bf 200 -vaf 100 -cje 1e-10
method constructor {name type args} {

    # Creates object of class `BjtGPModel` that describes Gummel-Poon model of semiconductor bipolar transistor.
    #  name - name of the model
    #  type - npn or pnp
    #  args - keyword model parameters, for details please refer to Xyce reference manual, 2.3.17 section.
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::DiodeModel new bjtmod npn -is 1e-15 -bf 200 -vaf 100 -cje 1e-10
    # ```
    # Synopsis: name type ?-option value ...?
    set paramsNames [list af bf bfm br brm bv c2 c4 ccs cdis cjc cje cjs csub eg esub fc ik ikf ikr  iob irb is isc ise itf jbf jbr jlc jle jrb jtf kf mc me mjc mje mjs ms nc ne nf nk nkf  nle nr pc pe ps psub pt ptf rb rbm rc re tb tcb tempmodel tf tnom tr va vaf var vb vbf  vjc vje vjs vrb vtf xcjc xtb xtf xti]
    set params [my argsPreprocess $paramsNames {*}$args]
    next $name $type [linsert $params 0 [list level 1]]
}

D [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Device.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

Diode

Diode [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Device.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

::SpiceGenTcl::Device

Subclasses

D

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::Diode]Diode, Top, Main, Index

Creates object of class Diode that describes semiconductor diode device.

OBJECT constructor name npNode nmNode -model value ?-area value? ?-pj value? ?-ic value? ?-m value? ?-temp value? ?-custparams param1 {param1Val ?-eq|-poseq|-posnocheck|-pos|-nocheck?} ...?
Parameters
nameName of the device without first-letter designator D.
npNodeName of node connected to positive pin.
nmNodeName of node connected to negative pin.
-areaArea scale factor, optional.
-custparamsKey that collects all arguments at the end of device definition, to provide an ability to add custom parameters in form -custparams param1 param1Val param2 {param2eq -eq} param3 param3Val ... Must be specified after all others options. Optional.
-icInitial condition, optional.
-mMultiplier of area and perimeter, optional.
-modelName of the model.
-pjPerimeter scale factor, optional.
-tempDevice temperature, optional.
Description
D<name> <(+) node> <(-) node> <model name> [device parameters]

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::Diode new 1 netp netm -model diomod -area 1e-6
method constructor {name npNode nmNode args} {

    # Creates object of class `Diode` that describes semiconductor diode device.
    #  name - name of the device without first-letter designator D
    #  npNode - name of node connected to positive pin
    #  nmNode - name of node connected to negative pin
    #  -model - name of the model
    #  -area - area scale factor, optional
    #  -m - multiplier of area and perimeter, optional
    #  -pj - perimeter scale factor, optional
    #  -ic - initial condition, optional
    #  -temp - device temperature, optional
    #  -custparams - key that collects all arguments at the end of device definition, to provide an ability
    #  to add custom parameters in form `-custparams param1 param1Val param2 {param2eq -eq} param3 param3Val ...`
    #  Must be specified after all others options. Optional.
    # ```
    # D<name> <(+) node> <(-) node> <model name> [device parameters]
    # ```
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::Diode new 1 netp netm -model diomod -area 1e-6
    # ```
    # Synopsis: name npNode nmNode -model value ?-area value? ?-pj value? ?-ic value? ?-m value? ?-temp value?
    #   ?-custparams param1 \{param1Val ?-eq|-poseq|-posnocheck|-pos|-nocheck?\} ...?
    set arguments [argparse -inline {
        {-model= -required}
        -area=
        -pj=
        -ic=
        -m=
        -temp=
        {-custparams -catchall}
    }]
    lappend params "model [dget $arguments model] -posnocheck"
    if {[dexist $arguments area]} {
        set areaVal [dget $arguments area]
        if {([llength $areaVal]>1) && ([@ $areaVal 1]=="-eq")} {
            lappend params "area [@ $areaVal 0] -poseq"
        } else {
            lappend params "area $areaVal -pos"
        }
    }
    if {[dexist $arguments pj]} {
        set pjVal [dget $arguments pj]
        if {([llength $pjVal]>1) && ([@ $pjVal 1]=="-eq")} {
            lappend params "pj [@ $pjVal 0] -poseq"
        } else {
            lappend params "pj $pjVal -pos"
        }
    }
    dict for {paramName value} $arguments {
        if {$paramName ni {model custparams area pj}} {
            lappend params "$paramName $value"
        }
    }
    if {[dget $arguments custparams]!=""} {
        if {[llength [dget $arguments custparams]]%2!=0} {
            return -code error "Custom parameters list must be even length"
        }
        set custParamDict [dcreate {*}[dget $arguments custparams]]
        dict for {paramName value} $custParamDict {
            lappend params "$paramName $value"
        }
    }
    next d$name [list "np $npNode" "nm $nmNode"] $params
}

DiodeModel [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Model.addParam
argsPreprocessSee ::SpiceGenTcl::KeyArgsBuilder.argsPreprocess
buildArgStrSee ::SpiceGenTcl::KeyArgsBuilder.buildArgStr
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Model.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Model.genSPICEString
getParamsSee ::SpiceGenTcl::Model.getParams
setParamValueSee ::SpiceGenTcl::Model.setParamValue
Properties

Readable: -name, -type

Writable: -name, -type

Superclasses

::SpiceGenTcl::Model

Mixins

::SpiceGenTcl::KeyArgsBuilder

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::DiodeModel]DiodeModel, Top, Main, Index

Creates object of class DiodeModel that describes semiconductor diode model.

OBJECT constructor name ?-option value ...?
Parameters
nameName of the model.
argsKeyword model parameters, for details please refer to Xyce reference manual, 2.3.8 section.
Description

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::DiodeModel new diodemod -is 1e-14 -n 1.2 -rs 0.01 -cj0 1e-9
method constructor {name args} {

    # Creates object of class `DiodeModel` that describes semiconductor diode model.
    #  name - name of the model
    #  args - keyword model parameters, for details please refer to Xyce reference manual, 2.3.8 section.
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::DiodeModel new diodemod -is 1e-14 -n 1.2 -rs 0.01 -cj0 1e-9
    # ```
    # Synopsis: name ?-option value ...?
    set paramsNames [list level  af bv cj cj0 cjo cjp cjsw eg fc fcs ibv ibvl ikf is isr  js jsw kf m mjsw n nbv nbvl nr ns php rs tbv1 tbv2 tikf tnom trs trs1 trs2  tt vb vj vjsw xti]
    next $name d [my argsPreprocess $paramsNames {*}$args]
}

J [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Device.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

Jfet

Jfet [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Device.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

::SpiceGenTcl::Device

Subclasses

J

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet]Jfet, Top, Main, Index

Creates object of class Jfet that describes semiconductor junction FET device.

OBJECT constructor name ndNode ngNode nsNode -model value ?-area value? ?-temp value?
Parameters
nameName of the device without first-letter designator J.
ndNodeName of node connected to drain pin.
ngNodeName of node connected to gate pin.
nsNodeName of node connected to source pin.
-areaScale factor, optional.
-modelName of the model.
-tempDevice temperature, optional.
Description
J<name> <drain node> <gate node> <source node> <model name> [area value] [device parameters]

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet new 1 netd netg nets -model jfetmod -area {area*2 -eq} -temp 25
method constructor {name ndNode ngNode nsNode args} {

    # Creates object of class `Jfet` that describes semiconductor junction FET device.
    #  name - name of the device without first-letter designator J
    #  ndNode - name of node connected to drain pin
    #  ngNode - name of node connected to gate pin
    #  nsNode - name of node connected to source pin
    #  -model - name of the model
    #  -area - scale factor, optional
    #  -temp - device temperature, optional
    # ```
    # J<name> <drain node> <gate node> <source node> <model name> [area value] [device parameters]
    # ```
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet new 1 netd netg nets -model jfetmod -area {area*2 -eq} -temp 25
    # ```
    # Synopsis: name ndNode ngNode nsNode -model value ?-area value? ?-temp value?
    set arguments [argparse -inline {
        {-model= -required}
        -area=
        -temp=
    }]
    lappend params "model [dget $arguments model] -posnocheck"
    if {[dexist $arguments area]} {
        set areaVal [dget $arguments area]
        if {([llength $areaVal]>1) && ([@ $areaVal 1]=="-eq")} {
            lappend params "area [@ $areaVal 0] -poseq"
        } else {
            lappend params "area $areaVal -pos"
        }
    }
    dict for {paramName value} $arguments {
        if {$paramName ni {model area}} {
            lappend params "$paramName $value"
        }
    }
    next j$name [list "nd $ndNode" "ng $ngNode" "ns $nsNode"] $params
}

Jfet1Model [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Model.addParam
argsPreprocessSee ::SpiceGenTcl::KeyArgsBuilder.argsPreprocess
buildArgStrSee ::SpiceGenTcl::KeyArgsBuilder.buildArgStr
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Model.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Model.genSPICEString
getParamsSee ::SpiceGenTcl::Model.getParams
setParamValueSee ::SpiceGenTcl::Model.setParamValue
Properties

Readable: -name, -type

Writable: -name, -type

Superclasses

::SpiceGenTcl::Model

Mixins

::SpiceGenTcl::KeyArgsBuilder

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet1Model]Jfet1Model, Top, Main, Index

Creates object of class Jfet1Model that describes JFET level 1 model with Parker Skellern modification.

OBJECT constructor name type ?-option value ...?
Parameters
nameName of the model.
typeNjf or pjf.
argsKeyword model parameters, for details please refer to Xyce reference manual, 2.3.18 section.
Description

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet1Model new jfetmod njf -vto 2 -beta 1e-3 -lambda 1e-4 -cgd 1e-12
method constructor {name type args} {

    # Creates object of class `Jfet1Model` that describes JFET level 1 model with Parker Skellern modification.
    #  name - name of the model
    #  type - njf or pjf
    #  args - keyword model parameters, for details please refer to Xyce reference manual, 2.3.18 section.
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet1Model new jfetmod njf -vto 2 -beta 1e-3 -lambda 1e-4 -cgd 1e-12
    # ```
    # Synopsis: name type ?-option value ...?
    set paramsNames [list af b beta cgd cgs delta fc is kf lambda pb rd rs tempmodel theta tnom vto]
    set params [my argsPreprocess $paramsNames {*}$args]
    next $name $type [linsert $params 0 [list level 1]]
}

Jfet2Model [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Model.addParam
argsPreprocessSee ::SpiceGenTcl::KeyArgsBuilder.argsPreprocess
buildArgStrSee ::SpiceGenTcl::KeyArgsBuilder.buildArgStr
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Model.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Model.genSPICEString
getParamsSee ::SpiceGenTcl::Model.getParams
setParamValueSee ::SpiceGenTcl::Model.setParamValue
Properties

Readable: -name, -type

Writable: -name, -type

Superclasses

::SpiceGenTcl::Model

Mixins

::SpiceGenTcl::KeyArgsBuilder

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet2Model]Jfet2Model, Top, Main, Index

Creates object of class Jfet2Model that describes JFET level 2 model with Parker Skellern modification.

OBJECT constructor name type ?-option value ...?
Parameters
nameName of the model.
typeNjf or pjf.
argsKeyword model parameters, for details please refer to Xyce reference manual, 2.3.18 section.
Description

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet2Model new jfetmod njf -vto -2 -beta 10e-4 -rs 1e-4 -vbi 1.2
method constructor {name type args} {

    # Creates object of class `Jfet2Model` that describes JFET level 2 model with Parker Skellern modification.
    #  name - name of the model
    #  type - njf or pjf
    #  args - keyword model parameters, for details please refer to Xyce reference manual, 2.3.18 section.
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet2Model new jfetmod njf -vto -2 -beta 10e-4 -rs 1e-4 -vbi 1.2
    # ```
    # Synopsis: name type ?-option value ...?
    set paramsNames [list af b beta cgd cgs delta fc is kf lambda pb rd rs tempmodel theta tnom vto]
    set params [my argsPreprocess $paramsNames {*}$args]
    next $name $type [linsert $params 0 [list level 2]]
}

M [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Device.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

Mosfet

Mesfet [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Device.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

::SpiceGenTcl::Device

Subclasses

Z

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::Mesfet]Mesfet, Top, Main, Index

Creates object of class Mesfet that describes semiconductor MESFET device.

OBJECT constructor name ndNode ngNode nsNode -model value ?-area value? ?-temp value?
Parameters
nameName of the device without first-letter designator Z.
ndNodeName of node connected to drain pin.
ngNodeName of node connected to gate pin.
nsNodeName of node connected to source pin.
-areaEmitter scale factor, optional.
-modelName of the model.
-tempDevice temperature, optional.
Description
Z<name> < drain node> <gate node> <source node> <model name> [area value] [device parameters]

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::Mesfet new 1 netd netg nets -model mesfetmod -area {area*2 -eq}
method constructor {name ndNode ngNode nsNode args} {

    # Creates object of class `Mesfet` that describes semiconductor MESFET device.
    #  name - name of the device without first-letter designator Z
    #  ndNode - name of node connected to drain pin
    #  ngNode - name of node connected to gate pin
    #  nsNode - name of node connected to source pin
    #  -model - name of the model
    #  -area - emitter scale factor, optional
    #  -temp - device temperature, optional
    # ```
    # Z<name> < drain node> <gate node> <source node> <model name> [area value] [device parameters]
    # ```
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::Mesfet new 1 netd netg nets -model mesfetmod -area {area*2 -eq}
    # ```
    # Synopsis: name ndNode ngNode nsNode -model value ?-area value? ?-temp value?
    set arguments [argparse -inline {
        {-model= -required}
        -area=
        -temp=
    }]
    lappend params "model [dget $arguments model] -posnocheck"
    if {[dexist $arguments area]} {
        set areaVal [dget $arguments area]
        if {([llength $areaVal]>1) && ([@ $areaVal 1]=="-eq")} {
            lappend params "area [@ $areaVal 0] -poseq"
        } else {
            lappend params "area $areaVal -pos"
        }
    }
    dict for {paramName value} $arguments {
        if {$paramName ni {model area}} {
            lappend params "$paramName $value"
        }
    }
    next z$name [list "nd $ndNode" "ng $ngNode" "ns $nsNode"] $params
}

Mesfet1Model [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Model.addParam
argsPreprocessSee ::SpiceGenTcl::KeyArgsBuilder.argsPreprocess
buildArgStrSee ::SpiceGenTcl::KeyArgsBuilder.buildArgStr
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Model.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Model.genSPICEString
getParamsSee ::SpiceGenTcl::Model.getParams
setParamValueSee ::SpiceGenTcl::Model.setParamValue
Properties

Readable: -name, -type

Writable: -name, -type

Superclasses

::SpiceGenTcl::Model

Mixins

::SpiceGenTcl::KeyArgsBuilder

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::Mesfet1Model]Mesfet1Model, Top, Main, Index

Creates object of class Mesfet1Model that describes MESFET model by Statz e.a..

OBJECT constructor name type ?-option value ...?
Parameters
nameName of the model.
typeNmf or pmf.
argsKeyword model parameters, for details please refer to Xyce reference manual, 2.3.19 section.
Description

Example of class initialization:

::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet2Model new jfetmod njf -vto -2 -beta 10e-4 -rs 1e-4 -vbi 1.2
method constructor {name type args} {

    # Creates object of class `Mesfet1Model` that describes MESFET model by Statz e.a..
    #  name - name of the model
    #  type - nmf or pmf
    #  args - keyword model parameters, for details please refer to Xyce reference manual, 2.3.19 section.
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::SemiconductorDevices::Jfet2Model new jfetmod njf -vto -2 -beta 10e-4 -rs 1e-4 -vbi 1.2
    # ```
    # Synopsis: name type ?-option value ...?
    set paramsNames [list af alpha b beta cgd cgs fc is kf lambda pb rd rs tempmodel tnom vto]
    set params [my argsPreprocess $paramsNames {*}$args]
    next $name $type [linsert $params 0 [list level 1]]
}

Mosfet [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
constructorConstructor for the class.
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Device.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

::SpiceGenTcl::Device

Subclasses

M

constructor [::SpiceGenTcl::Xyce::SemiconductorDevices::Mosfet]Mosfet, Top, Main, Index

Creates object of class Mosfet that describes semiconductor MOSFET device.

OBJECT constructor name ndNode ngNode nsNode -model value ?-n4 value ?-n5 value ?-n6 value ?-n7 value???? ?-m value? ?-l value? ?-w value? ?-ad value|-nrd value? ?-as value|-nrs value? ?-temp value? ?-off? ?-pd value? ?-ps value? ?-ic {value value value}? ?-custparams param1 {param1Val ?-eq|-poseq|-posnocheck|-pos|-nocheck?} ...?
Parameters
nameName of the device without first-letter designator M.
ndNodeName of node connected to drain pin.
ngNodeName of node connected to gate pin.
nsNodeName of node connected to source pin.
-adDiffusion area of drain, optional, forbid -nrd.
-asDiffusion area of source, optional,forbid -nrs.
-custparamsKey that collects all arguments at the end of device definition, to provide an ability to add custom parameters in form -custparams param1 param1Val param2 {param2eq -eq} param3 param3Val ... Must be specified after all others options. Optional.
-icInitial conditions for vds, vgs and vbs, in form of two element list, optional, require 4th node.
-lLength of channel, optional.
-mMultiplier, optional.
-modelName of the model.
-n4Name of 4th node;
-n5Name of 5th node, require -n4, optional.
-n6Name of 6th node, require -n5, optional.
-n7Name of 7th node, require -n6, optional.
-nrdEquivalent number of squares of the drain diffusions.
-nrsEquivalent number of squares of the source diffusions.
-offInitial state, optional.
-pdPerimeter area of drain, optional.
-psPerimeter area of source, optional.
-tempDevice temperature.
-wWidth of channel, optional.
Description
M<name> <drain node> <gate node> <source node>
+ <bulk/substrate node> <model name>
+ [L=<value>] [W=<value>]
+ [AD=<value>] [AS=<value>]
+ [PD=<value>] [PS=<value>]
+ [NRD=<value>] [NRS=<value>]
+ [M=<value] [IC=<value, ...>]

Example of class initialization:

::SpiceGenTcl::Xyce::Mosfet new 1 netd netg nets -model mosfetmod -l 1e-6 -w 10e-3 -n4 netsub -n5 net5
method constructor {name ndNode ngNode nsNode args} {

    # Creates object of class `Mosfet` that describes semiconductor MOSFET device.
    #  name - name of the device without first-letter designator M
    #  ndNode - name of node connected to drain pin
    #  ngNode - name of node connected to gate pin
    #  nsNode - name of node connected to source pin
    #  -model - name of the model
    #  -m - multiplier, optional
    #  -l - length of channel, optional
    #  -w - width of channel, optional
    #  -ad - diffusion area of drain, optional, forbid -nrd
    #  -as - diffusion area of source, optional,forbid -nrs
    #  -pd - perimeter area of drain, optional
    #  -ps - perimeter area of source, optional
    #  -nrd - equivalent number of squares of the drain diffusions
    #  -nrs - equivalent number of squares of the source diffusions
    #  -temp - device temperature
    #  -ic - initial conditions for vds, vgs and vbs, in form of two element list, optional, require 4th node
    #  -off - initial state, optional
    #  -n4 - name of 4th node;
    #  -n5 - name of 5th node, require -n4, optional
    #  -n6 - name of 6th node, require -n5, optional
    #  -n7 - name of 7th node, require -n6, optional
    #  -custparams - key that collects all arguments at the end of device definition, to provide an ability
    #  to add custom parameters in form `-custparams param1 param1Val param2 {param2eq -eq} param3 param3Val ...`
    #  Must be specified after all others options. Optional.
    # ```
    # M<name> <drain node> <gate node> <source node>
    # + <bulk/substrate node> <model name>
    # + [L=<value>] [W=<value>]
    # + [AD=<value>] [AS=<value>]
    # + [PD=<value>] [PS=<value>]
    # + [NRD=<value>] [NRS=<value>]
    # + [M=<value] [IC=<value, ...>]
    # ```
    # Example of class initialization:
    # ```
    # ::SpiceGenTcl::Xyce::Mosfet new 1 netd netg nets -model mosfetmod -l 1e-6 -w 10e-3 -n4 netsub -n5 net5
    # ```
    # Synopsis: name ndNode ngNode nsNode -model value ?-n4 value ?-n5 value ?-n6 value ?-n7 value???? ?-m value?
    #   ?-l value? ?-w value? ?-ad value|-nrd value? ?-as value|-nrs value? ?-temp value? ?-off? ?-pd value?
    #   ?-ps value? ?-ic \{value value value\}?
    #   ?-custparams param1 \{param1Val ?-eq|-poseq|-posnocheck|-pos|-nocheck?\} ...?
    set arguments [argparse -inline {
        {-model= -required}
        -m=
        -l=
        -w=
        {-ad= -forbid {nrd}}
        {-as= -forbid {nrs}}
        -pd=
        -ps=
        {-nrd= -forbid {ad}}
        {-nrs= -forbid {as}}
        -temp=
        {-ic= -validate {[llength $arg]==3}}
        -n4=
        {-n5= -require {n4}}
        {-n6= -require {n5}}
        {-n7= -require {n7}}
        {-custparams -catchall}
    }]
    lappend params "model [dget $arguments model] -posnocheck"
    if {[dexist $arguments ic]} {
        lappend params "ic [join [dget $arguments ic] ,] -nocheck"
    }
    dict for {paramName value} $arguments {
        if {$paramName ni {model off ic n4 n5 n6 n7 custparams}} {
            lappend params "$paramName $value"
        }
    }
    if {[dget $arguments custparams]!=""} {
        if {[llength [dget $arguments custparams]]%2!=0} {
            return -code error "Custom parameters list must be even length"
        }
        set custParamDict [dcreate {*}[dget $arguments custparams]]
        dict for {paramName value} $custParamDict {
            lappend params "$paramName $value"
        }
    }
    set pinList [list "nd $ndNode" "ng $ngNode" "ns $nsNode"]
    if {[dexist $arguments n4]} {
        lappend pinList "n4 [dget $arguments n4]"
        if {[dexist $arguments n5]} {
            lappend pinList "n5 [dget $arguments n5]"
            if {[dexist $arguments n6]} {
                lappend pinList "n6 [dget $arguments n6]"
                if {[dexist $arguments n7]} {
                    lappend pinList "n7 [dget $arguments n7]"
                }
            }
        }
    }
    next m$name $pinList $params
}

Q [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee Bjt.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

Bjt

Z [::SpiceGenTcl::Xyce::SemiconductorDevices]Top, Main, Index

Method summary
addParamSee ::SpiceGenTcl::Device.addParam
checkFloatingPinsSee ::SpiceGenTcl::Device.checkFloatingPins
configureConfigure properties.
deleteParamSee ::SpiceGenTcl::Device.deleteParam
duplListCheckSee ::SpiceGenTcl::DuplChecker.duplListCheck
genSPICEStringSee ::SpiceGenTcl::Device.genSPICEString
getParamsSee ::SpiceGenTcl::Device.getParams
getPinsSee ::SpiceGenTcl::Device.getPins
setParamValueSee ::SpiceGenTcl::Device.setParamValue
setPinNodeNameSee ::SpiceGenTcl::Device.setPinNodeName
Properties

Readable: -name

Writable: -name

Superclasses

Mesfet