diff options
Diffstat (limited to 'add-components.py')
-rwxr-xr-x | add-components.py | 240 |
1 files changed, 226 insertions, 14 deletions
diff --git a/add-components.py b/add-components.py index bc839fa..3dd3d0f 100755 --- a/add-components.py +++ b/add-components.py @@ -28,6 +28,31 @@ def print_lines(fn, out): ' 1 12300 6450', ' 1 0 0 -1 ', '$EndComp', + # Tell KiCad there is power (and GND) in the power jack + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFB973B', + 'P 2200 3300', + 'F 0 "#FLG?" H 2200 3375 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 2200 3474 50 0000 C CNN', + 'F 2 "" H 2200 3300 50 0001 C CNN', + 'F 3 "~" H 2200 3300 50 0001 C CNN', + ' 1 2200 3300', + ' 1 0 0 -1 ', + '$EndComp', + 'Connection ~ 2200 3300', + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFB98AE', + 'P 2200 3500', + 'F 0 "#FLG?" H 2200 3575 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 2200 3673 50 0000 C CNN', + 'F 2 "" H 2200 3500 50 0001 C CNN', + 'F 3 "~" H 2200 3500 50 0001 C CNN', + ' 1 2200 3500', + ' -1 0 0 1 ', + '$EndComp', + 'Connection ~ 2200 3500', ], 'rev02_02.sch': ['NoConn ~ 11500 5200', 'NoConn ~ 4250 6200'], 'rev02_03.sch': ['NoConn ~ 9100 5100', @@ -35,7 +60,19 @@ def print_lines(fn, out): 'NoConn ~ 9100 5300', 'NoConn ~ 6800 5400', 'NoConn ~ 13040 4330'], - 'rev02_04.sch': [], + 'rev02_04.sch': [# Tell KiCad there is power after the R0 resistor on the path to VBATT + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFAF93B', + 'P 2600 4000', + 'F 0 "#FLG?" H 2600 4075 50 0001 C CNN', + 'F 1 "PWR_FLAG" V 2600 4128 50 0000 L CNN', + 'F 2 "" H 2600 4000 50 0001 C CNN', + 'F 3 "~" H 2600 4000 50 0001 C CNN', + ' 1 2600 4000', + ' 0 -1 -1 0 ', + '$EndComp', + 'Connection ~ 2600 4000',], 'rev02_05.sch': ['NoConn ~ 3100 5300', 'NoConn ~ 3100 5400', 'NoConn ~ 3100 5500', @@ -101,7 +138,75 @@ def print_lines(fn, out): 'NoConn ~ 7300 5100', 'NoConn ~ 7300 5000', 'NoConn ~ 7300 4900', - 'NoConn ~ 2000 3600'], + 'NoConn ~ 2000 3600', + '$Comp', + 'L Cryptech_Alpha:FT_VPLL #PWR?', + 'U 1 1 5AF3BF7C', + 'P 7550 2600', + 'F 0 "#PWR?" H 7550 2450 50 0001 C CNN', + 'F 1 "FT_VPLL" V 7565 2727 50 0000 L CNN', + 'F 2 "" H 7550 2600 60 0000 C CNN', + 'F 3 "" H 7550 2600 60 0000 C CNN', + ' 1 7550 2600', + ' 0 -1 -1 0 ', + '$EndComp', + '$Comp', + 'L Cryptech_Alpha:FT_VCC3V3 #PWR?', + 'U 1 1 5AF3CDAF', + 'P 6000 3600', + 'F 0 "#PWR?" H 6000 3450 50 0001 C CNN', + 'F 1 "FT_VCC3V3" V 6015 3728 50 0000 L CNN', + 'F 2 "" H 6000 3600 60 0000 C CNN', + 'F 3 "" H 6000 3600 60 0000 C CNN', + ' 1 6000 3600', + ' 0 -1 -1 0 ', + '$EndComp', + '$Comp', + 'L Cryptech_Alpha:FT_VREGIN #PWR?', + 'U 1 1 5AF3DC52', + 'P 6000 3400', + 'F 0 "#PWR?" H 6000 3250 50 0001 C CNN', + 'F 1 "FT_VREGIN" V 6015 3527 50 0000 L CNN', + 'F 2 "" H 6000 3400 60 0000 C CNN', + 'F 3 "" H 6000 3400 60 0000 C CNN', + ' 1 6000 3400', + ' 0 -1 -1 0 ', + '$EndComp', + '$Comp', + 'L Cryptech_Alpha:FT_VPHY #PWR?', + 'U 1 1 5AF3EA0F', + 'P 7550 2800', + 'F 0 "#PWR?" H 7550 2650 50 0001 C CNN', + 'F 1 "FT_VPHY" V 7565 2927 50 0000 L CNN', + 'F 2 "" H 7550 2800 60 0000 C CNN', + 'F 3 "" H 7550 2800 60 0000 C CNN', + ' 1 7550 2800', + ' 0 -1 -1 0 ', + '$EndComp', + # Tell KiCad there is power after the ferrite bead + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFAEA32', + 'P 8200 7700', + 'F 0 "#FLG?" H 8200 7775 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 8200 7874 50 0000 C CNN', + 'F 2 "" H 8200 7700 50 0001 C CNN', + 'F 3 "~" H 8200 7700 50 0001 C CNN', + ' 1 8200 7700', + ' 1 0 0 -1 ', + '$EndComp', + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFAEB88', + 'P 6400 7700', + 'F 0 "#FLG?" H 6400 7775 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 6400 7874 50 0000 C CNN', + 'F 2 "" H 6400 7700 50 0001 C CNN', + 'F 3 "~" H 6400 7700 50 0001 C CNN', + ' 1 6400 7700', + ' 1 0 0 -1 ', + '$EndComp', + ], 'rev02_10.sch': ['NoConn ~ 9600 4000', 'NoConn ~ 9600 4100', 'NoConn ~ 9600 4200', @@ -118,7 +223,76 @@ def print_lines(fn, out): 'NoConn ~ 2100 3700', 'NoConn ~ 7400 5000', 'NoConn ~ 7400 5100', - 'NoConn ~ 7400 5200'], + 'NoConn ~ 7400 5200', + '$Comp', + 'L Cryptech_Alpha:FT_MGMT_VPLL #PWR?', + 'U 1 1 5AF74540', + 'P 7650 2700', + 'F 0 "#PWR?" H 7650 2550 50 0001 C CNN', + 'F 1 "FT_MGMT_VPLL" V 7665 2827 50 0000 L CNN', + 'F 2 "" H 7650 2700 60 0000 C CNN', + 'F 3 "" H 7650 2700 60 0000 C CNN', + ' 1 7650 2700', + ' 0 -1 -1 0 ', + '$EndComp', + '$Comp', + 'L Cryptech_Alpha:FT_MGMT_VPHY #PWR?', + 'U 1 1 5AF74918', + 'P 7650 2900', + 'F 0 "#PWR?" H 7650 2750 50 0001 C CNN', + 'F 1 "FT_MGMT_VPHY" V 7665 3028 50 0000 L CNN', + 'F 2 "" H 7650 2900 60 0000 C CNN', + 'F 3 "" H 7650 2900 60 0000 C CNN', + ' 1 7650 2900', + ' 0 -1 -1 0 ', + '$EndComp', + '$Comp', + 'L Cryptech_Alpha:FT_MGMT_VREGIN #PWR?', + 'U 1 1 5AF74D26', + 'P 6100 3500', + 'F 0 "#PWR?" H 6100 3350 50 0001 C CNN', + 'F 1 "FT_MGMT_VREGIN" V 6115 3628 50 0000 L CNN', + 'F 2 "" H 6100 3500 60 0000 C CNN', + 'F 3 "" H 6100 3500 60 0000 C CNN', + ' 1 6100 3500', + ' 0 -1 -1 0 ', + '$EndComp', + '$Comp', + 'L Cryptech_Alpha:FT_MGMT_VCC3V3 #PWR?', + 'U 1 1 5AF74F88', + 'P 6100 3700', + 'F 0 "#PWR?" H 6100 3550 50 0001 C CNN', + 'F 1 "FT_MGMT_VCC3V3" V 6115 3828 50 0000 L CNN', + 'F 2 "" H 6100 3700 60 0000 C CNN', + 'F 3 "" H 6100 3700 60 0000 C CNN', + ' 1 6100 3700', + ' 0 -1 -1 0 ', + '$EndComp', + # Tell KiCad there is power after the ferrite bead + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFA8493', + 'P 8300 7800', + 'F 0 "#FLG?" H 8300 7875 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 8300 7974 50 0000 C CNN', + 'F 2 "" H 8300 7800 50 0001 C CNN', + 'F 3 "~" H 8300 7800 50 0001 C CNN', + ' 1 8300 7800', + ' 1 0 0 -1 ', + '$EndComp', + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFA857D', + 'P 6500 7800', + 'F 0 "#FLG?" H 6500 7875 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 6500 7974 50 0000 C CNN', + 'F 2 "" H 6500 7800 50 0001 C CNN', + 'F 3 "~" H 6500 7800 50 0001 C CNN', + ' 1 6500 7800', + ' 1 0 0 -1 ', + '$EndComp', + + ], 'rev02_11.sch': ['NoConn ~ 13200 4300', # Mark BATT pin on JP4 as providing power '$Comp', @@ -334,6 +508,31 @@ def print_lines(fn, out): ' 1 7000 7800', ' 1 0 0 -1', '$EndComp', + # Tell KiCad there is power after the ferrite beads + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFA31D0', + 'P 6050 4800', + 'F 0 "#FLG?" H 6050 4875 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 6050 4974 50 0000 C CNN', + 'F 2 "" H 6050 4800 50 0001 C CNN', + 'F 3 "~" H 6050 4800 50 0001 C CNN', + ' 1 6050 4800', + ' 1 0 0 -1 ', + '$EndComp', + 'Connection ~ 6050 4800', + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFB3F33', + 'P 6050 8000', + 'F 0 "#FLG?" H 6050 8075 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 6050 8174 50 0000 C CNN', + 'F 2 "" H 6050 8000 50 0001 C CNN', + 'F 3 "~" H 6050 8000 50 0001 C CNN', + ' 1 6050 8000', + ' 1 0 0 -1 ', + '$EndComp', + 'Connection ~ 6050 8000', ], 'rev02_19.sch': ['NoConn ~ 1900 5000', 'NoConn ~ 1900 5100', @@ -400,17 +599,30 @@ def print_lines(fn, out): # VCC 1V0 symbol 'Wire Wire Line', ' 8300 6400 8300 6200', - #'$Comp', - #'L Cryptech_Alpha:FPGA_VCCINT_1V0 #PWR?', - #'U 1 1 5AF3F25C', - #'P 8300 6200', - #'F 0 "#PWR?" H 8300 6050 50 0001 C CNN', - #'F 1 "FPGA_VCCINT_1V0" H 8315 6373 50 0000 C CNN', - #'F 2 "" H 8300 6200 60 0000 C CNN', - #'F 3 "" H 8300 6200 60 0000 C CNN', - #' 1 8300 6200', - #' 1 0 0 -1', - #'$EndComp', + '$Comp', + 'L Cryptech_Alpha:FPGA_VCCINT_1V0 #PWR?', + 'U 1 1 5AF3F25C', + 'P 8300 6200', + 'F 0 "#PWR?" H 8300 6050 50 0001 C CNN', + 'F 1 "FPGA_VCCINT_1V0" H 8315 6373 50 0000 C CNN', + 'F 2 "" H 8300 6200 60 0000 C CNN', + 'F 3 "" H 8300 6200 60 0000 C CNN', + ' 1 8300 6200', + ' 1 0 0 -1', + '$EndComp', + # Tell KiCad there is power after the ferrite bead + '$Comp', + 'L power:PWR_FLAG #FLG?', + 'U 1 1 5AFA77EC', + 'P 8150 6400', + 'F 0 "#FLG?" H 8150 6475 50 0001 C CNN', + 'F 1 "PWR_FLAG" H 8150 6574 50 0000 C CNN', + 'F 2 "" H 8150 6400 50 0001 C CNN', + 'F 3 "~" H 8150 6400 50 0001 C CNN', + ' 1 8150 6400', + ' 1 0 0 -1 ', + '$EndComp', + 'Connection ~ 8150 6400', ], 'rev02_25.sch': []} if not comp.get(fn, []): |