From 13ebc767d61326355f97dfb74037594ebe5b7104 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Mon, 8 Jun 2020 11:16:04 +0200 Subject: [PATCH] Remove setaddr for submodule instanciation --- gram/dfii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2