From 87e8b366ade245e14098c8b58aa56146c56ebb78 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 22 Apr 2018 13:44:44 +0200 Subject: [PATCH] Add gate resistor to AC calculation 2 Add matrix entries for gate resistor --- src/spicelib/devices/vdmos/vdmosacld.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/spicelib/devices/vdmos/vdmosacld.c b/src/spicelib/devices/vdmos/vdmosacld.c index 05206e52e..3616dcc45 100644 --- a/src/spicelib/devices/vdmos/vdmosacld.c +++ b/src/spicelib/devices/vdmos/vdmosacld.c @@ -95,7 +95,12 @@ VDMOSacLoad(GENmodel *inModel, CKTcircuit *ckt) *(here->VDMOSSPbPtr) -= here->VDMOSgbs+(xnrm-xrev)*here->VDMOSgmbs; *(here->VDMOSSPdpPtr) -= here->VDMOSgds+ xrev*(here->VDMOSgm+here->VDMOSgmbs); - + /* gate resistor */ + *(here->VDMOSGgPtr) += (here->VDMOSgateConductance); + *(here->VDMOSGPgpPtr) += + (here->VDMOSgateConductance)/* + ?? FIXME */; + *(here->VDMOSGgpPtr) -= here->VDMOSgateConductance; + *(here->VDMOSGPgPtr) -= here->VDMOSgateConductance; } } return(OK);