Mail Archives: geda-user/2016/09/06/18:31:42
--Apple-Mail=_F51EB531-7069-4EC4-B165-002753997BD7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252
On Sep 6, 2016, at 3:34 PM, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via =
geda-user AT delorie DOT com] <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.
The way I do it in gnet-spice-noqsi is to have spice-specific attributes =
spice-prototype, spice-prolog, and spice-epilog. Those feed a simple =
macro expander that can *refer* to the old overloaded attribute names. =
There are built-in defaults for the spice-prototype attribute selected =
by the device attribute.
So, for example, the default prototype for device=3DRESISTOR is
R? %pinseq value@ model-name@ spice-args@ w=3D l=3D area=3D temp=3D=93
This does the following:
1. Insures the refdes starts with R.
2. Uses pinseq to order the connections, as in the past.
3. Uses the value attribute for the resistance, as in the past.
4. Picks up other optional attributes.
The user can override this with a spice-prototype attribute to get any =
output desired. This approach avoids getting in the way of other back =
ends, while most often doing the =93right thing=94 by default.
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
--Apple-Mail=_F51EB531-7069-4EC4-B165-002753997BD7
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQIcBAEBCgAGBQJXz0NzAAoJEF1Aj/0UKykRirYP/jtjbGVwU/L88AXoNzs4gwmg
0GhzhEmsCE0Idi9rsTWWSmpaHnrgEKFDCQ5c0g2uSrg46dcwAp00iDKzBSFs2hnJ
v5juz00gZ9l9fyG+vSUWckiKdLBP6BTexcQT81jZubNf+A/pwSTncJ9sMLQ6Ns1W
GUsqfZuMhvHmOg6uSC1zGIpYuG6OvH+B4f1MUGM8Q4WqEU3boy0mfG538rvDRg9s
HLcGholbeHTugPwZmzum2g3/WaE5eibE4olOhc9HHoGRZpyJ8IV1343SGTZCczpn
fI/sMnJahPo+vI3ZCWr/rHW6S+V8uj9cnGx52qM52z4dUFAHklfej9nPilDDAfgK
Eh2hz/ZOXY+BDAgLnXruWuHH+DlDF5xV2GTrnkP8MZOJnn4Rq1Pe0a6/tBI/cIMO
sG8UWVQCE0roUoeSD0q+GRhmFPnm2q3OvWd1vxuEo++g2t7do+avyRou6NN8JD+j
RnhcPMi3Iu+Zn++rYGOVuwbvALMCQfOnxBN+bfvih5CyzEBH16cgtlZb7WApixUM
9lf8/kzSWLbyiSFOfSUSUVvmm9jKpaLVxd402nUSOLGAP0qe9wvKS58T8Eji9q5M
NvDwml7K36+Yzupvjf5pBGSK7liMlFrOJGE4ISttKFYyl6NjWH9RoKWSjfUSjyoE
cy2URTL8aLcvXlSOkgQg
=vm5x
-----END PGP SIGNATURE-----
--Apple-Mail=_F51EB531-7069-4EC4-B165-002753997BD7--
- Raw text -