From bbe409fbd29cc4ff5bd35d1da3e5fd005cf178d1 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sun, 26 Jun 2011 12:59:13 +0000 Subject: [PATCH] correct init the correlated noise slot --- src/spicelib/devices/bsim4/b4noi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/spicelib/devices/bsim4/b4noi.c b/src/spicelib/devices/bsim4/b4noi.c index e3963b26c..0608b6983 100644 --- a/src/spicelib/devices/bsim4/b4noi.c +++ b/src/spicelib/devices/bsim4/b4noi.c @@ -129,7 +129,12 @@ double m; }; for (; model != NULL; model = model->BSIM4nextModel) - { for (here = model->BSIM4instances; here != NULL; + { + if(model->BSIM4tnoiMod != 2) { + noizDens[BSIM4CORLNOIZ] = 0.0; + lnNdens[BSIM4CORLNOIZ] = N_MINLOG; + } + for (here = model->BSIM4instances; here != NULL; here = here->BSIM4nextInstance) { pParam = here->pParam; switch (operation)