[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-user: gschem2pcb Issues



On Thu, 20 Jun 2002, Eric Winsor wrote:

> Chris Ellec wrote:
>
<...>
>
> OK, I was at this point a few weeks ago. I created a simple schematic
> with one symbol thus:
>
> [ewinsor@prism geda.sch]$ cat topcb.sch
> v 20020527
> C 51100 58800 1 0 0 5V-plus-1.sym
> C 49400 56800 1 0 0 5V-plus-1.sym
> N 49800 56200 49600 56200 4
> N 49600 56200 49600 56800 4
> N 49800 56600 49600 56600 4
> N 51300 56400 51300 58800 4
> N 51300 56400 51100 56400 4
> C 49800 55900 1 0 0 7400-1new.sym
> {
> T 50100 56800 5 10 1 1 0 0
> uref=U1
> }
> [ewinsor@prism geda.sch]$ cat ~/geda/share/gEDA/sym/local/7400-1new.sym
> v 20020527
> L 300 200 300 800 3 0 0 0 -1 -1
> T 300 0 9 8 1 0 0 0
> 7400
> L 300 800 700 800 3 0 0 0 -1 -1
> T 500 900 5 10 0 0 0 0
> device=7400
> T 500 1100 5 10 0 0 0 0
> slot=1
> T 500 1300 5 10 0 0 0 0
> numslots=4
> T 500 1500 5 10 0 0 0 0
> slot1=1,2,3
> T 500 1700 5 10 0 0 0 0
> slot2=4,5,6
> T 500 1900 5 10 0 0 0 0
> slot3=9,10,8
> T 500 2100 5 10 0 0 0 0
> slot4=12,13,11
> L 300 200 700 200 3 0 0 0 -1 -1
> A 700 500 300 270 180 3 0 0 0 -1 -1
> V 1050 500 50 6 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
> P 1100 500 1300 500 1
> {
> T 1085 550 5 8 1 1 0 0
> pin3=3
> }
> P 300 300 0 300 1
> {
> T 100 350 5 8 1 1 0 0
> pin2=2
> }
> P 300 700 0 700 1
> {
> T 100 750 5 8 1 1 0 0
> pin1=1
> }
> T 300 900 8 10 1 1 0 0
> uref=U?

You must name this device. Maybe this solves the problem.

> T 500 2300 5 10 0 0 0 0
> footprint=DIL 14 300
>
> Then I run gschem2pcb and get this like B Cattle is getting thus:
>
> [ewinsor@prism geda.sch]$ gschem2pcb topcb.sch
> gEDA/gnetlist version 20020527
> gEDA/gnetlist comes with ABSOLUTELY NO WARRANTY; see COPYING for more
> details.
> This is free software, and you are welcome to redistribute it under
> certain
> conditions; please see the COPYING file for more details.
>
> Loading schematic [topcb.sch]
> gEDA/gnetlist version 20020527
> gEDA/gnetlist comes with ABSOLUTELY NO WARRANTY; see COPYING for more
> details.
> This is free software, and you are welcome to redistribute it under
> certain
> conditions; please see the COPYING file for more details.
>
> Loading schematic [topcb.sch]
>
> Error: the footprint DIL for the device U1 does not exist
>
> I have looked for DIL on my machine and I do not find it.
>
> [ewinsor@prism geda.sch]$ locate DIL
> /home/ewinsor/pcbtmp/pcb-1.6.3p/lib/TTL_74xx_DIL.list
> /home/ewinsor/pcbtmp/pcb-1.6.3p/lib/TTL_74xx_DIL.m4
> /home/cad/lib/pcb/m4/TTL_74xx_DIL.m4
> /home/cad/lib/pcb/m4/TTL_74xx_DIL.list
> [ewinsor@prism geda.sch]$ locate dil
> /usr/share/apps/kmidi/pics/kmidilogo.png
> /home/ewinsor/pcbtmp/pcb-1.6.3p/lib/dil.inc
> /home/cad/lib/pcb/m4/dil.inc
>
> And, changing to lower case as in footprint=dil 14 300 gives the same
> results as DIL.
>
> Are we missing something or have something improperly installed?

The footprints don't have to be in the libraryname.
Have a look into the libraries.

[marc@rotes268 marc]$ cd /usr/X11R6/lib/X11/pcb/m4/
[marc@rotes268 m4]$ grep DIL *
dil.inc:# DIL packages
dil.inc:define(`PKG_DIL',
dil.inc:define(`PKG_J', `PKG_DIL(`$1', `$2', `$3', `$4', `$5')')
dil.inc:define(`PKG_JD', `PKG_DIL(`$1', `$2', `$3', `$4',`$5')')
dil.inc:define(`PKG_JG', `PKG_DIL(`$1', `$2', `$3', `$4',`$5')')
dil.inc:define(`PKG_N', `PKG_DIL(`$1', `$2', `$3', `$4', `$5')')
dil.inc:define(`PKG_NT', `PKG_DIL(`$1', `$2', `$3', `$4',`$5')')
dil.inc:define(`PKG_P', `PKG_DIL(`$1', `$2', `$3', `$4', `$5')')
generic.list:generic8_dil:N:DIL 8
generic.list:generic14_dil:N:DIL 14
generic.list:generic16_dil:N:DIL 16
generic.list:generic18_dil:N:DIL 18
generic.list:generic20_dil:N:DIL 20
generic.list:generic24_dil:N:DIL 24
<...>

HTH,
Marc
-- 
Marc Reibel <marc@reibel-web.de> <http://www.reibel-web.de>
PGP Key: 0xBC41A832/B4BB 179B 38B1 6C65 31FA B51C DBB6 A50A
ICQ: 42168505