| Spice Simulation Program with Integrated Circuit Emphasis. |
|
![]() Creative Electronic Solutions
|
After not touching
Spice since school, I've started using it as a sanity check, or where
things would be prohibitively expensive to build up.
I've been using ngspice, based on Berkeley Spice 3f5, released under
the Berkeley License at http://sourceforge.net/projects/ngspice
Always nice to get a big, powerful, confusing iterative calculator for
my tax dollars.. and I appreciate the work the community has done
in porting this to Linux where I can use it.
I ran into the fact that Spice 3 does not include the "POLY"
statement for non-linear polynomials that Spice 2 did.
Seems as if a lot of the freely available models on the web for
National, ADI, TI,
etc, use the old skool POLY statements. They're a pain to
convert. I figured somebody would have written a converter..
there was some limited awk code out there, and a whole lot of
postings from folks who also were also looking for a spice2 to spice3
converter.
The best way to handle this is
probably to compile ngspice
with options to handle the poly statements, -- but
if this is not practical,
I'm releasing a spice2to3.pl converter here. I started this
thinking it would be easy, but couldn't figure out an elegant way to
expand the
polynomials and did it with a brute force approach using the
Math::Combinatorial module to come up with the
combinations. You'll need the Math::Combinatorics
Perl module, which can be found here
on CPAN.
I haven't done much testing at all. (in fact, haven't tested current
controlled sources AT ALL.) Use at your own risk! I'd be
interested to get bugs or improvements back to Alex at d n l n k dot
see oh em.