[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: gschem and spice subcircuits
On Jan 9, 2010, at 8:19 PM, Ed Martin wrote:
> Hi
> I'm sorry if this is covered somewhere, but I read the FAQs and
> tutorials and I can't seem to find what I need. How do I get spice
> files
> with .SUBCKT (part models provided by manufacturers) onto my schematic
> so I can wire them up to the schematic? So far I have found the spice
> I/O pics and specifying an include file. Do I have to edit the netlist
> by hand? I should just be able to put everything in through the GUI
> and
> then process it with gspiceui to simulate it, is that possible?
If you have a file= attribute within the symbol or attached to the
symbol instance, its value is the pathname of a file to include,
presumably a file containing a subcircuit definition. This is handy,
but has the disadvantage that in a complex design the file may be
included many times, so an alternative is to leave out the file=
attributes and include model files once in the top level schematic,
using a spice-include symbol, or even have a makefile rule that
appends them to the netlist.
A model-name= attribute within the symbol or attached to the symbol
instance identifies the subcircuit. Be sure to check that the pinseq
attributes on the symbol pins match the order of connections in
the .subckt definition.
See http://www.brorson.com/gEDA/SPICE/x150.html for more info.
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd@xxxxxxxxx
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user