From 855b88c039584ac62f20bfd8e1c0a8a3b0316e6a Mon Sep 17 00:00:00 2001 From: Christian Klarhorst Date: Tue, 5 Jul 2022 16:23:57 +0200 Subject: [PATCH] build/xilinx/ise: Fix ngdbuild_opt not honored It was set after the build stage which is too late --- litex/build/xilinx/ise.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/build/xilinx/ise.py b/litex/build/xilinx/ise.py index 47b01f824..9a52574cd 100755 --- a/litex/build/xilinx/ise.py +++ b/litex/build/xilinx/ise.py @@ -51,6 +51,8 @@ class XilinxISEToolchain(GenericToolchain): **kwargs): self.mode = mode self._isemode = mode if mode in ["xst", "cpld"] else "edif" + if self.mode == "yosys": + self.ngdbuild_opt += "-p " + platform.device return GenericToolchain.build(self, platform, fragment, **kwargs) @@ -203,7 +205,6 @@ bitgen {bitgen_opt} {build_name}.ncd {build_name}.bit{fail_stmt} if self.mode == "yosys": self._run_yosys() - self.ngdbuild_opt += "-p " + self.platform.device if self.mode == "edif": # Generate edif