build/xilinx/f4pga: adding edalize backend support
This commit is contained in:
parent
949f262ce9
commit
50cf037bef
|
@ -40,6 +40,7 @@ class F4PGAToolchain(GenericToolchain):
|
||||||
"ars_ff2": ("ars_ff2", "true"), # user-defined attribute
|
"ars_ff2": ("ars_ff2", "true"), # user-defined attribute
|
||||||
"no_shreg_extract": None
|
"no_shreg_extract": None
|
||||||
}
|
}
|
||||||
|
supported_build_backend = ["litex", "edalize"]
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
@ -130,3 +131,20 @@ class F4PGAToolchain(GenericToolchain):
|
||||||
def add_false_path_constraint(self, platform, from_, to):
|
def add_false_path_constraint(self, platform, from_, to):
|
||||||
# FIXME: false path constraints are currently not supported by the F4PGA toolchain
|
# FIXME: false path constraints are currently not supported by the F4PGA toolchain
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Edalize tool name and tool options -----------------------------------------------------------
|
||||||
|
def get_tool_options(self):
|
||||||
|
device_name = {
|
||||||
|
"xc7a10": "xc7a100t_test",
|
||||||
|
"xc7a20": "xc7a200t_test",
|
||||||
|
"xc7z01": "xc7z010_test",
|
||||||
|
"xc7z02": "xc7z020_test",
|
||||||
|
}.get(self.platform.device[0:6], "xc7a50t_test")
|
||||||
|
|
||||||
|
tool_options = {
|
||||||
|
"arch" : "xilinx",
|
||||||
|
"chip" : device_name,
|
||||||
|
"device" : "artix7" if self.platform.device.startswith("xc7a") else "zynq",
|
||||||
|
"part" : self._partname,
|
||||||
|
}
|
||||||
|
return ("f4pga", {"flow_options": tool_options})
|
||||||
|
|
Loading…
Reference in New Issue