fhdl/module/finalize: pass additional args to do_finalize
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 30 Mar 2013 10:29:46 +0000 (11:29 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 30 Mar 2013 10:29:46 +0000 (11:29 +0100)
migen/fhdl/module.py

index 5cf7a7bb515d4575c7abe044d5af9b462db10daf..02ea708784a26c8dd7bdd58b2d3deb9bb0f4e801 100644 (file)
@@ -147,12 +147,12 @@ class Module:
                self._submodules = []
                return r
 
-       def finalize(self):
+       def finalize(self, *args, **kwargs):
                if not self.finalized:
                        self.finalized = True
                        # finalize existing submodules before finalizing us
                        subfragments = self._collect_submodules()
-                       self.do_finalize()
+                       self.do_finalize(*args, **kwargs)
                        # finalize submodules created by do_finalize
                        subfragments += self._collect_submodules()
                        # resolve clock domain name conflicts