From: Jean THOMAS Date: Mon, 8 Jun 2020 09:16:04 +0000 (+0200) Subject: Remove setaddr for submodule instanciation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13ebc767d61326355f97dfb74037594ebe5b7104;p=gram.git Remove setaddr for submodule instanciation --- diff --git a/gram/dfii.py b/gram/dfii.py index 3436e33..45abdb2 100644 --- a/gram/dfii.py +++ b/gram/dfii.py @@ -75,7 +75,7 @@ class DFIInjector(Peripheral, Elaboratable): m = Module() for n, phase in enumerate(self._inti.phases): - setattr(m.submodules, "pi" + str(n), PhaseInjector(phase)) + m.submodules += PhaseInjector(phase) with m.If(self._control.r_data[0]): m.d.comb += self.slave.connect(self.master)