Browse Source

devices/bsim3: reposition DrainSatCurrent block

pre-master-46
dwarning 13 years ago
committed by rlar
parent
commit
02dc233bc5
  1. 18
      src/spicelib/devices/bsim3/b3ld.c

18
src/spicelib/devices/bsim3/b3ld.c

@ -387,6 +387,15 @@ for (; model != NULL; model = model->BSIM3nextModel)
+ here->BSIM3sourcePerimeter
* model->BSIM3jctSidewallTempSatCurDensity;
}
if ((here->BSIM3drainArea <= 0.0) && (here->BSIM3drainPerimeter <= 0.0))
{ DrainSatCurrent = 1.0e-14;
}
else
{ DrainSatCurrent = here->BSIM3drainArea
* model->BSIM3jctTempSatCurDensity
+ here->BSIM3drainPerimeter
* model->BSIM3jctSidewallTempSatCurDensity;
}
if (SourceSatCurrent <= 0.0)
{ here->BSIM3gbs = ckt->CKTgmin;
here->BSIM3cbs = here->BSIM3gbs * vbs;
@ -415,15 +424,6 @@ for (; model != NULL; model = model->BSIM3nextModel)
}
}
if ((here->BSIM3drainArea <= 0.0) && (here->BSIM3drainPerimeter <= 0.0))
{ DrainSatCurrent = 1.0e-14;
}
else
{ DrainSatCurrent = here->BSIM3drainArea
* model->BSIM3jctTempSatCurDensity
+ here->BSIM3drainPerimeter
* model->BSIM3jctSidewallTempSatCurDensity;
}
if (DrainSatCurrent <= 0.0)
{ here->BSIM3gbd = ckt->CKTgmin;
here->BSIM3cbd = here->BSIM3gbd * vbd;

Loading…
Cancel
Save