bsimcmg_body.include, workaround incorrect adms derivative, GM, GDS, GMBS, FIXME !

adms doesn't seem to derive a "output" variable correctly.
  (was zero)

this fix is for GM, GDS, GMBS only,
  fixme, unknown which other variables suffer from the same problem
This commit is contained in:
rlar 2017-07-23 20:17:54 +02:00 committed by Holger Vogt
parent a831013a70
commit 8989eabee2
1 changed files with 3 additions and 3 deletions

View File

@ -3904,10 +3904,10 @@ analog begin
VTH = VFB + devsign * (Vtm * `lln(T2 / T3) + dvch_qm + phib + qbs + Vtm + dvth_all - DELVTRAND);
// Conductances
GM = ddx(IDS,V(`IntrinsicGate)); // Transconductance
GDS = ddx(IDS,V(di)); // Output Conductance
GM = ddx(devsign * ids,V(`IntrinsicGate)); // Transconductance
GDS = ddx(devsign * ids,V(di)); // Output Conductance
if (BULKMOD != 0)
GMBS = ddx(IDS,V(e)); // Body Transconductance
GMBS = ddx(devsign * ids,V(e)); // Body Transconductance
else
GMBS = 0.0;