From: Sebastien Bourdeauducq Date: Sat, 30 Mar 2013 10:29:46 +0000 (+0100) Subject: fhdl/module/finalize: pass additional args to do_finalize X-Git-Tag: 24jan2021_ls180~2099^2~621 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=633e5e6747755319a983a8c6d96189f885b98559;p=litex.git fhdl/module/finalize: pass additional args to do_finalize --- diff --git a/migen/fhdl/module.py b/migen/fhdl/module.py index 5cf7a7bb..02ea7087 100644 --- a/migen/fhdl/module.py +++ b/migen/fhdl/module.py @@ -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