Browse Source

return only half of the capacitance cgs and cgd

pre-master-46
Holger Vogt 8 years ago
committed by rlar
parent
commit
33a68b7321
  1. 6
      src/spicelib/devices/devsup.c

6
src/spicelib/devices/devsup.c

@ -625,10 +625,10 @@ DevCapVDMOS(double vgd, double cgdmin,
double s = (cgdmax - cgdmin) / (1 + M_PI / 2);
double y = cgdmax - s;
if (vgd > 0)
*capgd = s * tanh(a * vgd) + y;
*capgd = 0.5 * (s * tanh(a * vgd) + y);
else
*capgd = s * atan(a * vgd) + y;
*capgs = cgs;
*capgd = 0.5 * (s * atan(a * vgd) + y);
*capgs = 0.5 * cgs;
*capgb = 0;
}

Loading…
Cancel
Save