2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

artiq_flash: fix a refactoring bug.

This commit is contained in:
whitequark 2018-01-20 01:19:09 +00:00
parent 37fa3b29da
commit 83278a6edb

View File

@ -162,7 +162,7 @@ class ProgrammerSayma(Programmer):
sector_size = 0x10000
def __init__(self, client, preinit_script):
Programmer.__init__(self, client, preinit_script)
Programmer.__init__(self, client, [])
self._preinit_script += [
"interface ftdi",
@ -177,6 +177,8 @@ class ProgrammerSayma(Programmer):
"adapter_khz 5000",
"transport select jtag",
*preinit_script,
# tap 0, pld 0
"source {}".format(self._transfer_script("cpld/xilinx-xc7.cfg")),
# tap 1, pld 1