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

gEDA-user: Re: gschem and heterogeneous symbols



On Sat, 16 Dec 2006 20:59:11 -0700, Andy Peters wrote:

> Anyways, about the closest I can come to this idea is to create a  
> pair of symbols for my dual op-amp.  One symbol has the power pins;  
> the other doesn't.  Both symbols get the same ref des. 

Jupp. This is exactly how I do my dual opamps and the 74XX stuff.
gsch2pcb will assign the correct nets to the pins.


> I'm not sure how to set slot numbers and slotdef.

For the sloted symbol of a dual opamp use the slotdef attribute like this:
	slotdef=1:1,2,3
	slotdef=2:7,6,5
	slot=1
The slot symbol should be visible and can be changed in the edit attribute
dialog of gschem. The power sympol does not need any slotting.
 
---<(kaimartin)>---

PS: Here is my dual opamp symbol pair. Feel free to use it as you like:

----------------------------8<--------------------- 
v 20060824 1 T 325
2700 5 8 0 0 0 0 1
device=opamp_dual
T 325 2500 5 8 0 0 0 0 1
description=generic dual operational amplifier, SO8 T 300 2300 5 8 0 1 0 0
1
comment=Use symbol opamp_dual_pwr.sym to connect power pins. T 300 1925 5
8 0 0 0 0 1
author=Kai-Martin Knaak kmk@xxxxxxxxxxxx T 300 2100 5 8 0 0 0 0 1
documentation=none
T 300 1700 5 8 0 0 0 0 1
numslots=2
T 300 1300 5 8 0 0 0 0 1
slotdef=1:1,2,3
T 300 1500 5 8 0 0 0 0 1
slotdef=2:7,6,5
T 1200 600 5 8 1 0 0 0 1
slot=1
T 775 1025 8 10 1 1 0 0 1
refdes=U?
T 800 800 8 10 1 1 0 0 1
value=XXX
T 800 600 5 8 1 1 0 0 1
footprint=SO8
L 300 800 300 0 3 0 0 0 -1 -1
L 300 800 1100 400 3 0 0 0 -1 -1
L 300 0 1100 400 3 0 0 0 -1 -1
P 1100 400 1400 400 1 0 1
{
T 1125 450 5 8 0 1 0 0 1
pinnumber=1
T 1125 450 5 8 0 1 0 0 1
pinseq=1
T 1300 450 5 8 0 1 0 0 1
pintype=out
T 1125 250 9 8 0 1 0 0 1
pinlabel=Vout
}
P 0 200 300 200 1 0 0
{
T 150 250 5 8 0 1 0 0 1
pinnumber=2
T 150 250 5 8 0 1 0 0 1
pinseq=2
T 350 100 9 16 1 1 0 0 1
pinlabel=-
T 150 100 5 8 0 1 0 0 1
pintype=in
}
P 0 600 300 600 1 0 0
{
T 200 650 5 8 0 1 0 0 1
pinnumber=3
T 200 650 5 8 0 1 0 0 1
pinseq=3
T 350 500 9 16 1 1 0 0 1
pinlabel=+
T 150 500 5 8 0 1 0 0 1
pintype=in
}
T 400 400 9 8 1 0 0 1 1
DUAL
-----------------8<--------------------


And this is the corresponding power symbol:
------------------------>8-------------
v 20060824 1
T 90 2700 5 8 0 0 0 0 1
device=opamp_dual_pwr
T 90 2500 5 8 0 0 0 0 1
description=Power pins for dual opamp
T 90 2300 5 8 0 0 0 0 1
author=Kai-Martin Knaak kmk@xxxxxxxxxxxx
T 90 2100 5 8 0 0 0 0 1
license=GPL2
T 90 1900 5 8 0 0 0 0 1
numslots=0
T 400 900 8 10 1 1 0 0 1
refdes=U?
B 0 100 600 700 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
T 50 350 9 8 1 0 0 0 1
opamp
T 50 450 9 8 1 0 0 0 1
dual
P 300 900 300 800 1 0 0
{
T 200 1000 5 8 0 1 0 6 1
pinseq=8
T 200 1000 5 8 0 1 0 6 1
pinnumber=8
T 200 900 5 8 0 1 0 6 1
pintype=pwr
T 250 700 5 8 1 1 0 4 1
pinlabel=Vcc
}
P 300 0 300 100 1 0 0
{
T 200 -100 5 8 0 1 0 6 1
pinseq=4
T 200 -100 5 8 0 1 0 6 1
pinnumber=4
T 200 -200 5 8 0 1 0 6 1
pintype=pwr
T 325 200 5 8 1 1 0 4 1
pinlabel=-Vcc
}
--------------------8<-----------------


-- 
Kai-Martin Knaak
http://lilalaser.de/blog



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