From ad760d491c0b903d599760617114e7063b1a56ad Mon Sep 17 00:00:00 2001 From: Jan Kowalewski Date: Mon, 8 Feb 2021 15:24:42 +0100 Subject: [PATCH] build/xilinx/symbiflow: fix bitstream_device select Signed-off-by: Jan Kowalewski --- litex/build/xilinx/symbiflow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litex/build/xilinx/symbiflow.py b/litex/build/xilinx/symbiflow.py index 0a3cef279..bbf7e5013 100644 --- a/litex/build/xilinx/symbiflow.py +++ b/litex/build/xilinx/symbiflow.py @@ -116,11 +116,11 @@ class SymbiflowToolchain: raise ValueError(f"symbiflow_device is not specified") if not self.bitstream_device: try: - arch = re.match('xc7a[0-9]*t', platform.device).group(0) + # bitstream_device points to a directory in prjxray database + # available bitstream_devices: artix7, kintex7, zynq7 self.bitstream_device = { - "xc7a35t": "artix7", - "xc7a200t": "artix7_200t" - }[arch] + "xc7a": "artix7", # xc7a35t, xc7a50t, xc7a100t, xc7a200t + }[platform.device[:4]] except KeyError: raise ValueError(f"Unsupported device: {platform.device}") # FIXME: prjxray-db doesn't have xc7a35ticsg324-1L - use closest replacement