vdmos: in case temp and dtemp is given - use dtemp and neglect temp

This commit is contained in:
dwarning 2025-10-28 11:32:10 +01:00
parent 2ad1670114
commit 2d4c035ae0
1 changed files with 7 additions and 0 deletions

View File

@ -259,6 +259,13 @@ VDMOSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt,
here->VDMOSstates = *states;
*states += VDMOSnumStates;
if ((here->VDMOStempGiven) && (here->VDMOSdtempGiven)) {
SPfrontEnd->IFerrorf(ERR_WARNING,
"%s: temp and dtemp instance parameter given - using dtemp",
here->VDMOSname);
here->VDMOStempGiven = FALSE;
}
if (!here->VDMOSicVDSGiven) {
here->VDMOSicVDS = 0;
}