Skip to content

Commit fc024ec

Browse files
committed
Fix value field for 22K resistors
No longer described as 2.2K, 16 places BOM error caught by fab house Update attrib_lint.py to detect this fault
1 parent fc5df1a commit fc024ec

3 files changed

Lines changed: 49 additions & 36 deletions

File tree

design/I2C_MUX.sch

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R45
364364
U 1 1 5C5ABFCC
365365
P 6500 2150
366366
F 0 "R45" H 6400 2150 50 0000 C CNN
367-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6500 1940 60 0001 L CNN
367+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6500 1940 60 0001 L CNN
368368
F 2 "Resistors SMD:RESC1005X40N" H 6500 1130 60 0001 L CNN
369369
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6500 1760 60 0001 L CNN
370370
F 4 "22k" H 6900 2150 50 0000 C CNN "~"
@@ -412,7 +412,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R46
412412
U 1 1 5C5B01D9
413413
P 6500 2250
414414
F 0 "R46" H 6400 2250 50 0000 C CNN
415-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6500 2040 60 0001 L CNN
415+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6500 2040 60 0001 L CNN
416416
F 2 "Resistors SMD:RESC1005X40N" H 6500 1230 60 0001 L CNN
417417
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6500 1860 60 0001 L CNN
418418
F 4 "22k" H 6900 2250 50 0000 C CNN "~"
@@ -460,7 +460,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R47
460460
U 1 1 5C5B20E3
461461
P 6500 2350
462462
F 0 "R47" H 6400 2350 50 0000 C CNN
463-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6500 2140 60 0001 L CNN
463+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6500 2140 60 0001 L CNN
464464
F 2 "Resistors SMD:RESC1005X40N" H 6500 1330 60 0001 L CNN
465465
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6500 1960 60 0001 L CNN
466466
F 4 "22k" H 6900 2350 50 0000 C CNN "~"
@@ -508,7 +508,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R48
508508
U 1 1 5C5B3FEA
509509
P 6500 2450
510510
F 0 "R48" H 6400 2450 50 0000 C CNN
511-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6500 2240 60 0001 L CNN
511+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6500 2240 60 0001 L CNN
512512
F 2 "Resistors SMD:RESC1005X40N" H 6500 1430 60 0001 L CNN
513513
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6500 2060 60 0001 L CNN
514514
F 4 "22k" H 6900 2450 50 0000 C CNN "~"
@@ -556,7 +556,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R49
556556
U 1 1 5C5B5EF0
557557
P 6000 2550
558558
F 0 "R49" H 5900 2550 50 0000 C CNN
559-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6000 2340 60 0001 L CNN
559+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6000 2340 60 0001 L CNN
560560
F 2 "Resistors SMD:RESC1005X40N" H 6000 1530 60 0001 L CNN
561561
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6000 2160 60 0001 L CNN
562562
F 4 "22k" H 6400 2550 50 0000 C CNN "~"
@@ -604,7 +604,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R50
604604
U 1 1 5C5B7DF9
605605
P 6000 2650
606606
F 0 "R50" H 5900 2650 50 0000 C CNN
607-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6000 2440 60 0001 L CNN
607+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6000 2440 60 0001 L CNN
608608
F 2 "Resistors SMD:RESC1005X40N" H 6000 1630 60 0001 L CNN
609609
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6000 2260 60 0001 L CNN
610610
F 4 "22k" H 6400 2650 50 0000 C CNN "~"
@@ -652,7 +652,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R51
652652
U 1 1 5C5B9D07
653653
P 6500 2750
654654
F 0 "R51" H 6400 2750 50 0000 C CNN
655-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6500 2540 60 0001 L CNN
655+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6500 2540 60 0001 L CNN
656656
F 2 "Resistors SMD:RESC1005X40N" H 6500 1730 60 0001 L CNN
657657
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6500 2360 60 0001 L CNN
658658
F 4 "22k" H 6900 2750 50 0000 C CNN "~"
@@ -700,7 +700,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R52
700700
U 1 1 5C5BBC14
701701
P 6500 2850
702702
F 0 "R52" H 6400 2850 50 0000 C CNN
703-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6500 2640 60 0001 L CNN
703+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6500 2640 60 0001 L CNN
704704
F 2 "Resistors SMD:RESC1005X40N" H 6500 1830 60 0001 L CNN
705705
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6500 2460 60 0001 L CNN
706706
F 4 "22k" H 6900 2850 50 0000 C CNN "~"
@@ -748,7 +748,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R53
748748
U 1 1 5C5BDB24
749749
P 6000 2950
750750
F 0 "R53" H 5900 2950 50 0000 C CNN
751-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6000 2740 60 0001 L CNN
751+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6000 2740 60 0001 L CNN
752752
F 2 "Resistors SMD:RESC1005X40N" H 6000 1930 60 0001 L CNN
753753
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6000 2560 60 0001 L CNN
754754
F 4 "22k" H 6400 2950 50 0000 C CNN "~"
@@ -796,7 +796,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R54
796796
U 1 1 5C5BFA31
797797
P 6000 3050
798798
F 0 "R54" H 5900 3050 50 0000 C CNN
799-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6000 2840 60 0001 L CNN
799+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6000 2840 60 0001 L CNN
800800
F 2 "Resistors SMD:RESC1005X40N" H 6000 2030 60 0001 L CNN
801801
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6000 2660 60 0001 L CNN
802802
F 4 "22k" H 6400 3050 50 0000 C CNN "~"
@@ -844,7 +844,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R55
844844
U 1 1 5C5C193D
845845
P 6000 3150
846846
F 0 "R55" H 5900 3150 50 0000 C CNN
847-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6000 2940 60 0001 L CNN
847+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6000 2940 60 0001 L CNN
848848
F 2 "Resistors SMD:RESC1005X40N" H 6000 2130 60 0001 L CNN
849849
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6000 2760 60 0001 L CNN
850850
F 4 "22k" H 6400 3150 50 0000 C CNN "~"
@@ -892,7 +892,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R56
892892
U 1 1 5C5C384C
893893
P 6000 3250
894894
F 0 "R56" H 5900 3250 50 0000 C CNN
895-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6000 3040 60 0001 L CNN
895+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6000 3040 60 0001 L CNN
896896
F 2 "Resistors SMD:RESC1005X40N" H 6000 2230 60 0001 L CNN
897897
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6000 2860 60 0001 L CNN
898898
F 4 "22k" H 6400 3250 50 0000 C CNN "~"
@@ -940,7 +940,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R57
940940
U 1 1 5C5C575C
941941
P 6500 3350
942942
F 0 "R57" H 6400 3350 50 0000 C CNN
943-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6500 3140 60 0001 L CNN
943+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6500 3140 60 0001 L CNN
944944
F 2 "Resistors SMD:RESC1005X40N" H 6500 2330 60 0001 L CNN
945945
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6500 2960 60 0001 L CNN
946946
F 4 "22k" H 6900 3350 50 0000 C CNN "~"
@@ -988,7 +988,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R75
988988
U 1 1 5C5C766B
989989
P 6500 3450
990990
F 0 "R75" H 6400 3450 50 0000 C CNN
991-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6500 3240 60 0001 L CNN
991+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6500 3240 60 0001 L CNN
992992
F 2 "Resistors SMD:RESC1005X40N" H 6500 2430 60 0001 L CNN
993993
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6500 3060 60 0001 L CNN
994994
F 4 "22k" H 6900 3450 50 0000 C CNN "~"
@@ -1423,7 +1423,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R91
14231423
U 1 1 5C5CB48E
14241424
P 6000 3650
14251425
F 0 "R91" H 5900 3650 50 0000 C CNN
1426-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6000 3440 60 0001 L CNN
1426+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6000 3440 60 0001 L CNN
14271427
F 2 "Resistors SMD:RESC1005X40N" H 6000 2630 60 0001 L CNN
14281428
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6000 3260 60 0001 L CNN
14291429
F 4 "22k" H 6400 3650 50 0000 C CNN "~"
@@ -1474,7 +1474,7 @@ L Resistors_SMD:R0402_22K_1%_0.0625W_100PPM R83
14741474
U 1 1 5C5C957B
14751475
P 6000 3550
14761476
F 0 "R83" H 5900 3550 50 0000 C CNN
1477-
F 1 "R0402_2K2_1%_0.0625W_100PPM" H 6000 3340 60 0001 L CNN
1477+
F 1 "R0402_22K_1%_0.0625W_100PPM" H 6000 3340 60 0001 L CNN
14781478
F 2 "Resistors SMD:RESC1005X40N" H 6000 2530 60 0001 L CNN
14791479
F 3 "\\\\cern.ch\\dfs\\Applications\\Altium\\Datasheets\\R0402_Phycomp_RC0402.pdf" H 6000 3160 60 0001 L CNN
14801480
F 4 "22k" H 6400 3550 50 0000 C CNN "~"

