fhdl/module/finalize: pass additional args to do_finalize

This commit is contained in:
Sebastien Bourdeauducq 2013-03-30 11:29:46 +01:00
parent 574becc1fc
commit 633e5e6747

View 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