xilinx/simbiflow: add simple symbiflow_device re-mapping.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 2 Jun 2020 10:15:38 +0000 (12:15 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 2 Jun 2020 10:15:38 +0000 (12:15 +0200)
litex/build/xilinx/symbiflow.py

index c8653b9eaa773e717fe811b141be9fe6337941f5..1eb89cdbca231b7a959b0cc1572b1befcedc3933 100644 (file)
@@ -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 = {