Re: [ng-spice] Readline Response
Paolo Nenzi wrote:
> I gave a look at the sources of the simulator. The simulator uses an
> object oriented strucuter for devices, as far as I know, the mos models
> are an extensions of the diode mode (mos model, when simulated, calls the
> diode model). This approach differs a lot with the one in spice3, and I
I believe This Is a Good Thing. In spice, every MOS model uses some form
of source/drain to bulk junction model; the code for it is built in the
device model evaluation.
If you support ten MOS models this means nine redundant junction related
code sections (same thing with e.g. the gate charge code).
This approach has at least two more problems. Usually the real diode
model is much better than the s/d junction model in MOS devices. I would
like to have breakdown in the MOS device but it doesn't support it (it's
not hard to do it, but you'll have to). Furthermore, if you want to
upgrade the juction code in the MOS devices, you have to go to all ten
code instances. This makes hard to maintain the code uniformity.
On the other hand, forcing the mos code to call the real diode
evaluation code makes everything cleaner and simpler.
Serban
Partial thread listing:
- Re: [ng-spice] Readline Response, (continued)