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:
parent
68570f5145
commit
8ca4eb1239
|
|
@ -3904,10 +3904,10 @@ analog begin
|
||||||
VTH = VFB + devsign * (Vtm * `lln(T2 / T3) + dvch_qm + phib + qbs + Vtm + dvth_all - DELVTRAND);
|
VTH = VFB + devsign * (Vtm * `lln(T2 / T3) + dvch_qm + phib + qbs + Vtm + dvth_all - DELVTRAND);
|
||||||
|
|
||||||
// Conductances
|
// Conductances
|
||||||
GM = ddx(IDS,V(`IntrinsicGate)); // Transconductance
|
GM = ddx(devsign * ids,V(`IntrinsicGate)); // Transconductance
|
||||||
GDS = ddx(IDS,V(di)); // Output Conductance
|
GDS = ddx(devsign * ids,V(di)); // Output Conductance
|
||||||
if (BULKMOD != 0)
|
if (BULKMOD != 0)
|
||||||
GMBS = ddx(IDS,V(e)); // Body Transconductance
|
GMBS = ddx(devsign * ids,V(e)); // Body Transconductance
|
||||||
else
|
else
|
||||||
GMBS = 0.0;
|
GMBS = 0.0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue