Package Modelica.​Electrical.​Spice3.​Internal.​Mosfet
Functions and records for MOSFETs

Information

The package Mosfet contains all functions and records that are used for all types of Mosfet transistors in SPICE3.

Extends from Modelica.​Icons.​InternalPackage (Icon for an internal package (indicating that the package should not be directly utilized by user)).

Package Contents

NameDescription
getNumberOfElectricalPinsNumber of Pins
MosfetRecord for Mosfet parameters
MosfetCalcMosfet Variables
mosfetInitEquationsMOSFET initial precalculations
MosfetModelLineType of the transistor
mosfetModelLineInitEquationsType transcription
MosfetModelLineParamsRecord for Mosfet model line parameters
mosfetRenameParametersDevDevice parameter renaming to internal names

Record Modelica.​Electrical.​Spice3.​Internal.​Mosfet.​Mosfet
Record for Mosfet parameters

Information

This record Mosfet contains parameters that are used for all types of Mosfet transistors in SPICE3.

Extends from Modelica.​Electrical.​Spice3.​Internal.​Model.​Model (Device Temperature).

Fields

TypeNameDescription
Temp_Km_dTempTEMP, Device Temperature
Lengthm_lenL, length of channel region
Lengthm_widthW, width of channel region
Aream_drainAreaAD, area of drain diffusion
Aream_sourceAreaAS, area of source diffusion
Realm_drainSquaresNRD, length of drain in squares
Realm_sourceSquaresNRS, length of source in squares
Lengthm_drainPerimeterPD, Drain perimeter
Lengthm_sourcePerimeterPS, Source perimeter
Voltagem_dICVDSIC_VDS, Initial D-S voltage
Realm_dICVDSIsGivenIC_VDS, IsGivenValue
Voltagem_dICVGSIC_VGS, Initial G-S voltage
Realm_dICVGSIsGivenIC_VGS, IsGivenValue
Voltagem_dICVBSIC_VBS, Initial B-S voltage
Realm_dICVBSIsGivenIC_VBS, IsGivenValue
Integerm_offDevice initially off, non-zero to indicate device is off for dc analysis
Integerm_bPMOSP type MOSFET model
Integerm_nLevelMOS model level
Lengthm_drainPerimiterPD, Drain perimeter
Lengthm_sourcePerimiterPS, Source perimeter
Booleanm_uic 

Record Modelica.​Electrical.​Spice3.​Internal.​Mosfet.​MosfetModelLineParams
Record for Mosfet model line parameters

Information

This record MosfetModelLineParams contains the model line parameters that are used for all kinds of Mosfet transistors in SPICE3.

Extends from Modelica.​Icons.​Record (Icon for records).

Fields

TypeNameDescription
Realm_jctSatCurDensityJS, Bulk jct. sat. current density, input - use tSatCurDens
Resistancem_sheetResistanceRSH, Sheet resistance
Realm_bulkJctPotentialPB, Bulk junction potential, input - use tBulkPot
LinearTemperatureCoefficientm_bulkJctBotGradingCoeffMJ, Bottom grading coefficient
LinearTemperatureCoefficientm_bulkJctSideGradingCoeffMJSW, Side grading coefficient
Realm_oxideThicknessTOX, Oxide thickness unit: micron
Realm_oxideThicknessIsGivenTOX, IsGiven value
Realm_gateSourceOverlapCapFactorCGS0, Gate-source overlap cap
Realm_gateDrainOverlapCapFactorCGD0, Gate-drain overlap cap
Realm_gateBulkOverlapCapFactorCGB0, Gate-bulk overlap cap
Realm_fNcoefKF, Flicker noise coefficient
Realm_fNexpAF, Flicker noise exponent
Realm_mjswIsGivenMJSW, IsGivenValue
Realm_cgsoIsGivenCGSO, IsGivenValue
Realm_cgdoIsGivenCGDO, IsGivenValue
Realm_cgboIsGivenCGBO, IsGivenValue
Realm_pbIsGivenPB, IsGivenValue

Record Modelica.​Electrical.​Spice3.​Internal.​Mosfet.​MosfetModelLine
Type of the transistor

