Allow "device" to be specified in yaml
Otherwise we don't get the DDROutput overrides and the standalone core fails to generate when using GMII_MII Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
cccc0c720a
commit
9b3837e636
|
@ -318,10 +318,12 @@ def main():
|
||||||
core_config[k] = int(float(core_config[k]))
|
core_config[k] = int(float(core_config[k]))
|
||||||
|
|
||||||
# Generate core --------------------------------------------------------------------------------
|
# Generate core --------------------------------------------------------------------------------
|
||||||
|
if "device" not in core_config:
|
||||||
|
core_config["device"] = ""
|
||||||
if core_config["vendor"] == "lattice":
|
if core_config["vendor"] == "lattice":
|
||||||
platform = LatticePlatform("", io=[], toolchain="diamond")
|
platform = LatticePlatform(core_config["device"], io=[], toolchain="diamond")
|
||||||
elif core_config["vendor"] == "xilinx":
|
elif core_config["vendor"] == "xilinx":
|
||||||
platform = XilinxPlatform("", io=[], toolchain="vivado")
|
platform = XilinxPlatform(core_config["device"], io=[], toolchain="vivado")
|
||||||
else:
|
else:
|
||||||
raise ValueError("Unsupported vendor: {}".format(core_config["vendor"]))
|
raise ValueError("Unsupported vendor: {}".format(core_config["vendor"]))
|
||||||
platform.add_extension(_io)
|
platform.add_extension(_io)
|
||||||
|
|
Loading…
Reference in New Issue