added it to Hicum states -> noise

This commit is contained in:
Markus Mueller 2020-08-08 15:35:32 +02:00
parent 020fc70607
commit 23183f10b6
3 changed files with 6 additions and 4 deletions

View File

@ -526,7 +526,9 @@ typedef struct sHICUMinstance {
#define HICUMith_Vbbp HICUMstate+123
#define HICUMith_Veie HICUMstate+124
#define HICUMnumStates 125
#define HICUMit HICUMstate+125 //for noise
#define HICUMnumStates 126
/* per model data */
typedef struct sHICUMmodel { /* model structure for a hicum */

View File

@ -151,7 +151,6 @@ HICUMnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata
ckt,SHOTNOISE,here->HICUMcollCINode,here->HICUMbaseBINode,
here->HICUMiavl);
//todo: ibici contains iavl, has to be separated for non-correlated noise
NevalSrc(&noizDens[HICUMIBCINOIZ],&lnNdens[HICUMIBCINOIZ],
ckt,SHOTNOISE,here->HICUMbaseBINode,here->HICUMcollCINode,
*(ckt->CKTstate0 + here->HICUMibici)+here->HICUMiavl);
@ -168,10 +167,9 @@ HICUMnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata
ckt,SHOTNOISE,here->HICUMsubsSINode,here->HICUMcollCINode,
*(ckt->CKTstate0 + here->HICUMisici));
//todo: iciei contains it, has to be separated for non-correlated noise
NevalSrc(&noizDens[HICUMITNOIZ],&lnNdens[HICUMITNOIZ],
ckt,SHOTNOISE,here->HICUMcollCINode,here->HICUMemitEINode,
*(ckt->CKTstate0 + here->HICUMiciei));
*(ckt->CKTstate0 + here->HICUMit));
NevalSrc(&noizDens[HICUMIBEINOIZ],&lnNdens[HICUMIBEINOIZ],
ckt,SHOTNOISE,here->HICUMbaseBINode,here->HICUMemitEINode,

View File

@ -1459,6 +1459,7 @@ HICUMload(GENmodel *inModel, CKTcircuit *ckt)
*(ckt->CKTstate0+here->HICUMith_Vcic)=*(ckt->CKTstate1+here->HICUMith_Vcic);
*(ckt->CKTstate0+here->HICUMith_Vbbp)=*(ckt->CKTstate1+here->HICUMith_Vbbp);
*(ckt->CKTstate0+here->HICUMith_Veie)=*(ckt->CKTstate1+here->HICUMith_Veie);
*(ckt->CKTstate0+here->HICUMit)=*(ckt->CKTstate1+here->HICUMit);
/////////////////////////
// end copy state vector
/////////////////////////
@ -2893,6 +2894,7 @@ HICUMload(GENmodel *inModel, CKTcircuit *ckt)
*(ckt->CKTstate0 + here->HICUMixf2_Vxf1) = Ixf2_Vxf1;
*(ckt->CKTstate0 + here->HICUMixf2_Vxf2) = Ixf2_Vxf2;
*(ckt->CKTstate0 + here->HICUMixf2_Vrth) = Ixf2_dT;
*(ckt->CKTstate0 + here->HICUMit) = it;
load:
// #############################################################