Information

This record contains only one variable and it provides the information on the transistor type (PMOS or nmos).

Extends from Modelica.​Icons.​Record (Icon for records).

Fields

TypeNameDescription
Integerm_typedevice type : 1 = n, -1 = p

Record Modelica.​Electrical.​Spice3.​Internal.​Mosfet.​MosfetCalc
Mosfet Variables

Information

This record MosfetCalc contains variables that are needed for calculation within modeling the semiconductor models.

Extends from Modelica.​Icons.​Record (Icon for records).

Fields

TypeNameDescription
Voltagem_vdsVds, Drain-Source voltage
Voltagem_vgsVgs, Gate-Source voltage
Voltagem_vbsVbs, Bulk-Source voltage
Currentm_cbsIbs, B-S junction current
Conductancem_gbsGbs, Bulk-Source conductance
Currentm_cbdIbd, B-D junction current
Conductancem_gbdGbd, Bulk-Drain conductance
Currentm_cdrainIds
Conductancem_gdsGds, Drain-Source conductance
Transconductancem_gmGm, Transconductance
Transconductancem_gmbsGmbs, Bulk-Source transconductance
Capacitancem_capbsbCbsb
Chargem_chargebsbQbsb
Capacitancem_capbssCbss
Chargem_chargebssQbss
Capacitancem_capbdbCbdb
Chargem_chargebdbQbdb
Capacitancem_capbdsCbds
Chargem_chargebdsQbds
Realm_BetaBeta
Capacitancem_capGSovlCgso, Gate-source overlap cap.
Capacitancem_capGDovlCgdo, Gate-drain overlap cap.
Capacitancem_capGBovlCgbo, Gate-bulk overlap cap.
Capacitancem_capOxCox
Voltagem_vonVon, Turn-on voltage
Voltagem_vdsatVdsat
Integerm_modeMode
Lengthm_lEff 
Resistancem_sourceResistanceRs
Resistancem_drainResistanceRd

Function Modelica.​Electrical.​Spice3.​Internal.​Mosfet.​mosfetInitEquations
MOSFET initial precalculations

Information

This function initially precalculates some values for transistor area which can be used for all transistor models.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Mosfetin_mInput parameter set

Outputs

TypeNameDescription
Mosfetout_mChanged parameter set

Function Modelica.​Electrical.​Spice3.​Internal.​Mosfet.​mosfetModelLineInitEquations
Type transcription

Information

In this function during the initialization phase the transistor type is transcribed to another parameter for further usage.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Mosfetin_mInput parameter set

Outputs

TypeNameDescription
MosfetModelLineout_mlChanged parameter set

Function Modelica.​Electrical.​Spice3.​Internal.​Mosfet.​getNumberOfElectricalPins
Number of Pins

Information

This function getNumberOfElectricalPins identifies the number of electrical pins. At the current library version it is fixed to 4.

Extends from Modelica.​Icons.​Function (Icon for functions).

Outputs

TypeNameDescription
IntegerretNumber of pins

Function Modelica.​Electrical.​Spice3.​Internal.​Mosfet.​mosfetRenameParametersDev
Device parameter renaming to internal names

Information

This function mos1RenameParametersDev assigns the external (given by the user) device parameters to the internal parameters. It also does the analysis of the IsGiven values (level 1).

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
LengthWChannel Width
LengthLChannel Length
AreaADArea of the drain diffusion
AreaASArea of the source diffusion
LengthPDPerimeter of the drain junction
LengthPSPerimeter of the source junction
RealNRDNumber of squares of the drain diffusions
RealNRSNumber of squares of the source diffusions
IntegerOFFOptional initial condition: 0 - IC not used, 1 - IC used, not implemented yet
VoltageIC_VDSInitial condition value VDS, not implemented yet
VoltageIC_VGSInitial condition value VGS, not implemented yet
VoltageIC_VBSInitial condition value VBS, not implemented yet
BooleanUICUse initial condition, UIC
Temp_CTEMPTemperature

Outputs

TypeNameDescription
MosfetdevOutput record Mosfet