Modified noisean.c with the one found into the bsim4 (version 4.1.0) model,

hope thet this version does not break anything. Changelog updated.
This commit is contained in:
pnenzi 2001-01-24 11:16:32 +00:00
parent 3a6b1983b7
commit 57d805cbf6
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2001-01-23 Paolo Nenzi <p.nenzi@ieee.org>
* noisean.c: patched the code with the new one
in the bsim4.1.0 distribution. The new noisean.c
put some code between #ifdef INT_NOISE.
2000-01-21 Paolo Nenzi <p.nenzi@ieee.org>
* cktsgen.c: corrected a bug that caused segfault on sensitivity

View File

@ -1,5 +1,7 @@
/* Patch to noisean.c by Richard D. McRoberts.
* Patched with modifications from Weidong Lu (2000)
* Patched with modifications from Weidong Liu (2000)
* Patched with modifications ftom Weidong Liu
* in bsim4.1.0 code
*/
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
@ -96,12 +98,8 @@ NOISEan (CKTcircuit *ckt, int restart)
error = CKTop(ckt, (ckt->CKTmode & MODEUIC) | MODEDCOP | MODEINITJCT,
(ckt->CKTmode & MODEUIC) | MODEDCOP | MODEINITFLOAT,
ckt->CKTdcMaxIter);
if (error) return(error);
ckt->CKTmode = (ckt->CKTmode & MODEUIC) | MODEDCOP | MODEINITSMSIG;
error = CKTload(ckt);
if (error) return(error);
data = (Ndata*)MALLOC(sizeof(Ndata));
step = 0;
data->freq = job->NstartFreq;
@ -253,7 +251,8 @@ NOISEan (CKTcircuit *ckt, int restart)
error = CKTnoise(ckt,N_DENS,N_CLOSE,data);
if (error) return(error);
#ifdef INT_NOISE
data->numPlots = 0;
data->outNumber = 0;
@ -273,6 +272,7 @@ NOISEan (CKTcircuit *ckt, int restart)
error = CKTnoise(ckt,INT_NOIZ,N_CLOSE,data);
if (error) return(error);
}
#endif
FREE(data);
return(OK);