litex/build/efinix: add spi_width

Doesn't seem needed for Trion but probably essential for Titanium?
This commit is contained in:
Andrew Dennison 2024-02-05 10:38:24 +11:00
parent a59b67e4ee
commit d9f006e123
2 changed files with 3 additions and 2 deletions

View file

@ -361,7 +361,7 @@ class EfinityToolchain(GenericToolchain):
"--io_weak_pullup", "on",
"--enable_roms", "on",
"--mode", self.platform.spi_mode,
"--width", "1",
"--width", self.platform.spi_width,
"--enable_crc_check", "on"
], common.colors)
if r != 0:

View file

@ -23,13 +23,14 @@ class EfinixPlatform(GenericPlatform):
_supported_toolchains = ["efinity"]
def __init__(self, *args, iobank_info=None, toolchain="efinity", spi_mode="active", **kwargs):
def __init__(self, *args, iobank_info=None, toolchain="efinity", spi_mode="active", spi_width="1", **kwargs):
GenericPlatform.__init__(self, *args, **kwargs)
self.timing_model = self.device[-2:]
self.device = self.device[:-2]
self.iobank_info = iobank_info
self.spi_mode = spi_mode
self.spi_width = spi_width
if self.device[:2] == "Ti":
self.family = "Titanium"
else: