X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-TCPREMOTEIP: 173.48.170.196 X-Authenticated-UID: jpd AT noqsi DOT com From: John Doty Content-Type: multipart/alternative; boundary="Apple-Mail=_7E721CE8-D0D8-4491-A5A6-5F2B843E03BD" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [geda-user] why pinnumber in sym pins? Date: Tue, 26 Dec 2017 11:11:24 -0500 References: <20171226122009 DOT 366BF804CEDE AT turkos DOT aspodata DOT se> <20171226144057 DOT 9ee596760a7026fd8f4622d0 AT gmail DOT com> To: "Peter Stuge (peter AT stuge DOT se) [via geda-user AT delorie DOT com]" In-Reply-To: <20171226144057.9ee596760a7026fd8f4622d0@gmail.com> Message-Id: <011FFB8A-7DFC-45A7-9813-64E957599A86@noqsi.com> X-Mailer: Apple Mail (2.3273) Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --Apple-Mail=_7E721CE8-D0D8-4491-A5A6-5F2B843E03BD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Dec 26, 2017, at 8:40 AM, Nicklas Karlsson = (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com] = wrote: >=20 > On Tue, 26 Dec 2017 13:20:09 +0100 (CET) > karl AT aspodata DOT se wrote: >=20 >> Why must one have a pinnumber attribute for each pin i a sym file: >> http://wiki.geda-project.org/geda:master_attributes_list#pinnumber >>=20 >> Wouldn't it suffice to have pinseq and pinlabel ? >=20 > I think pinlabel would suffice. Except that there=E2=80=99s not, at present, a requirement that pinlabel = attributes are unique, or even present in general. So, there would be = large problems with existing symbol libraries. > pinseq is needed for footprint Only for slotted components. You may also want pinseq for SPICE = simulation. > and if I got it correct in cschem they use some kind of mapping = mechanism for this so it's not part of the symbol. >=20 >> Wouldn't it be useful to allow to have just a function (pinlabel) >> attached to the pin without knowing which pinnumber it will end up on = ? >=20 > Yes it would if there is a mapping mechanism. The essential problem is that (refdes,pinnumber) is the fundamental = identifier of connections in gnetlist/lepton-netlist. If you change = this, you need some way to be backward compatible, or change all of the = back ends. We have a mapping mechanism: the slotting mechanism. You can use it for = more than slotting, but it=E2=80=99s not so flexible that it covers all = cases, and it uses the already overloaded pinseq attribute. >=20 > I think I only use pinlabel fo hierachical drawings. It's hard to = distinguish between two pins with same label and different pin numbers. = The visible label is essentially a rather good identifier for pin since = schematics are read by humans. >=20 > Pinlabel as default identifier and pinnumber for the unusual case then = there is a need to distinguish between pins with same label might be = useful but I do not know about any case. >=20 >> E.g. dc/dc converters with single output usually have four pins >> +/-Vin and +/-Vout in all sorts of packages where the pinnumber (from >> the datasheet) can be anything but 1,2,3,4, but their pin names are >> +/-Vin/Vout. So, it would be nice if one could map sym -> fp with >> just the "pinlabel" (gschem) -> pin "Name" (pcb). But pcb doesn't = seem >> to support that idea. >=20 > Agree. I=E2=80=99d love to be able to create generic, parameterized schematics: = why should I need more than one Sallen-Key schematic? Why should I need = to duplicate it four times on a page to get a bank of four using a quad = amp? >=20 >> Any suggestions or pointers ? >=20 > Look at cschem or write your own mapping mechanism. In lepton-netlist, the underlying machinery is in Scheme, and thus = accessible to a plug-in. >=20 >> Regards, >> /Karl Hammar >=20 John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ jpd AT noqsi DOT com --Apple-Mail=_7E721CE8-D0D8-4491-A5A6-5F2B843E03BD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Dec 26, 2017, at 8:40 AM, Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:

On = Tue, 26 Dec 2017 13:20:09 +0100 (CET)
karl AT aspodata DOT se = wrote:

= Why must one have a pinnumber attribute for each pin i a sym file:
http://wiki.geda-project.org/geda:master_attributes_list#pinnum= ber

Wouldn't it suffice to have pinseq = and pinlabel ?

I think = pinlabel would suffice.

Except that there=E2=80=99s not, at present, a = requirement that pinlabel attributes are unique, or even present in = general. So, there would be large problems with existing symbol = libraries.

pinseq is needed for = footprint

Only for = slotted components. You may also want pinseq for SPICE = simulation.

and if I got it correct in = cschem they use some kind of mapping mechanism for this so it's not part = of the symbol.

Wouldn't it be useful to allow  to have just a function = (pinlabel)
attached to the pin without knowing which = pinnumber it will end up on ?

Yes it would if there is a mapping mechanism.

The = essential problem is that (refdes,pinnumber) is the fundamental = identifier of connections in gnetlist/lepton-netlist. If you change = this, you need some way to be backward compatible, or change all of the = back ends.

We have a mapping = mechanism: the slotting mechanism. You can use it for more than = slotting, but it=E2=80=99s not so flexible that it covers all cases, and = it uses the already overloaded pinseq attribute.


I think I only use pinlabel fo hierachical = drawings. It's hard to distinguish between two pins with same label and = different pin numbers. The visible label is essentially a rather good = identifier for pin since schematics are read by humans.

Pinlabel as default identifier and pinnumber for the unusual = case then there is a need to distinguish between pins with same label = might be useful but I do not know about any case.

E.g. dc/dc converters = with single output usually have four pins
+/-Vin and = +/-Vout in all sorts of packages where the pinnumber (from
the datasheet) can be anything but 1,2,3,4, but their pin = names are
+/-Vin/Vout. So, it would be nice if one could = map sym -> fp with
just the "pinlabel" (gschem) -> = pin "Name" (pcb). But pcb doesn't seem
to support that = idea.

Agree.

I=E2=80=99d = love to be able to create generic, parameterized schematics: why should = I need more than one Sallen-Key schematic? Why should I need to = duplicate it four times on a page to get a bank of four using a quad = amp?


Any suggestions or pointers ?

Look at cschem or write your own mapping mechanism.

In = lepton-netlist, the underlying machinery is in Scheme, and thus = accessible to a plug-in.


Regards,
/Karl Hammar


John Doty              Noqsi = Aerospace, Ltd.

http://www.noqsi.com/

jpd AT noqsi DOT com



= --Apple-Mail=_7E721CE8-D0D8-4491-A5A6-5F2B843E03BD--