added it to Hicum states -> noise
This commit is contained in:
parent
020fc70607
commit
23183f10b6
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
// #############################################################
|
||||
|
|
|
|||
Loading…
Reference in New Issue