From: Florent Kermarrec Date: Tue, 2 Jun 2020 10:15:38 +0000 (+0200) Subject: xilinx/simbiflow: add simple symbiflow_device re-mapping. X-Git-Tag: 24jan2021_ls180~244 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af928b26263ae9674a9290674e0cf1629a077522;p=litex.git xilinx/simbiflow: add simple symbiflow_device re-mapping. --- diff --git a/litex/build/xilinx/symbiflow.py b/litex/build/xilinx/symbiflow.py index c8653b9e..1eb89cdb 100644 --- a/litex/build/xilinx/symbiflow.py +++ b/litex/build/xilinx/symbiflow.py @@ -163,7 +163,13 @@ class SymbiflowToolchain: def _check_properties(self, platform): if not self.symbiflow_device: - raise ValueError(f"symbiflow_device is not specified") + try: + self.symbiflow_device = { + # FIXME: fine for now since only a few devices are supported, do more clever device re-mapping. + "xc7a35ticsg324-1L" : "xc7a50t_test", + }[platform.device] + except KeyError: + raise ValueError(f"symbiflow_device is not specified") if not self.bitstream_device: try: self.bitstream_device = {