Files
-
hardware / ButterStick_r0.1 / ButterStick.kicad_pcb
-
hardware / ButterStick_r0.1 / ButterStick.sch
-
hardware / ButterStick_r0.1 / fileEthernet.sch
-
hardware / ButterStick_r0.1 / fileFPGA.sch
-
hardware / ButterStick_r0.1 / fileHyperRAM.sch
-
hardware / ButterStick_r0.1 / fileIO.sch
-
hardware / ButterStick_r0.1 / filePower.sch
-
hardware / ButterStick_r0.1 / fileSDMMC.sch
-
hardware / ButterStick_r0.1 / SmartVIO.sch
-
hardware / ButterStick_r0.1 / SYZYGY_PORT0.sch
-
hardware / ButterStick_r0.1 / SYZYGY_PORT1.sch
-
hardware / ButterStick_r0.1 / SYZYGY_PORT2.sch
-
hardware / ButterStick_r0.1 / SyzygyStandard.sch
-
hardware / ButterStick_r0.2 / ButterStick.kicad_pcb
-
hardware / ButterStick_r0.2 / ButterStick.sch
-
hardware / ButterStick_r0.2 / fileEthernet.sch
-
hardware / ButterStick_r0.2 / fileFPGA.sch
-
hardware / ButterStick_r0.2 / fileHyperRAM.sch
-
hardware / ButterStick_r0.2 / fileIO.sch
-
hardware / ButterStick_r0.2 / filePower.sch
-
hardware / ButterStick_r0.2 / fileSDMMC.sch
-
hardware / ButterStick_r0.2 / PCBSpecs.sch
-
hardware / ButterStick_r0.2 / SmartVIO.sch
-
hardware / ButterStick_r0.2 / SYZYGY_PORT0.sch
-
hardware / ButterStick_r0.2 / SYZYGY_PORT1.sch
-
hardware / ButterStick_r0.2 / SYZYGY_PORT2.sch
-
hardware / ButterStick_r0.2 / SyzygyStandard.sch
-
hardware / ButterStick_r0.2 / TestPonts.sch
Last update 5 years 7 months
by
Greg Davill
FilesgatewareGigEplatform | |
---|---|
.. | |
__init__.py | |
pll.py | |
programmer.py |
programmer.pyimport os import subprocess from migen.build.generic_programmer import GenericProgrammer __all__ = ['FireSenseProgrammer'] class FireSenseProgrammer(GenericProgrammer): # def flash(self, address, bitstream_file): # pass def load_bitstream(self, bitstream_file): config_file = bitstream_file.replace(".bit", ".config") svf_file = bitstream_file.replace(".bit", ".svf") subprocess.call(["ecpunpack", "--textcfg", config_file, "--input", bitstream_file]) subprocess.call(["ecppack", "--svf", svf_file, config_file]) #openocd -c "interface ftdi; ftdi_vid_pid 0x0403 0x6014; ftdi_channel 0; ftdi_layout_init 0xFFF8 0xFFFb; adapter_khz 5000; jtag newtap ecp5 tap -irlen 8 -expected-id 0x81113043; init; svf build/top.svf; exit" subprocess.call([ "openocd", "-c", "interface ftdi; ftdi_vid_pid 0x0403 0x6014; ftdi_channel 0; ftdi_layout_init 0xFFF8 0xFFFb; adapter_khz 5000; jtag newtap ecp5 tap -irlen 8 -expected-id 0x81113043; init; svf "+ svf_file +"; exit", ]) #subprocess.call(["glasgow", "", "build/top.svf"])