build/xilinx/ise: Fix ngdbuild_opt not honored

It was set after the build stage which is too late
This commit is contained in:
Christian Klarhorst 2022-07-05 16:23:57 +02:00
parent 30a7a1cf16
commit 855b88c039
1 changed files with 2 additions and 1 deletions

View File

@ -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