Root/modules/pads-array.fpd

Source at commit 20c94362beec5278c00ccc1b0f54c8e53178f012 created 9 years 7 months ago.
By Werner Almesberger, modules/pads-array.fpd: we need loop for pins and for packages, not just one
1/* MACHINE-GENERATED ! */
2
3frame pad {
4    __0: vec @(x/2, y/2)
5    __1: vec @(-x/2, -y/2)
6    rpad "$n" . __0 bare
7}
8
9package "PAD_${name}_${N}x$e"
10unit mm
11
12table
13    { name, x, y }
14    { "2mm", 2mm, 0.5mm }
15    { "60x60", 60mil, 60mil }
16    { "80x80", 80mil, 80mil }
17    { "120x60", 120mil, 60mil }
18
19table
20    { ?name, e, Nmax }
21    { "2mm", 50mil, 20 }
22    { "60x60", 0mm, 1 }
23    { "80x80", 0mm, 1 }
24    { "120x60", 0mm, 1 }
25
26loop N = 2, Nmax
27
28loop n = 1, N
29
30__0: vec @(0mm, e*(n-1))
31frame pad .
32

Archive Download this file

Branches:
master



interactive