From fa7f96b4af3bbc664e629766ada11cb2a7607c57 Mon Sep 17 00:00:00 2001 From: Markus Mueller Date: Mon, 7 Sep 2020 13:17:42 +0200 Subject: [PATCH] fix HICUM csu readin --- src/spicelib/devices/hicum2/hicum2mpar.c | 4 +++- src/spicelib/devices/hicum2/hicumL2.cpp | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spicelib/devices/hicum2/hicum2mpar.c b/src/spicelib/devices/hicum2/hicum2mpar.c index a054b3b3f..fe65f2a6e 100644 --- a/src/spicelib/devices/hicum2/hicum2mpar.c +++ b/src/spicelib/devices/hicum2/hicum2mpar.c @@ -253,7 +253,9 @@ HICUMmParam(int param, IFvalue *value, GENmodel *inModel) model->HICUMrsuGiven = TRUE; break; case HICUM_MOD_CSU: - break; //todo + model->HICUMcsu = value->rValue; + model->HICUMcsuGiven = TRUE; + break; //Depletion Capacitances case HICUM_MOD_CJEI0: diff --git a/src/spicelib/devices/hicum2/hicumL2.cpp b/src/spicelib/devices/hicum2/hicumL2.cpp index 273a2e271..eea1562f7 100644 --- a/src/spicelib/devices/hicum2/hicumL2.cpp +++ b/src/spicelib/devices/hicum2/hicumL2.cpp @@ -2962,7 +2962,6 @@ load: rhs_current = model->HICUMtype * (*(ckt->CKTstate0 + here->HICUMcqbcpar2) - Vbpci * gqbcpar2); *(ckt->CKTrhs + here->HICUMbaseBPNode) += -rhs_current; *(ckt->CKTrhs + here->HICUMcollCINode) += rhs_current; - //*(ckt->CKTrhs + here->HICUMsubsSINode) += rhs_current; //Markus:?? // with respect to Vbpci *(here->HICUMbaseBPBaseBPPtr) += gqbcpar2; *(here->HICUMcollCICollCIPtr) += gqbcpar2;