Date:2012-05-30 02:52:30 (8 years 2 months ago)
Author:Werner Almesberger
Commit:20b7c5f395e418f7c50ce310311e141b4320df59
Message:modules/qfp-gen.fpd: further improvements (WIP)

- add rounding,
- add pad numbers, and
- more measurements.

Alas, the geometry still doesn't look quite right: in the 32 pin
package, the pads seem short and too wide. In the 48 pin version,
it's the opposite.
Files: modules/qfp-gen.fpd (3 diffs)

Change Details

modules/qfp-gen.fpd
11/* MACHINE-GENERATED ! */
22
3frame meas_aux {
4    set ?dy = -1
5
6    __0: vec @(-wx/2, -wy/2)
7    __1: vec @(wx/2, wy/2)
8}
9
310frame land {
411    table
512        { dx, dy, n }
...... 
2330    __0: vec @(ix, iy)
2431    __1: vec .(sx, sy)
2532    __2: vec .(ox-ix, oy-iy)
33    frame meas_aux .
2634    __4: vec .(wx/2, wy/2)
2735    __3: vec __1(-wx/2, -wy/2)
28    pad "?" . __4
36    pad "$n" . __4
2937    __5: vec @((ix+ox)/2, (iy+oy)/2)
3038}
3139
...... 
7179    { F, P }
7280    { pcb_tolerance, placement_tolerance }
7381
74set Zmax = Dmin+2*Jt+sqrt(Cl*Cl+F*F+P*P)
82set Zmax_raw = Dmin+2*Jt+sqrt(Cl*Cl+F*F+P*P)
83
84set Gmin_raw = Smax-2*Jh-sqrt(Cs*Cs+F*F+P*P)
85
86set Xmax_raw = b1min+2*Js+sqrt(Cw*Cw+F*F+P*P)
87
88set Zmax = floor(Zmax_raw/Jt_round+0.5)*Jt_round
7589
76set Gmin = Smax-2*Jh-sqrt(Cs*Cs+F*F+P*P)
90set Gmin = floor(Gmin_raw/Jh_round+0.5)*Jh_round
7791
78set Xmax = b1min+2*Js+sqrt(Cw*Cw+F*F+P*P)
92set Xmax = floor(Xmax_raw/Js_round+0.5)*Js_round
7993
8094frame land @
81measy land.__2 -> land.__1 1mm
82measy land.__0 >> land.__0
83measy land.__2 >> land.__4 4mm
84measy land.__5 >> land.__5 6mm
95measy land.__2 -> land.__1 -7mm
96measy land.__0 >> land.__0 6mm
97measy land.__2 >> land.__4 5mm
98measy land.__5 >> land.__5 7mm
99measx meas_aux.__0 -> land.__4 -1mm

Archive Download the corresponding diff file

Branches:
master



interactive