add dfii submodules so they get explicit names
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 20 Feb 2022 01:32:09 +0000 (01:32 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 20 Feb 2022 01:32:09 +0000 (01:32 +0000)
gram/dfii.py

index 07a0a21363caa8d863c74bdc931ed17e0f9f0bad..895e6541c6f67b680a3cb1e86385c666f29b9607 100644 (file)
@@ -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)