RE: [ng-spice-devel] ACS with the "free" Borland compiler


To "'ng-spice-devel@ieee.ing.uniroma1.it'" <ng-spice-devel@ieee.ing.uniroma1.it>
From "Gillespie, Alan" <Alan.Gillespie@analog.com>
Date Mon, 26 Mar 2001 16:31:43 +0100
Delivered-To mailing list ng-spice-devel@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-devel-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice-devel@ieee.ing.uniroma1.it


> ACS is indeed compiling now, but I'm getting floating
> point errors in that nmos100 circuit. Still investigating.

It turns out that the diode code does not expect to
get an area of zero. The series resistance of the model
is divided by the device area to give the actual rs, and
that causes an exception with Borland C++, if area=0.

I've put in a quick fix, but I suspect that this is actually
showing a misunderstanding between the general purpose diode
code and the MOS code. It looks like this was a recent
addition, so maybe Al would be faster than me at doing
a proper fix.

Cheers,

Alan

Partial thread listing: