mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/module/finalize: pass additional args to do_finalize
This commit is contained in:
parent
574becc1fc
commit
633e5e6747
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue