Mail Archives: geda-user/2016/09/07/07:24:56
On Wed, 7 Sep 2016, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via
geda-user AT delorie DOT com] wrote:
> Having been thinking before of all the ambiguous attribute names we have
> in geda where each gnetlist backend has its own vision on their use, now
> I think every one of them being non-compatible with others should have a
> different backend-specific name. Say, you cannot use the same toplevel
> entity/module definition for vhdl, verilog and spice.
I've been thinking about that, too. Prefixing attributes with the
"problem domain" they're used for has several advantages: first, it would
solve the old problem with re-using attributes, like "pinseq" being used
by both the netlister itself (for slotting) and the SPICE backends, and
the much-overloaded "device" attribute. Second, given that there's no
exhaustive attribute list for gEDA, it would make it more obvious where
the information in a particular attribute actually goes.
Backends which share a "problem domain" should probably access the same
attributes (e.g., the 'bom', 'bom2', 'partslist1', 'partslist2', and
'partslist3' backends), so I suggest using attribute "namespaces" which
backends can share or not share as appropriate:
spice:pinseq
spice:model-name
bom:device
bom:nobom
pcb:footprint
In order to avoid breaking older schematics, backends would obviously have
to probe for the legacy attribute names, too (though it may be possible to
hide this in the API).
- Raw text -