Latest CVS Version
Hi all,
I just grabbed the latest CVS version updated my local
copy with my patch for GNU readline support. As soon
as we can get the license issues sorted out I will submit
a patch against what is currently in the CVS tree.
I'm also working on getting non-linear dependant sources
supported (ie sources containing POLY definitions). I've
found some Spice2 documentation detailing the workings
of these statements. As a first pass, I am writing a small
C program which reads a spice netlist and converts the
offending Spice2 dependant source statements into Spice3
statements.
Doing it this way is far easier than hacking the Spice
code itself and will allow me to check the behaviour of
my converted Spice3 statements against the behaviour of
the original Spice2 statements in one of the XSpice compatible
simulators. Once this program is working I will release it
under a suitable open source license (probably the new BSD
license). This will allow people interested in using NG-SPICE
to preprocess all their OP-AMP models and use them now.
Once I have a good enough understanding of what the POLY
statements are supposed to do I will want to integrate it
into NG-SPICE. Basically I see two options;
1) Hook the code from the converter program into Spice
as something like a preprocessor.
2) Do a proper implementation by adding code to the
dependant sources so they can grok the POLY statements
for themselves.
At the moment, I'm leaning towards the first option as it is
so much easier :-). From what I've read, this is the way some
of the commercial Spice variants handle the problem.
With GNU readline and a way to handle the POLY statements,
NG-SPICE is useful for all my current SPICE needs.
Ciao,
Erik
--
+-------------------------------------------------+
Erik de Castro Lopo erikd@zip.com.au
+-------------------------------------------------+
"He who writes the code gets to choose his license, and nobody
else gets to complain" -- Linus Torvalds
Partial thread listing: