Functions and records for MOSFETs
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)).
| Name | Description |
|---|---|
| Record for Mosfet parameters | |
| Record for Mosfet model line parameters | |
| Type of the transistor | |
| Mosfet Variables | |
| MOSFET initial precalculations | |
| Type transcription | |
| Number of Pins | |
| Device parameter renaming to internal names |
Modelica.Electrical.Spice3.Internal.Mosfet.MosfetRecord for Mosfet parameters
This record Mosfet contains parameters that are used for all types of Mosfet transistors in SPICE3.
Extends from Spice3.Internal.Model.Model (Device Temperature).
| Name | Description |
|---|---|
| m_dTemp | TEMP, Device Temperature [K] |
| m_len | L, length of channel region [m] |
| m_width | W, width of channel region [m] |
| m_drainArea | AD, area of drain diffusion [m2] |
| m_sourceArea | AS, area of source diffusion [m2] |
| m_drainSquares | NRD, length of drain in squares |
| m_sourceSquares | NRS, length of source in squares |
| m_drainPerimeter | PD, Drain perimeter [m] |
| m_sourcePerimeter | PS, Source perimeter [m] |
| m_dICVDS | IC_VDS, Initial D-S voltage [V] |
| m_dICVDSIsGiven | IC_VDS, IsGivenValue |
| m_dICVGS | IC_VGS, Initial G-S voltage [V] |
| m_dICVGSIsGiven | IC_VGS, IsGivenValue |
| m_dICVBS | IC_VBS, Initial B-S voltage [V] |
| m_dICVBSIsGiven | IC_VBS, IsGivenValue |
| m_off | Device initially off, non-zero to indicate device is off for dc analysis |
| m_bPMOS | P type MOSFET model |
| m_nLevel | MOS model level |
| m_uic |
Modelica.Electrical.Spice3.Internal.Mosfet.MosfetModelLineParamsRecord for Mosfet model line parameters
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).
| Name | Description |
|---|---|
| m_jctSatCurDensity | JS, Bulk jct. sat. current density, input - use tSatCurDens |
| m_sheetResistance | RSH, Sheet resistance [Ohm] |
| m_bulkJctPotential | PB, Bulk junction potential, input - use tBulkPot |
| m_bulkJctBotGradingCoeff | MJ, Bottom grading coefficient [1/K] |
| m_bulkJctSideGradingCoeff | MJSW, Side grading coefficient [1/K] |
| m_oxideThickness | TOX, Oxide thickness unit: micron |
| m_oxideThicknessIsGiven | TOX, IsGiven value |
| m_gateSourceOverlapCapFactor | CGS0, Gate-source overlap cap |
| m_gateDrainOverlapCapFactor | CGD0, Gate-drain overlap cap |
| m_gateBulkOverlapCapFactor | CGB0, Gate-bulk overlap cap |
| m_fNcoef | KF, Flicker noise coefficient |
| m_fNexp | AF, Flicker noise exponent |
| m_mjswIsGiven | MJSW, IsGivenValue |
| m_cgsoIsGiven | CGSO, IsGivenValue |
| m_cgdoIsGiven | CGDO, IsGivenValue |
| m_cgboIsGiven | CGBO, IsGivenValue |
| m_pbIsGiven | PB, IsGivenValue |
Modelica.Electrical.Spice3.Internal.Mosfet.MosfetModelLineType of the transistor
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).
| Name | Description |
|---|---|
| m_type | Device type : 1 = n, -1 = p |
Modelica.Electrical.Spice3.Internal.Mosfet.MosfetCalcMosfet Variables
This record MosfetCalc contains variables that are needed for calculation within modeling the semiconductor models.
Extends from Modelica.Icons.Record (Icon for records).
| Name | Description |
|---|---|
| m_vds | Vds, Drain-Source voltage [V] |
| m_vgs | Vgs, Gate-Source voltage [V] |
| m_vbs | Vbs, Bulk-Source voltage [V] |
| m_cbs | Ibs, B-S junction current [A] |
| m_gbs | Gbs, Bulk-Source conductance [S] |
| m_cbd | Ibd, B-D junction current [A] |
| m_gbd | Gbd, Bulk-Drain conductance [S] |
| m_cdrain | Ids [A] |
| m_gds | Gds, Drain-Source conductance [S] |
| m_gm | Gm, Transconductance [A/V2] |
| m_gmbs | Gmbs, Bulk-Source transconductance [A/V2] |
| m_capbsb | Cbsb [F] |
| m_chargebsb | Qbsb [C] |
| m_capbss | Cbss [F] |
| m_chargebss | Qbss [C] |
| m_capbdb | Cbdb [F] |
| m_chargebdb | Qbdb [C] |
| m_capbds | Cbds [F] |
| m_chargebds | Qbds [C] |
| m_Beta | Beta |
| m_capGSovl | Cgso, Gate-source overlap cap. [F] |
| m_capGDovl | Cgdo, Gate-drain overlap cap. [F] |
| m_capGBovl | Cgbo, Gate-bulk overlap cap. [F] |
| m_capOx | Cox [F] |
| m_von | Von, Turn-on voltage [V] |
| m_vdsat | Vdsat [V] |
| m_mode | Mode |
| m_lEff | [m] |
| m_sourceResistance | Rs [Ohm] |
| m_drainResistance | Rd [Ohm] |
Modelica.Electrical.Spice3.Internal.Mosfet.mosfetInitEquationsMOSFET initial precalculations
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).
| Name | Description |
|---|---|
| in_m | Input parameter set |
| Name | Description |
|---|---|
| out_m | Changed parameter set |
Modelica.Electrical.Spice3.Internal.Mosfet.mosfetModelLineInitEquationsType transcription
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).
| Name | Description |
|---|---|
| in_m | Input parameter set |
| Name | Description |
|---|---|
| out_ml | Changed parameter set |
Modelica.Electrical.Spice3.Internal.Mosfet.getNumberOfElectricalPinsNumber of Pins
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).
| Name | Description |
|---|---|
| ret | Number of pins |
Modelica.Electrical.Spice3.Internal.Mosfet.mosfetRenameParametersDevDevice parameter renaming to internal names
This function mosfetRenameParametersDev 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).
| Name | Description |
|---|---|
| W | Channel Width [m] |
| L | Channel Length [m] |
| AD | Area of the drain diffusion [m2] |
| AS | Area of the source diffusion [m2] |
| PD | Perimeter of the drain junction [m] |
| PS | Perimeter of the source junction [m] |
| NRD | Number of squares of the drain diffusions |
| NRS | Number of squares of the source diffusions |
| OFF | Optional initial condition: 0 - IC not used, 1 - IC used, not implemented yet |
| IC_VDS | Initial condition value VDS, not implemented yet [V] |
| IC_VGS | Initial condition value VGS, not implemented yet [V] |
| IC_VBS | Initial condition value VBS, not implemented yet [V] |
| UIC | Use initial condition, UIC |
| TEMP | Temperature [degC] |
| Name | Description |
|---|---|
| dev | Output record Mosfet |