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
a831013a70
commit
8989eabee2
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue