subckt not included if .title exists

Bug #1544264 reported by Neusr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gEDA
New
Undecided
Unassigned

Bug Description

Hello, I have a netlist for the 555 which I got from Oregano (attached). I am using gEDA (gschem, gnetlist) from deb packages [gEDA 1.8.2 (g875406c)].
1. Add a lm555-1.sym from the components catalogue in gschem.
 1.a Set X1 as the refdes
 1.b Set TLC555 as model-name
2. Add a spice-model-1.sym
 2.a A1 as refdes
 2.b TLC555 as model-name
 2.c TLC555.net as file
3. Save as untitled.sch
4. gnetlist -g spice-sdb -O sort_mode -o untitled.ckt untitled.sch

You will see that the TLC555 will not be added to your untitled.ckt netlist
If you open the TLC555.net and add an asterisk (*) to comment the .TITLE line at the beginning of the file, you can repeat the steps above to get the TLC555 in your new untitled.ckt netlist.

Conclusion: if the netlist of the .SUBCKT has a .TITLE at the beginning of the file, it will not be included.

Revision history for this message
Neusr (jhbfmnpy) wrote :
Revision history for this message
Roland Lutz (rlutz) wrote : Re: [Bug 1544264] [NEW] subckt not included if .title exists

The `spice-sdb' backend ignores model files unless the first directive is
either ".SUBCKT" or ".MODEL". I guess this should be changed to either

   * search the whole model file for those directives,
   * ignore certain metadata like ".TITLE" at the beginning of the file, or
   * remove the check entirely.

I don't know much about SPICE, though, so I'm not sure which behavior
would be most appropriate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.