Merge pull request #573 from Xilokar/master

Fix sqrl_acorn proxy bitstream for cle-101
This commit is contained in:
enjoy-digital 2024-03-26 12:36:56 +01:00 committed by GitHub
commit 8f7ba0ae28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -116,6 +116,8 @@ class Platform(Xilinx7SeriesPlatform):
"cle-215+": "xc7a200t-fbg484-3" "cle-215+": "xc7a200t-fbg484-3"
}[variant] }[variant]
self.variant = variant
Xilinx7SeriesPlatform.__init__(self, device, _io, toolchain=toolchain) Xilinx7SeriesPlatform.__init__(self, device, _io, toolchain=toolchain)
self.add_extension(_serial_io) self.add_extension(_serial_io)
self.add_extension(_sdcard_io) self.add_extension(_sdcard_io)
@ -146,8 +148,13 @@ class Platform(Xilinx7SeriesPlatform):
] ]
def create_programmer(self, name='openocd'): def create_programmer(self, name='openocd'):
proxy = {
"cle-101": "bscan_spi_xc7a100t.bit",
"cle-215": "bscan_spi_xc7a200t.bit",
"cle-215+": "bscan_spi_xc7a200t.bit"
}[self.variant]
if name == 'openocd': if name == 'openocd':
return OpenOCD("openocd_xc7_ft232.cfg", "bscan_spi_xc7a200t.bit") return OpenOCD("openocd_xc7_ft232.cfg", proxy)
elif name == 'vivado': elif name == 'vivado':
# TODO: some board versions may have s25fl128s # TODO: some board versions may have s25fl128s
return VivadoProgrammer(flash_part='s25fl256sxxxxxx0-spi-x1_x2_x4') return VivadoProgrammer(flash_part='s25fl256sxxxxxx0-spi-x1_x2_x4')