2010-09-12 06:17:18 +03:00
|
|
|
#SUB
|
|
|
|
|
2010-09-12 22:43:33 +03:00
|
|
|
# Taken from gta02-core. Left in the hacks, since we may use similar components
|
2010-09-12 06:17:18 +03:00
|
|
|
# in the future.
|
|
|
|
|
|
|
|
-> T=unknown
|
|
|
|
|
|
|
|
R[0-9P]* { # also handle RP...
|
|
|
|
-> T=R
|
2010-11-06 08:09:21 +02:00
|
|
|
VAL=*[0-9] -> R=${VAL}R
|
2010-09-12 06:17:18 +03:00
|
|
|
VAL=$R -> R=$VAL
|
|
|
|
# -> TOL=5%
|
|
|
|
FN=$% -> TOL=$FN
|
|
|
|
}
|
|
|
|
|
|
|
|
RP[0-9]* {
|
|
|
|
-> T=RA
|
|
|
|
RP220[123] -> ARRAY=4
|
|
|
|
# the other parameters have already been taken care of by R*
|
|
|
|
}
|
|
|
|
|
|
|
|
C[0-9]* {
|
|
|
|
-> T=C
|
2010-09-12 22:43:33 +03:00
|
|
|
VAL=*F -> C=$VAL
|
2010-09-12 06:17:18 +03:00
|
|
|
FN=*V -> V=>=$FN
|
|
|
|
}
|
|
|
|
|
|
|
|
L[0-9]* {
|
|
|
|
-> T=L
|
2010-09-12 22:43:33 +03:00
|
|
|
VAL=*H -> L=$VAL
|
2010-09-12 06:17:18 +03:00
|
|
|
FN=*A -> I=>=$FN
|
|
|
|
}
|
|
|
|
|
|
|
|
B[0-9]* {
|
|
|
|
-> T=FILTER M=BEAD
|
|
|
|
VAL=$R -> R=$VAL
|
|
|
|
FN=*A -> I=$FN
|
|
|
|
FN=*R -> Rdc=$FN
|
|
|
|
FN=0.45R -> Rdc=450mR # hack
|
|
|
|
}
|
|
|
|
|
|
|
|
D[0-9]* {
|
|
|
|
-> T=D
|
|
|
|
VAL=*F { # heuristic to detect TVS
|
|
|
|
-> M=TVS
|
|
|
|
VAL=*F -> C=<=$VAL
|
|
|
|
FN=(*V)ac -> Vac=$FN:1
|
|
|
|
FN=(*V)dc -> Vdc=$FN:1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Hack: some companies specify the class of varistors with Vdc = 9 V
|
|
|
|
# as Vac = 6.5 V while others use Vac = 7 V. Sometimes, Vac is even
|
|
|
|
# omitted entirely.
|
|
|
|
#
|
|
|
|
# Here, we work around the issue that Karmax use Vac = 6.5 V,
|
|
|
|
# Cooper/Bussmann use Vac = 7V if at all, and out schematics specify
|
|
|
|
# Vac = 6.5 V.
|
|
|
|
#
|
|
|
|
Vac=6.5V {
|
|
|
|
-> Vac=
|
|
|
|
-> Vdc=9V
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-10-25 04:40:55 +03:00
|
|
|
VR[0-9]* -> T=D M=TVS {
|
|
|
|
VAL=$V -> Vdc=$VAL # neither clean nor consistent with the above
|
|
|
|
}
|
2010-09-12 06:17:18 +03:00
|
|
|
|
2010-10-25 07:00:11 +03:00
|
|
|
X[0-9]* {
|
|
|
|
-> T=XTAL
|
|
|
|
VAL=*Hz -> F=$VAL
|
|
|
|
FN=*F -> C=$FN
|
|
|
|
FN=*ppm -> TOL=<=$FN
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
T=C C=820fF -> C=800fF # we can't get 0.82 pF, but there's plenty of 0.8 pF :)
|
|
|
|
|
2010-10-26 00:48:34 +03:00
|
|
|
FP=MMCX-F-EDGE* -> VAL=MMCX-F-EDGE-SMT
|
|
|
|
|
2010-09-12 06:17:18 +03:00
|
|
|
FP=meander -> VAL=meander
|
|
|
|
FP=uSD-Card -> VAL=uSD-Card
|
2010-10-25 04:40:55 +03:00
|
|
|
FP=PAD_120x60 -> VAL=PAD_120x60
|
2010-10-25 07:00:11 +03:00
|
|
|
FP=PAD_2mm -> VAL=PAD_2mm
|