Merge pull request #799 from antmicro/add_xc7a200t_to_symbiflow

build/xilinx: add xc7a200t-sbg484-1 to symbiflow toolchain
This commit is contained in:
enjoy-digital 2021-02-04 16:41:45 +01:00 committed by GitHub
commit 92f4cd1423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -110,20 +110,24 @@ class SymbiflowToolchain:
# FIXME: fine for now since only a few devices are supported, do more clever device re-mapping. # FIXME: fine for now since only a few devices are supported, do more clever device re-mapping.
"xc7a35ticsg324-1L" : "xc7a50t_test", "xc7a35ticsg324-1L" : "xc7a50t_test",
"xc7a100tcsg324-1" : "xc7a100t_test", "xc7a100tcsg324-1" : "xc7a100t_test",
"xc7a200t-sbg484-1" : "xc7a200t_test",
}[platform.device] }[platform.device]
except KeyError: 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:
arch = re.match('xc7a[0-9]*t', platform.device).group(0)
self.bitstream_device = { self.bitstream_device = {
"xc7a": "artix7" "xc7a35t": "artix7",
}[platform.device[:4]] "xc7a200t": "artix7_200t"
}[arch]
except KeyError: except KeyError:
raise ValueError(f"Unsupported device: {platform.device}") raise ValueError(f"Unsupported device: {platform.device}")
# FIXME: prjxray-db doesn't have xc7a35ticsg324-1L - use closest replacement # FIXME: prjxray-db doesn't have xc7a35ticsg324-1L - use closest replacement
self._partname = { self._partname = {
"xc7a35ticsg324-1L" : "xc7a35tcsg324-1", "xc7a35ticsg324-1L" : "xc7a35tcsg324-1",
"xc7a100tcsg324-1" : "xc7a100tcsg324-1", "xc7a100tcsg324-1" : "xc7a100tcsg324-1",
"xc7a200t-sbg484-1" : "xc7a200tsbg484-1",
}.get(platform.device, platform.device) }.get(platform.device, platform.device)
def _generate_makefile(self, platform, build_name): def _generate_makefile(self, platform, build_name):