From: Luke Kenneth Casson Leighton Date: Sun, 20 Feb 2022 01:32:09 +0000 (+0000) Subject: add dfii submodules so they get explicit names X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f91ce425bc840f99ae3144267a235734d22073a;p=gram.git add dfii submodules so they get explicit names --- diff --git a/gram/dfii.py b/gram/dfii.py index 07a0a21..895e654 100644 --- a/gram/dfii.py +++ b/gram/dfii.py @@ -81,7 +81,8 @@ class DFIInjector(Elaboratable): def elaborate(self, platform): m = Module() - m.submodules += self._phases + for n, phase in enumerate(self._phases): + m.submodules['phase_%d' % n] = phase with m.If(self._control.w_data[0]): m.d.comb += self.slave.connect(self.master)