Browse Source

re-format code (whitespace only)

pre-master-46
Holger Vogt 8 years ago
committed by rlar
parent
commit
9d00a9e28d
  1. 38
      src/spicelib/devices/vdmos/vdmosload.c
  2. 2
      src/spicelib/devices/vdmos/vdmostemp.c

38
src/spicelib/devices/vdmos/vdmosload.c

@ -194,7 +194,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
here->VDMOSgbd * delvbd + here->VDMOSgbd * delvbd +
here->VDMOSgbs * delvbs; here->VDMOSgbs * delvbs;
/* /*
*/ */
#ifndef NOBYPASS #ifndef NOBYPASS
@ -258,7 +258,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
#endif /*NOBYPASS*/ #endif /*NOBYPASS*/
/* /*
*/ */
/* ok - bypass is out, do it the hard way */ /* ok - bypass is out, do it the hard way */
@ -301,7 +301,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
} }
#endif /*NODELIMITING*/ #endif /*NODELIMITING*/
/* /*
*/ */
} }
@ -330,7 +330,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
} }
} }
/* /*
*/ */
/* /*
@ -377,7 +377,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
here->VDMOSmode = -1; here->VDMOSmode = -1;
} }
/* /*
*/ */
{ {
@ -414,7 +414,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
* saturation region * saturation region
*/ */
betap = Beta*(1 + model->VDMOSlambda*(vds*here->VDMOSmode)); betap = Beta*(1 + model->VDMOSlambda*(vds*here->VDMOSmode));
if (vgst <= (vds*here->VDMOSmode)) {
if (vgst <= (vds * here->VDMOSmode)) {
cdrain = betap*vgst*vgst*.5; cdrain = betap*vgst*vgst*.5;
here->VDMOSgm = betap*vgst; here->VDMOSgm = betap*vgst;
here->VDMOSgds = model->VDMOSlambda*Beta*vgst*vgst*.5; here->VDMOSgds = model->VDMOSlambda*Beta*vgst*vgst*.5;
@ -424,14 +424,14 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
/* /*
* linear region * linear region
*/ */
cdrain = betap*(vds*here->VDMOSmode)*
(vgst - .5*(vds*here->VDMOSmode));
here->VDMOSgm = betap*(vds*here->VDMOSmode);
here->VDMOSgds = betap*(vgst - (vds*here->VDMOSmode)) +
model->VDMOSlambda*Beta*
(vds*here->VDMOSmode)*
(vgst - .5*(vds*here->VDMOSmode));
here->VDMOSgmbs = here->VDMOSgm*arg;
cdrain = betap * (vds * here->VDMOSmode) *
(vgst - .5 * (vds * here->VDMOSmode));
here->VDMOSgm = betap * (vds * here->VDMOSmode);
here->VDMOSgds = betap * (vgst - (vds * here->VDMOSmode)) +
model->VDMOSlambda * Beta *
(vds * here->VDMOSmode) *
(vgst - .5 * (vds * here->VDMOSmode));
here->VDMOSgmbs = here->VDMOSgm * arg;
} }
} }
/* /*
@ -439,7 +439,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
*/ */
} }
/* /*
*/ */
/* now deal with n vs p polarity */ /* now deal with n vs p polarity */
@ -462,7 +462,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
*(ckt->CKTstate0 + here->VDMOSqbd) = 0; *(ckt->CKTstate0 + here->VDMOSqbd) = 0;
here->VDMOScapbd = 0; here->VDMOScapbd = 0;
/* /*
*/ */
} }
@ -477,7 +477,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
*(ckt->CKTstate0 + here->VDMOSvds) = vds; *(ckt->CKTstate0 + here->VDMOSvds) = vds;
/* /*
*/ */
/* /*
@ -517,7 +517,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
*(ckt->CKTstate1 + here->VDMOScapgb)); *(ckt->CKTstate1 + here->VDMOScapgb));
} }
/* /*
*/ */
#ifndef PREDICTOR #ifndef PREDICTOR
@ -553,7 +553,7 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
#endif /*PREDICTOR*/ #endif /*PREDICTOR*/
} }
#ifndef NOBYPASS #ifndef NOBYPASS
bypass :
bypass :
#endif #endif
if ((ckt->CKTmode & (MODEINITTRAN)) || if ((ckt->CKTmode & (MODEINITTRAN)) ||

2
src/spicelib/devices/vdmos/vdmostemp.c

@ -220,7 +220,7 @@ VDMOStemp(GENmodel *inModel, CKTcircuit *ckt)
(1 - exp((1 - here->VDIOtGradingCoeff)*xfc)) / (1 - exp((1 - here->VDIOtGradingCoeff)*xfc)) /
(1 - here->VDIOtGradingCoeff); (1 - here->VDIOtGradingCoeff);
/* same for Depletion Capacitance */ /* same for Depletion Capacitance */
here->VDIOtDepCap = model->VDIOdepletionCapCoeff*
here->VDIOtDepCap = model->VDIOdepletionCapCoeff *
here->VDIOtJctPot; here->VDIOtJctPot;
/* and Vcrit */ /* and Vcrit */

Loading…
Cancel
Save