Root/modules/pads-array.fpd

Source at commit 0b75a76ea3ad27d1a8d2bd68200d37c2f24b809a created 9 years 9 months ago.
By Werner Almesberger, components/inductor.lib: general inductor, reusing filter.lib by Adam Wang
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 auto
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", 100mil, 10 }
23    { "80x80", 100mil, 10 }
24    { "120x60", 100mil, 10 }
25
26loop N = 2, Nmax
27
28loop n = 1, N
29
30__0: vec @(0mm, e*(n-1))
31frame pad .
32measx pad.__1 -> pad.__0 -1mm
33measy pad.__1 -> pad.__0 1mm
34measy __0 >> __0 -x/2-2mm
35measy __0 -> __0 -x/2-1mm
36

Archive Download this file

Branches:
master



interactive