Browse Source

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

pre-master-46
dwarning 5 months ago
parent
commit
420838e4e8
  1. 7
      src/spicelib/devices/vdmos/vdmosset.c

7
src/spicelib/devices/vdmos/vdmosset.c

@ -259,6 +259,13 @@ VDMOSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt,
here->VDMOSstates = *states; here->VDMOSstates = *states;
*states += VDMOSnumStates; *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) { if (!here->VDMOSicVDSGiven) {
here->VDMOSicVDS = 0; here->VDMOSicVDS = 0;
} }

Loading…
Cancel
Save