Al Davis wrote:
On Thursday 20 January 2005 04:59 pm, David Grant wrote:Al, I read some Gnucap documentation earlier today. The most detail was on the model compiler, unfortunately when I got to that part, I had to stop reading and do some real work.
Is there any way to simulate a behavioural current source
(ie. a current defined by some complex equation involving
node voltages in the circuit) using open source tools (ie.
ngspice, tclspice, berkeley spice, etc...) in Linux?
Berkeley Spice, and therefore NGspice, has the "B" device, which lets you define it easily in terms of a simple equation involving node voltages. In Gnucap, the basic current source can so some, but not the same as the "B" source in Spice.
Gnucap has a model compiler, that lets you define just about anything. It is a little harder to use, but really does let you define anything, All of the complex devices (diode, bjt, fet) provided are done this way. Xspice, and therefore NGspice, has "code models" that are much harder to use and less flexible. I have never seen Xspice code models used for complex devices like mosfets.
So, the answer is YES, with some caveats.
Gnucap sounds a bit like VHDL-AMS in terms of it's flexibility. But totally spice-compatible.
Ok, I've noticed that even old spice3 has the B* device. Thanks for your help.
-- David J. Grant http://www.davidgrant.ca:81
begin:vcard fn:David Grant n:Grant;David adr:;;;Richmond;BC;;Canada email;internet:[EMAIL PROTECTED] x-mozilla-html:TRUE url:http://www.davidgrant.ca:81 version:2.1 end:vcard
