Package Modelica.​Electrical.​Spice3.​Internal.​Diode
Records and functions for diode model

Information

This package Diode contains functions and record with data of the semiconductor diode model.

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

Package Contents

NameDescription
CurrentsCapacitancesDiode variables
DiodeCalcDiode variables
diodeCalcAdditionalValuesCalculation of additional values
diodeCalcTempDependenciesTemperature dependency calculation
diodeInitEquationsInitial calculation
diodeModelLineInitEquationsInitial precalculation of model line parameters
DiodeModelLineParamsRecord for Diode model line parameters
DiodeModelLineVariablesRecord for Diode model line variables
diodeNoBypassCodeCalculation of currents
DiodeParamsRecord for Diode device parameters
diodeRenameParametersTechnology parameter renaming
diodeRenameParametersDevTemperature calculation
diodeRenameParametersDevTempTemperature calculation
DiodeVariablesVariables for the diode model

Record Modelica.​Electrical.​Spice3.​Internal.​Diode.​DiodeModelLineParams
Record for Diode model line parameters

Information

This record contains the model line (also called model card) parameters that are used for the diode model in SPICE3.

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

Fields

TypeNameDescription
Currentm_satCurIS, Saturation current
Resistancem_resistRS, Ohmic resistance
Realm_emissionCoeffN, Emission Coefficient
Timem_transitTimeTT, Transit Time
Capacitancem_junctionCapCJO, Junction capacitance
Voltagem_junctionPotVJ, Junction potential
LinearTemperatureCoefficientm_gradingCoeffM, Grading coefficient
ActivationEnergym_activationEnergyEG, Activation energy
Realm_saturationCurrentExpXTI, Saturation current temperature exp.
Realm_depletionCapCoeffFC, Forward bias junction fit parameter
Voltagem_breakdownVoltageBV, Reverse breakdown voltage
Realm_pBvIsGivenBV is given value
Currentm_breakdownCurrentIBV, Current at reverse breakdown voltage
Temp_Km_nomTempTNOM, Parameter measurement temperature
Realm_fNcoefKF, flicker noise coefficient
Realm_fNexpAF, flicker noise exponent
Conductancem_conductanceG, Ohmic conductance

Record Modelica.​Electrical.​Spice3.​Internal.​Diode.​DiodeModelLineVariables
Record for Diode model line variables

Information

This record contains the model line (also called model card) variables that are used for the diode model in SPICE3.

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

Fields

TypeNameDescription
Realm_gradingCoeff 
Realm_activationEnergy 
Realm_depletionCapCoeff 
Conductancem_conductance 

Record Modelica.​Electrical.​Spice3.​Internal.​Diode.​DiodeParams
Record for Diode device parameters

Information

This record contains the device parameters that are used for the diode model in SPICE3.

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

Fields

TypeNameDescription
Realm_areaAREA, Area factor
Booleanm_bOffOFF, Initially off
Voltagem_dICIC, Initial device voltage
Realm_pIcIsGivenIC is given value
Booleanm_bSensAreaSENS_AREA, flag to request sensitivity WRT area

Record Modelica.​Electrical.​Spice3.​Internal.​Diode.​DiodeVariables
Variables for the diode model

Information

This record contains the model variables that are used for the diode model in SPICE3.

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

Fields

TypeNameDescription
Realm_pBvIsGivenAdditional BV is given variable

Record Modelica.​Electrical.​Spice3.​Internal.​Diode.​DiodeCalc
Diode variables

Information

This record contains the model variables that are used for the diode model in SPICE3.

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

Fields

TypeNameDescription
Voltagem_tJctPot 
Capacitancem_tJctCap 
Realm_tF1 
Realm_f2 
Realm_f3 
Currentm_tSatCur 
Voltagem_tVcrit 
Realm_dVte 
Voltagem_tBrkdwnV 

Record Modelica.​Electrical.​Spice3.​Internal.​Diode.​CurrentsCapacitances
Diode variables

Information

This record contains the model variables that are used for the diode model in SPICE3.

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

Fields

TypeNameDescription
Currentm_dCurrent 

Function Modelica.​Electrical.​Spice3.​Internal.​Diode.​diodeModelLineInitEquations
Initial precalculation of model line parameters