design/Marble.kicad_pcb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47867,7 +47867,7 @@
4786747867
(fp_text reference R45 (at 0 1.526 180) (layer B.SilkS) hide
4786847868
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4786947869
)
47870-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
47870+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
4787147871
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4787247872
)
4787347873
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -47905,7 +47905,7 @@
4790547905
(fp_text reference R46 (at 0 1.526 180) (layer B.SilkS) hide
4790647906
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4790747907
)
47908-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
47908+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
4790947909
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4791047910
)
4791147911
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -47943,7 +47943,7 @@
4794347943
(fp_text reference R47 (at 0 1.526 180) (layer B.SilkS) hide
4794447944
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4794547945
)
47946-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
47946+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
4794747947
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4794847948
)
4794947949
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -47981,7 +47981,7 @@
4798147981
(fp_text reference R48 (at 0 1.526 180) (layer B.SilkS) hide
4798247982
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4798347983
)
47984-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
47984+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
4798547985
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4798647986
)
4798747987
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48019,7 +48019,7 @@
4801948019
(fp_text reference R49 (at 0 1.526 180) (layer B.SilkS) hide
4802048020
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4802148021
)
48022-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
48022+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
4802348023
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4802448024
)
4802548025
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48057,7 +48057,7 @@
4805748057
(fp_text reference R50 (at 0 1.526 180) (layer B.SilkS) hide
4805848058
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4805948059
)
48060-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
48060+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 180) (layer B.Fab)
4806148061
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4806248062
)
4806348063
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48095,7 +48095,7 @@
4809548095
(fp_text reference R51 (at 0 1.526 90) (layer B.SilkS) hide
4809648096
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4809748097
)
48098-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
48098+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
4809948099
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4810048100
)
4810148101
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48133,7 +48133,7 @@
4813348133
(fp_text reference R52 (at 0 1.526 90) (layer B.SilkS) hide
4813448134
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4813548135
)
48136-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
48136+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
4813748137
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4813848138
)
4813948139
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48171,7 +48171,7 @@
4817148171
(fp_text reference R53 (at 0 1.526 90) (layer B.SilkS) hide
4817248172
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4817348173
)
48174-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
48174+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
4817548175
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4817648176
)
4817748177
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48209,7 +48209,7 @@
4820948209
(fp_text reference R54 (at 0 1.526 90) (layer B.SilkS) hide
4821048210
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4821148211
)
48212-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
48212+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
4821348213
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4821448214
)
4821548215
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48247,7 +48247,7 @@
4824748247
(fp_text reference R55 (at 0 1.526) (layer B.SilkS) hide
4824848248
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4824948249
)
48250-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
48250+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
4825148251
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4825248252
)
4825348253
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48285,7 +48285,7 @@
4828548285
(fp_text reference R56 (at 0 1.526 90) (layer B.SilkS) hide
4828648286
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4828748287
)
48288-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
48288+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526 90) (layer B.Fab)
4828948289
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4829048290
)
4829148291
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48323,7 +48323,7 @@
4832348323
(fp_text reference R57 (at 0 1.526) (layer B.SilkS) hide
4832448324
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4832548325
)
48326-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
48326+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
4832748327
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4832848328
)
4832948329
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48475,7 +48475,7 @@
4847548475
(fp_text reference R75 (at 0 1.526) (layer B.SilkS) hide
4847648476
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4847748477
)
48478-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
48478+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
4847948479
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4848048480
)
4848148481
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48513,7 +48513,7 @@
4851348513
(fp_text reference R83 (at 0 1.526) (layer B.SilkS) hide
4851448514
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4851548515
)
48516-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
48516+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
4851748517
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4851848518
)
4851948519
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))
@@ -48551,7 +48551,7 @@
4855148551
(fp_text reference R91 (at 0 1.526) (layer B.SilkS) hide
4855248552
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4855348553
)
48554-
(fp_text value R0402_2K2_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
48554+
(fp_text value R0402_22K_1%_0.0625W_100PPM (at 0 -1.526) (layer B.Fab)
4855548555
(effects (font (size 1 1) (thickness 0.15)) (justify mirror))
4855648556
)
4855748557
(fp_circle (center 0 0) (end 0.35 0) (layer B.Fab) (width 0.05))

design/scripts/attrib_lint.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def check_lib_ref(lr):
5151
return libs[lib][aa[1]]
5252

5353

54-
def cross_check(refid, lib_ref, attrs, lib_ref_attrs):
54+
def cross_check(refid, value, lib_ref, attrs, lib_ref_attrs):
5555
if len(attrs) == 0:
5656
return
5757
print("%d attrs in %s" % (len(attrs), refid))
@@ -68,6 +68,13 @@ def cross_check(refid, lib_ref, attrs, lib_ref_attrs):
6868
for k in sorted(lib_ref_attrs):
6969
if k not in attrs:
7070
print("%s: not in component %s" % (k, refid))
71+
if "Part Number" in attrs:
72+
part_num = attrs["Part Number"]
73+
if part_num != value:
74+
print("%s: part-value mismatch %s :: %s" % (refid, part_num, value))
75+
else:
76+
print("%s: what?" % refid)
77+
print(sorted(attrs.keys()))
7178

7279

7380
def process_sch(f):
@@ -76,22 +83,28 @@ def process_sch(f):
7683
lib_ref = None
7784
lib_ref_attrs = None
7885
refid = None
86+
value = None
7987
for row in reader:
8088
# print(row)
8189
if row[0] == "$Comp":
8290
in_comp = True
8391
attrs = {}
8492
elif row[0] == "$EndComp":
8593
in_comp = False
86-
cross_check(refid, lib_ref, attrs, lib_ref_attrs)
94+
cross_check(refid, value, lib_ref, attrs, lib_ref_attrs)
95+
refid = None
96+
value = None
8797
elif in_comp:
8898
if row[0] == "L":
8999
lib_ref = row[1]
90100
lib_ref_attrs = check_lib_ref(lib_ref)
91101
elif row[0] == "F" and len(row) > 2:
92-
if int(row[1]) == 0:
102+
rnum = int(row[1])
103+
if rnum == 0:
93104
refid = row[2]
94-
if int(row[1]) > 3:
105+
if rnum == 1:
106+
value = row[2]
107+
if rnum > 3:
95108
attrs[row[-1]] = row[2]
96109

97110

0 commit comments

Comments
 (0)