xilinx/simbiflow: add simple symbiflow_device re-mapping.

This commit is contained in:
Florent Kermarrec 2020-06-02 12:15:38 +02:00
parent 5104d07a13
commit af928b2626
1 changed files with 7 additions and 1 deletions

View File

@ -163,6 +163,12 @@ class SymbiflowToolchain:
def _check_properties(self, platform): def _check_properties(self, platform):
if not self.symbiflow_device: if not self.symbiflow_device:
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") raise ValueError(f"symbiflow_device is not specified")
if not self.bitstream_device: if not self.bitstream_device:
try: try: