From 420838e4e81b669078d7d00c1ecafd5704a249e8 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sun, 9 Nov 2025 08:21:45 +0100 Subject: [PATCH] vdmos: in case temp and dtemp is given - use dtemp and omit temp --- src/spicelib/devices/vdmos/vdmosset.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/spicelib/devices/vdmos/vdmosset.c b/src/spicelib/devices/vdmos/vdmosset.c index 2719535bf..58e6cd300 100644 --- a/src/spicelib/devices/vdmos/vdmosset.c +++ b/src/spicelib/devices/vdmos/vdmosset.c @@ -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; }