From 9b3837e63628c496a2869b5da2e3b79cc717ce36 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Wed, 22 Sep 2021 22:27:07 +1000 Subject: [PATCH] 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 --- liteeth/gen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/liteeth/gen.py b/liteeth/gen.py index ee7c438..d150d23 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -318,10 +318,12 @@ def main(): core_config[k] = int(float(core_config[k])) # Generate core -------------------------------------------------------------------------------- + if "device" not in core_config: + core_config["device"] = "" if core_config["vendor"] == "lattice": - platform = LatticePlatform("", io=[], toolchain="diamond") + platform = LatticePlatform(core_config["device"], io=[], toolchain="diamond") elif core_config["vendor"] == "xilinx": - platform = XilinxPlatform("", io=[], toolchain="vivado") + platform = XilinxPlatform(core_config["device"], io=[], toolchain="vivado") else: raise ValueError("Unsupported vendor: {}".format(core_config["vendor"])) platform.add_extension(_io)