From 2356e8d06b3c5222b587d9478607105b3297580b Mon Sep 17 00:00:00 2001 From: Wanda Date: Wed, 28 Feb 2024 13:13:46 +0100 Subject: [PATCH] build.plat: Fix `toolchain_prepare` interface breakage. --- amaranth/build/plat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amaranth/build/plat.py b/amaranth/build/plat.py index 52afd37..1088201 100644 --- a/amaranth/build/plat.py +++ b/amaranth/build/plat.py @@ -165,10 +165,10 @@ class Platform(ResourceManager, metaclass=ABCMeta): add_pin_fragment(pin, self.get_diff_input_output(pin, port, attrs, invert)) ports = list(self.iter_ports()) - return self.toolchain_prepare(fragment, ports, name, **kwargs) + return self.toolchain_prepare(fragment, name, ports=ports, **kwargs) @abstractmethod - def toolchain_prepare(self, fragment, ports, name, **kwargs): + def toolchain_prepare(self, fragment, name, *, ports, **kwargs): """ Convert the ``fragment`` and constraints recorded in this :class:`Platform` into a :class:`BuildPlan`. @@ -291,7 +291,7 @@ class TemplatedPlatform(Platform): continue yield net_signal, port_signal, frequency - def toolchain_prepare(self, fragment, ports, name, *, emit_src=True, **kwargs): + def toolchain_prepare(self, fragment, name, *, ports, emit_src=True, **kwargs): # Restrict the name of the design to a strict alphanumeric character set. Platforms will # interpolate the name of the design in many different contexts: filesystem paths, Python # scripts, Tcl scripts, ad-hoc constraint files, and so on. It is not practical to add