1e20 or 1e23 may be used in a .model, and exceeded simply by double precision

issues. So check the borders being a little larger.
This commit is contained in:
Holger Vogt 2024-10-16 14:24:09 +02:00
parent ab7d70dcba
commit f8c0e215c3
1 changed files with 3 additions and 3 deletions

View File

@ -279,19 +279,19 @@ GENmodel *inMod)
case BSIM4_MOD_NDEP:
mod->BSIM4ndep = value->rValue;
mod->BSIM4ndepGiven = TRUE;
if (mod->BSIM4ndep > 1.0e20)
if (mod->BSIM4ndep > 1.01e20)
mod->BSIM4ndep *= 1.0e-6;
break;
case BSIM4_MOD_NSD:
mod->BSIM4nsd = value->rValue;
mod->BSIM4nsdGiven = TRUE;
if (mod->BSIM4nsd > 1.0e23)
if (mod->BSIM4nsd > 1.01e23)
mod->BSIM4nsd *= 1.0e-6;
break;
case BSIM4_MOD_NGATE:
mod->BSIM4ngate = value->rValue;
mod->BSIM4ngateGiven = TRUE;
if (mod->BSIM4ngate > 1.0e23)
if (mod->BSIM4ngate > 1.01e23)
mod->BSIM4ngate *= 1.0e-6;
break;
case BSIM4_MOD_GAMMA1: