mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-29 21:10:19 +02:00
Added sanity check for characteristics and corrected omissions/errors found.
- boom/manu/Makefile.common (sane): new target to check that values are well-formed and that all required fields are present - boom/manu/murata/murata.gen (GRM*): added references to catalog pages - boom/manu/murata/murata.gen (GRM*): added footprints 1808, 1812, and 2220 - boom/manu/murata/murata.gen (GRM*): ordered materials alphabetically - boom/manu/murata/murata.gen (GRM*): added materials Z5UY5V - boom/manu/murata/murata.gen (GRM*): added voltages 250V, 630V, 1kV, abd 3.15kV - boom/manu/panasonic/panasonic.gen (ERJ*): tolerance used the wrong field - boom/manu/yageo/yageo.gen (CC*): added voltage 500V
This commit is contained in:
parent
fd67bc9f3e
commit
bf2e9f2338
@ -4,7 +4,7 @@ UC_NAME = $(shell echo $(NAME) | tr [a-z] [A-Z])
|
|||||||
|
|
||||||
EQU = ../../dist/all.equ
|
EQU = ../../dist/all.equ
|
||||||
|
|
||||||
.PHONY: all test
|
.PHONY: all test sane
|
||||||
|
|
||||||
all: $(NAME).chr
|
all: $(NAME).chr
|
||||||
|
|
||||||
@ -13,3 +13,34 @@ $(NAME).chr: $(EQU) $(NAME).gen
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
$(BOOM) gen2chr -n $(UC_NAME) $(EQU) $(NAME).gen
|
$(BOOM) gen2chr -n $(UC_NAME) $(EQU) $(NAME).gen
|
||||||
|
|
||||||
|
LIMIT = sed '1{x;s/.*/--- $(1) ---/p;x;};6{s/.*/.../;q;}'
|
||||||
|
|
||||||
|
MALFORMED = @grep '\<T=$(2)\>' $(NAME).chr | \
|
||||||
|
grep -v '\<$(3)=[0-9][0-9.]*[fnpumkMG]\?$(4)\>' | \
|
||||||
|
$(call LIMIT,$(1))
|
||||||
|
|
||||||
|
ABSENT = @grep '\<T=$(2)\>' $(NAME).chr | grep -v '\<$(3)=' | \
|
||||||
|
$(call LIMIT,$(1))
|
||||||
|
|
||||||
|
sane:
|
||||||
|
@# general
|
||||||
|
|
||||||
|
$(call ABSENT,FP missing,.*,FP)
|
||||||
|
|
||||||
|
@# R
|
||||||
|
|
||||||
|
$(call MALFORMED,Malformed R=,R,R,R)
|
||||||
|
$(call ABSENT,T=R without ",R,P)
|
||||||
|
@# special case: 0R has no meaningful tolerance
|
||||||
|
@grep '\<T=R\>' $(NAME).chr | grep -v '\<R=0R\>' | \
|
||||||
|
grep -v '\<TOL=' | $(call LIMIT,T=R without TOL)
|
||||||
|
@# V is optional
|
||||||
|
@# TC ?
|
||||||
|
|
||||||
|
@# C
|
||||||
|
|
||||||
|
$(call MALFORMED,Malformed C=,C,C,F)
|
||||||
|
$(call ABSENT,T=C without M,C,M)
|
||||||
|
$(call ABSENT,T=C without V,C,V)
|
||||||
|
$(call ABSENT,T=C without TOL,C,TOL)
|
||||||
|
@ -1,2 +1,8 @@
|
|||||||
NAME = murata
|
NAME = murata
|
||||||
include ../Makefile.common
|
include ../Makefile.common
|
||||||
|
|
||||||
|
#
|
||||||
|
# "make sane" will complain about:
|
||||||
|
#
|
||||||
|
# GRM1885C2A100RA01D no tolerance (code R means "individual standard")
|
||||||
|
#
|
||||||
|
@ -6,6 +6,8 @@ GRM* -> T=C {
|
|||||||
GRM(??)?(??)(??)([0-9R][0-9R][0-9])(?)* ->
|
GRM(??)?(??)(??)([0-9R][0-9R][0-9])(?)* ->
|
||||||
_FP=$REF:1 _M=$REF:2 _V=$REF:3 _E12_P=$REF:4 _TOL=$REF:5
|
_FP=$REF:1 _M=$REF:2 _V=$REF:3 _E12_P=$REF:4 _TOL=$REF:5
|
||||||
|
|
||||||
|
# page 2
|
||||||
|
|
||||||
_FP=02 -> FP=01005
|
_FP=02 -> FP=01005
|
||||||
_FP=03 -> FP=0201
|
_FP=03 -> FP=0201
|
||||||
_FP=15 -> FP=0402
|
_FP=15 -> FP=0402
|
||||||
@ -13,17 +15,29 @@ GRM* -> T=C {
|
|||||||
_FP=21 -> FP=0805
|
_FP=21 -> FP=0805
|
||||||
_FP=31 -> FP=1206
|
_FP=31 -> FP=1206
|
||||||
_FP=32 -> FP=1210
|
_FP=32 -> FP=1210
|
||||||
|
_FP=42 -> FP=1808
|
||||||
|
_FP=43 -> FP=1812
|
||||||
|
_FP=55 -> FP=2220
|
||||||
|
|
||||||
|
# page 3
|
||||||
|
#
|
||||||
|
# E4 from
|
||||||
|
# http://search.murata.co.jp/Ceramy/image/img/PDF/ENG/GRM188E41H103MA01.pdf
|
||||||
|
|
||||||
_M=5C -> M=NP0
|
_M=5C -> M=NP0
|
||||||
_M=7U -> M=U2J
|
|
||||||
_M=6P -> M=P2H
|
_M=6P -> M=P2H
|
||||||
_M=6T -> M=T2H
|
_M=6T -> M=T2H
|
||||||
_M=R7 -> M=X7R
|
_M=7U -> M=U2J
|
||||||
_M=E7 -> M=X7U
|
|
||||||
_M=D7 -> M=X7T
|
|
||||||
_M=C8 -> M=X6S
|
_M=C8 -> M=X6S
|
||||||
|
_M=D7 -> M=X7T
|
||||||
_M=D8 -> M=X6T
|
_M=D8 -> M=X6T
|
||||||
|
_M=E4 -> M=Z5U
|
||||||
|
_M=E7 -> M=X7U
|
||||||
|
_M=F5 -> M=Y5V
|
||||||
_M=R6 -> M=X5R
|
_M=R6 -> M=X5R
|
||||||
|
_M=R7 -> M=X7R
|
||||||
|
|
||||||
|
# page 5
|
||||||
|
|
||||||
_V=0G -> V=4V
|
_V=0G -> V=4V
|
||||||
_V=0J -> V=6.3V
|
_V=0J -> V=6.3V
|
||||||
@ -33,6 +47,10 @@ GRM* -> T=C {
|
|||||||
_V=YA -> V=35V
|
_V=YA -> V=35V
|
||||||
_V=1H -> V=50V
|
_V=1H -> V=50V
|
||||||
_V=2A -> V=100V
|
_V=2A -> V=100V
|
||||||
|
_V=2E -> V=250V
|
||||||
|
_V=2J -> V=630V
|
||||||
|
_V=3A -> V=1kV
|
||||||
|
_V=3F -> V=3.15kV
|
||||||
|
|
||||||
include ../../lib/captol.inc
|
include ../../lib/captol.inc
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ ERJ* -> T=R {
|
|||||||
_FP=$REF:1 _TOL=$REF:3 _E12_1=$REF:3
|
_FP=$REF:1 _TOL=$REF:3 _E12_1=$REF:3
|
||||||
|
|
||||||
ERJ-(P0[368]|P14)(J)([R0-9][R0-9][0-9])* ->
|
ERJ-(P0[368]|P14)(J)([R0-9][R0-9][0-9])* ->
|
||||||
_FP=$REF:1 _TOL=$REF:3 _E12_1=$REF:3
|
_FP=$REF:1 _TOL=$REF:2 _E12_1=$REF:3
|
||||||
|
|
||||||
# http://industrial.panasonic.com/www-data/pdf/AOA0000/AOA0000CE7.pdf
|
# http://industrial.panasonic.com/www-data/pdf/AOA0000/AOA0000CE7.pdf
|
||||||
|
|
||||||
|
@ -45,6 +45,7 @@ CC* -> T=C {
|
|||||||
_V=7 -> V=16V
|
_V=7 -> V=16V
|
||||||
_V=8 -> V=25V
|
_V=8 -> V=25V
|
||||||
_V=9 -> V=50V
|
_V=9 -> V=50V
|
||||||
|
_V=B -> V=500V
|
||||||
_V=C -> V=1kV
|
_V=C -> V=1kV
|
||||||
_V=E -> V=3kV
|
_V=E -> V=3kV
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user