Name each BankMachine instance to improve VCD output
authorJean THOMAS <git0@pub.jeanthomas.me>
Fri, 17 Jul 2020 14:38:36 +0000 (16:38 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Fri, 17 Jul 2020 14:38:36 +0000 (16:38 +0200)
gram/core/controller.py

index d9ade1e8c97153b2d1ecc4157bb6490a57c3997a..4e36032f7730f7515ebf8b4c62b3c147e96e87b7 100644 (file)
@@ -89,7 +89,7 @@ class gramController(Elaboratable):
                                        nranks=nranks,
                                        settings=self.settings)
             bank_machines.append(bank_machine)
-            m.submodules += bank_machine
+            setattr(m.submodules, "bankmachine"+str(n), bank_machine)
             m.d.comb += getattr(self.interface, "bank" +
                                 str(n)).connect(bank_machine.req)