From 407a067a1f3a9901042f4d1fd9f870e1ab967e51 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 17 Mar 2018 10:09:50 +0100 Subject: [PATCH] admsva/bsim6.va, avoid singular matrix when shmod==0 Tie the temp node to ground, if there is no Pwr(t) contribution at all and __SHMOD__ is defined. (avoid singular matrix, when either SHMOD=0 or RTH0 <= 0) --- src/spicelib/devices/adms/bsim6/admsva/bsim6.va | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spicelib/devices/adms/bsim6/admsva/bsim6.va b/src/spicelib/devices/adms/bsim6/admsva/bsim6.va index 2e30174a4..5afecf6ea 100755 --- a/src/spicelib/devices/adms/bsim6/admsva/bsim6.va +++ b/src/spicelib/devices/adms/bsim6/admsva/bsim6.va @@ -4480,6 +4480,8 @@ end Pwr(t) <+ -(devsign * sigvds * ids * V(`IntrinsicDrain, `IntrinsicSource)) + delTemp1 * gth; end Pwr(t) <+ ddt(delTemp1 * cth); + end else begin + Temp(t) <+ 0; end `endif