bsimbulk.va, adms workaround, beware of `<+ ddt(...)'

if there is a ddt() expression in the rhs
  lhs <+ rhs
then adms might not set the matrix correctly.
It seems to work though, if ddt() is the only expression in rhs.
This commit is contained in:
rlar 2018-03-17 20:10:18 +01:00 committed by Holger Vogt
parent 4c2438d5fe
commit ada0405970
1 changed files with 3 additions and 2 deletions

View File

@ -4358,10 +4358,11 @@ analog begin
end
if ((SHMOD != 0) && (RTH0 > 0.0)) begin
if (RDSMOD != 2) begin
Pwr(t) <+ -(devsign * sigvds * ids * V(di, si) + V(d,di) * V(d,di) / Rdrain + V(s,si) * V(s,si) / Rsource) + ddt(delTemp1 * cth) + delTemp1 * gth;
Pwr(t) <+ -(devsign * sigvds * ids * V(di, si) + V(d,di) * V(d,di) / Rdrain + V(s,si) * V(s,si) / Rsource) + delTemp1 * gth;
end else begin
Pwr(t) <+ -(devsign * sigvds * ids * V(di, si)) + ddt(delTemp1 * cth) + delTemp1 * gth;
Pwr(t) <+ -(devsign * sigvds * ids * V(di, si)) + delTemp1 * gth;
end
Pwr(t) <+ ddt(delTemp1 * cth);
end else begin
Temp(t) <+ 0.0;
end