From 2d4c035ae0e9182c860dd8e1b630f60f4e283dda Mon Sep 17 00:00:00 2001 From: dwarning Date: Tue, 28 Oct 2025 11:32:10 +0100 Subject: [PATCH] vdmos: in case temp and dtemp is given - use dtemp and neglect 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 ab59ede32..be82d040a 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; }