Analog circuit simulation library?
Asked Answered
N

2

4

I'm working on a genetic programming tool and I'd like to evolve analog circuits. Can anyone suggest a library or tool or even a reference for hooking my GP code up? I just need some way to have something like SPICE evaluate the circuits that are created by my code. I've seen reference to plain text representations of the circuits (netlists) which are used by tools like SPICE. I'd like to know if there is a better way to connect to a simulator than to run it and pass the netlist on standard input. My code is written in C, in case you're wondering what sort of library I'm interested in.

Nelidanelie answered 3/3, 2009 at 17:17 Comment(0)
G
2

SPICE is the reference electronics simulator.

I think it's mostly written in Forth, these days mostly using a Forth-to-C translator. I'd try to integrate it simply reading its text output to pick the values you want to {min/max}imize

Giulia answered 3/3, 2009 at 17:39 Comment(2)
Right, and I'm asking about hooking it or something like it up to an existing C Genetic Programming app. In particular it would be nice if I could link in a library and call a function to evaluate a circuit.Nelidanelie
I think that you mean FORTRAN. Spice and Spice 2 used FORTRAN; Spice (and descendants) 3 use C. See here embedded.eecs.berkeley.edu/pubs/downloads/spice.Sawbuck
R
2

Modelica has various circuit analysis capabilities.

Retuse answered 3/3, 2009 at 19:35 Comment(1)
That's an interesting package and one that I've never heard of. I don't know if it will do what I'm trying to do, but I'll check it out and possibly use it for something else.Nelidanelie

© 2022 - 2024 — McMap. All rights reserved.