gEDA-user: Making a subcircuit under gschem?

Stuart Brorson sdb at cloud9.net
Tue Aug 29 19:19:57 EDT 2006


On Tue, 29 Aug 2006, Frazer Williams wrote:

> Hi,
>
> Is it possible to create a spice netlist for a subcircuit using gschem
> (and gnetlist)?  I can almost do it.  Using the spice-directive-1.sym
> symbol from the spice library, I can get gschem to write a proper
> .SUBCIRCUIT line into the spice netlist, but it doesn't put the line at
> the start of the circuit.  Further, I haven't been able to change the
> last statement to .ENDS rather than .END from within gschem.
>
> I can generate a workable netlist by manually editing the file
> produced by gnetlist -g spice-sdb, but I think there must be a better
> way.
> Can anyone advise me?

Read the stuff at the bottom of this page:

http://www.brorson.com/gEDA/SPICE/x150.html

(and the rest of the doc if you haven't).

Also, there is an example hierarchical schematic in the examples
directory of the gEDA/gaf sources.   It is called RF amp or
something like that.  If you can't find it in the gEDA examples, you
can download it here:

http://www.brorson.com/gEDA/SPICE/

Stuart


More information about the geda-user mailing list