From 408440d33b65741a7cd1171a9023f13cfb180e15 Mon Sep 17 00:00:00 2001 From: dwarning Date: Tue, 21 Jan 2020 11:25:56 +0100 Subject: [PATCH] some cleanings --- src/spicelib/devices/hicum2/hicumload.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/spicelib/devices/hicum2/hicumload.c b/src/spicelib/devices/hicum2/hicumload.c index b66647d6a..ef5cfeea6 100644 --- a/src/spicelib/devices/hicum2/hicumload.c +++ b/src/spicelib/devices/hicum2/hicumload.c @@ -1100,18 +1100,18 @@ HICUMload(GENmodel *inModel, CKTcircuit *ckt) //todo: check for double multiplication on pnp's Vbiei = model->HICUMtype*Vbiei; Vbici = model->HICUMtype*Vbici; - Vciei = model->HICUMtype*Vciei; + Vciei = Vbiei-Vbici; Vbpei = model->HICUMtype*Vbpei; Vbpci = model->HICUMtype*Vbpci; Vbci = model->HICUMtype*Vbci; Vsici = model->HICUMtype*Vsici; Vsc = model->HICUMtype*Vsc; + if (model->HICUMflsh!=0 && model->HICUMrth >= MIN_R) { // Thermal_update_with_self_heating - here->HICUMtemp = here->HICUMtemp+Vrth; - iret = hicum_thermal_update(model, here); } + // Model_evaluation //Intrinsic transistor @@ -1279,7 +1279,6 @@ HICUMload(GENmodel *inModel, CKTcircuit *ckt) d_Q = Q_pT; while (fabs(d_Q) >= RTOLC*fabs(Q_pT) && l_it <= l_itmax) { double a; -// d_Q0 = d_Q; I_Tf1 = i_0f/Q_pT; a_h = Oich*I_Tf1; itf = I_Tf1*(1.0+a_h); @@ -1622,9 +1621,9 @@ HICUMload(GENmodel *inModel, CKTcircuit *ckt) // Following code is an intermediate solution (if branch contribution is not supported): // ****************************************** //if(model->HICUMflsh == 0 || model->HICUMrth < MIN_R) { - // I[br_sht] <+ Vrth]/MIN_R; + // I[br_sht] <+ Vrth/MIN_R; //} else { - // I[br_sht] <+ Vrth]/rth_t-pterm; + // I[br_sht] <+ Vrth/rth_t-pterm; // I[br_sht] <+ ddt(model->HICUMcth*Vrth]); //}