[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: pcb doesn't find my pins
On Fri, 2010-03-05 at 20:29 -0500, Jim wrote:
> > So is this supposed to be element "U102-J1" 's pin "1", or is the
> > element "U102" 's pin "J1-1".
> > The point is that we chose to use "-" as a name/number separator. It is
> > reasonable to choose a single reserved character for that purpose in a
> > lightweight protocol like our netlist format. We could of course allow
> > the escape that "--" becomes a literal hyphen in the string (which I
> > don't think we've done). That won't solve the instant problem until
> > both the netlister and netlist reader are changed to add that facility.
> > Frankly I don't see it as much of a problem to just treat it as a
> > reserved character and leave the code alone. But there are always
> > people that want to put "/" in their filenames and name their variable
> > "if" in C code.
> >
> Not that I understand all the implications here, but if I were coding
> something that might have multiple dashes and the last dash separated a
> name/number it would be trivial to treat all the dashes as part of the
> name except the last one. I understand that's not the way it appears to
> be written, but it's not a seriously difficult programming problem.
The issue is that we don't define anywhere the rule that the "last" dash
separates the name-pinnumber. (See Harry's note above, e.g.:)
U102-J1-1, we don't have a rule as to how this separates:
U101 pin "J1-1"
or
"U101-J1" pin "1"
Indeed, in your previous case, your suggestion would not do what you
want.. since your pinnumbers had a dashes in them.
I hope since we've been able to work-around the issue for now, we can
live with the "-" issue. Its not really bitten anyone before, and if it
becomes an issue, perhaps we can get gnetlist / gsymcheck to flag such
things with a warning.
Best wishes,
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user