Browse Source

re-format code (whitespace only)

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

4
src/spicelib/devices/vdmos/vdmosdset.c

@ -78,8 +78,8 @@ VDMOSdSetup(GENmodel *inModel, CKTcircuit *ckt)
vt = CONSTKoverQ * here->VDMOStemp; vt = CONSTKoverQ * here->VDMOStemp;
DrainSatCur = here->VDMOSm * here->VDMOStSatCur;
SourceSatCur = here->VDMOSm * here->VDMOStSatCur;
DrainSatCur = here->VDMOSm * here->VDMOStSatCur;
SourceSatCur = here->VDMOSm * here->VDMOStSatCur;
Beta = here->VDMOStTransconductance * here->VDMOSm * Beta = here->VDMOStTransconductance * here->VDMOSm *
here->VDMOSw/here->VDMOSl; here->VDMOSw/here->VDMOSl;

842
src/spicelib/devices/vdmos/vdmosload.c
File diff suppressed because it is too large
View File

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

@ -197,15 +197,15 @@ VDMOStemp(GENmodel *inModel, CKTcircuit *ckt)
fact1 = model->VDMOStnom / REFTEMP; fact1 = model->VDMOStnom / REFTEMP;
pbfact1 = -2 * vtnom*(1.5*log(fact1) + CHARGE*arg1); pbfact1 = -2 * vtnom*(1.5*log(fact1) + CHARGE*arg1);
pbo = (model->VDIOjunctionPot - pbfact1) / fact1;
gmaold = (model->VDIOjunctionPot - pbo) / pbo;
here->VDIOtJctCap = model->VDIOjunctionCap /
(1 + here->VDIOtGradingCoeff*
(400e-6*(model->VDMOStnom - REFTEMP) - gmaold));
here->VDIOtJctPot = pbfact + fact2*pbo;
gmanew = (here->VDIOtJctPot - pbo) / pbo;
here->VDIOtJctCap *= 1 + here->VDIOtGradingCoeff*
(400e-6*(here->VDMOStemp - REFTEMP) - gmanew);
pbo = (model->VDIOjunctionPot - pbfact1) / fact1;
gmaold = (model->VDIOjunctionPot - pbo) / pbo;
here->VDIOtJctCap = model->VDIOjunctionCap /
(1 + here->VDIOtGradingCoeff*
(400e-6*(model->VDMOStnom - REFTEMP) - gmaold));
here->VDIOtJctPot = pbfact + fact2*pbo;
gmanew = (here->VDIOtJctPot - pbo) / pbo;
here->VDIOtJctCap *= 1 + here->VDIOtGradingCoeff*
(400e-6*(here->VDMOStemp - REFTEMP) - gmanew);
here->VDIOtSatCur = model->VDIOjctSatCur * exp( here->VDIOtSatCur = model->VDIOjctSatCur * exp(
@ -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