[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: pcb refdes name restrictions?



Dan McMahill wrote:

It had never occurred to me to use anything but an upper case alpha
character followed by a numeric value for a refdes, but students have a
habit of trying the unexpected. It threw me for quite a while trying to
understand what pcb was complaining about, since it referred to a "CONN"
part which wasn't in either the schematic or the pcb netlist or the pcb
file. Now I know about the lower case feature I'll know what to look for
next time.

Correct me if I'm wrong, but only lower case at the end of a refdes is
ignored by pcb (but not by gsch2pcb), so something like Rp4 is ok.


I'd have to look. The test would be to load a netlist and then look in the .pcb file. Or look at the netlist parser.

The parser starts at the end, moving towards the start of the string and strips off lower case characters until it encounters any non-lowercase character, then it stops. Thus Rp4 will be a valid element name. This has been documented in the manual for at least 5 years now since I first wrote that code. From the pcb manual:

If a NAME ends with a lower-case letter,
all lower-case letters are stripped from the end of the NAME to determine the
matching layout-name name.  For example:

   Data U1-3 U2abc-4 FLOP1a-7 Uabc3-A9

specifies that the net called "Data" should have
pin 3 of U1 connected to pin 4 of U2, to pin 7 of
FLOP1 and to pin A9 of Uabc3.  Note that element name and
pin number strings are case-sensitive.
It is up to you to name the elements so that their layout-name names
agrees with the netlist.




_______________________________________________ geda-user mailing list geda-user@xxxxxxxxxxxxxx http://www.seul.org/cgi-bin/mailman/listinfo/geda-user