[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Bug report for renaming slots [Was: Re: gEDA on windows]
On Jan 12, 2009, at 8:41 PM, Peter Clifton wrote:
> Sorry for typing before thinking that through fully. Treating all
> slots
> as one component (for adding attributes) isn't actually possible with
> gEDA's architecture. Attributes can only be added to symbols.
>
> I can imagine the GUI glossing over that fact, and perhaps offering to
> help keep attributes in sync when renaming a single slot, it would be
> difficult (perhaps impossible) to cater for the case where you have
> some
> slots on one schematic page, and others elsewhere.
The trouble from my perspective is that gnetlist:get-package-
attribute apparently only picks up attributes from the first instance
of the package it encounters. But there will be multiple instances in
the case of a slotted or heterogeneous package.
It seems to me that it should look at all instances. As usual,
schematic-level attached attributes should override symbol
attributes. If at least one instance has the attribute, and there is
no conflict with other instances, the attribute is determined. If the
attribute cannot be determined, it is "unknown". If there is a
ambiguity (different attributes for different instances), this should
be reported as an error.
If multiple attribute values are allowed, we need a different
interface returning a list of values. But for most uses (like
"footprint") of get-package-attribute a conflict should be an error.
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