Root/modules/xtal-4.fpd

Source at commit 49e7c83796bc04941e9dbcec69bc0751563ff4d4 created 2 years 5 months ago.
By Werner Almesberger, atusb/: use ""VDD" symbol from kicad-libs
1/* MACHINE-GENERATED ! */
2
3frame pad {
4    __0: vec @(Px/2, Py/2)
5    __1: vec @(-Px/2, -Py/2)
6    pad "$pin" . __0
7}
8
9frame pads {
10    table
11        { pin, dx, dy }
12        { 1, -1, -1 }
13        { 2, 1, -1 }
14        { 3, 1, 1 }
15        { 4, -1, 1 }
16
17    __0: vec @(dx*Gx/2, dy*Gy/2)
18    frame pad .
19}
20
21frame outline {
22    table
23        { px, py, x, y }
24        { 0mm, Dy/2, Gx-Px-2*w, 0mm }
25        { 0mm, -Dy/2, Gx-Px-2*w, 0mm }
26        { -Dx/2, 0mm, 0mm, Gy-Py-2*w }
27        { Dx/2, 0mm, 0mm, Gy-Py-2*w }
28
29    __0: vec @(px, py)
30    __1: vec .(x/2, y/2)
31    __2: vec __0(-x/2, -y/2)
32    line . __1 w
33}
34
35package "xtal4-${Dx}x${Dy}"
36unit mm
37
38table
39    { Dx, Dy, Gx, Gy, Px, Py }
40    { 3.2mm, 2.5mm, 2.2mm, 1.6mm, 1.4mm, 1.2mm }
41
42set w = 5mil
43
44frame pads @
45frame outline @
46measx pads.__0 -> pads.__0 1mm+Py/2+Gy
47measy pads.__0 -> pads.__0 -1mm-Px/2-Gx
48measy pad.__1 -> pad.__0 1mm
49measx pad.__1 -> pad.__0 -1mm
50measx outline.__0 >> outline.__0 Gy/2+Py/2+1.5mm
51measy outline.__0 >> outline.__0 -(Gx/2+Px/2+1.5mm)
52

Archive Download this file



interactive