Information

Within this function some parameters are initially precalculated from model line parameters.

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

Inputs

TypeNameDescription
DiodeModelLineParamsin_pInput record with diode model line parameters

Outputs

TypeNameDescription
DiodeModelLineVariablesout_vOutput record with diode model line variables

Function Modelica.​Electrical.​Spice3.​Internal.​Diode.​diodeInitEquations
Initial calculation

Information

In this function some initial calculations for the diode model are done, especially concerning the handling of the breakthrough voltage.

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

Inputs

TypeNameDescription
DiodeModelLineParamsin_pInput record with diode model line parameters

Outputs

TypeNameDescription
DiodeVariablesout_vOutput record with diode variables

Function Modelica.​Electrical.​Spice3.​Internal.​Diode.​diodeCalcTempDependencies
Temperature dependency calculation

Information

In this function for the diode model temperature dependencies are calculated using temperature treating functions from the equation package.

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

Inputs

TypeNameDescription
DiodeModelLineParamsin_pInput record diode model line parameters
DiodeParamsin_dpInput record diode parameters
Modelin_mInput record Model
DiodeVariablesin_vInput record diode variables

Outputs

TypeNameDescription
DiodeCalcout_cOutput record with calculated values

Function Modelica.​Electrical.​Spice3.​Internal.​Diode.​diodeNoBypassCode
Calculation of currents

Information

This function NoBypassCode calculates the currents (and the capacitances) that are necessary for the currents to be used in the top-level model.

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

Inputs

TypeNameDescription
DiodeModelLineParamsin_pInput record model line parameters for diode
DiodeParamsin_dpInput record with parameters for diode
DiodeCalcin_cInput record DiodeCalc
Modelin_mInput record model
Booleanin_m_mbInit 
Voltagein_m_pVoltageValues[2] 

Outputs

TypeNameDescription
CurrentsCapacitancesout_ccOutput record with calculated currents and capacitances
Capacitancem_dCapOutput capacitance

Function Modelica.​Electrical.​Spice3.​Internal.​Diode.​diodeCalcAdditionalValues
Calculation of additional values

Information

This function is prepared for additional calculations but it is plain (inputs are written to the outputs) in the actual version of this library.

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

Inputs

TypeNameDescription
DiodeVariablesin_vInput record with diode variables
DiodeModelLineParamsin_pInput record with diode model line parameters
DiodeParamsin_dpInput record with diode parameters
Voltagein_m_pVoltageValues[2] 

Outputs

TypeNameDescription
DiodeVariablesout_vOutput record with diode variables

Function Modelica.​Electrical.​Spice3.​Internal.​Diode.​diodeRenameParameters
Technology parameter renaming

Information

This function assigns the external (given by the user, e.g., IS) technology parameters to the internal parameters (e.g., m_satCur). It also does the analysis of the IsGiven values.

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

Inputs

TypeNameDescription
ModelcardDIODEexModelcard with technology parameters
SpiceConstantsconSpice constants

Outputs

TypeNameDescription
DiodeModelLineParamsinternOutput record diode model line parameters

Function Modelica.​Electrical.​Spice3.​Internal.​Diode.​diodeRenameParametersDev
Temperature calculation

Information

This function assigns the external (given by the user, e.g., AREA) device parameters to the internal parameters (e.g., m_area). It also does the analysis of the IsGiven values.

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

Inputs

TypeNameDescription
Temp_KTEMPTemperature
RealAREAArea factor
RealICInitial condition value (VD, not implemented yet
BooleanOFFOptional initial condition: false - IC not used, true - IC used, not implemented yet
BooleanSENS_AREAFlag to request sensitivity WRT area, not implemented yet

Outputs

TypeNameDescription
DiodeParamsdevOutput record with calculated diode parameters

Function Modelica.​Electrical.​Spice3.​Internal.​Diode.​diodeRenameParametersDevTemp
Temperature calculation

Information

This function calculates device parameters which are temperature dependent.

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

Inputs

TypeNameDescription
Temp_CTEMPTemperature

Outputs

TypeNameDescription
Modeldev_tempInput record Model