name issue in Pi2LSUI
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 26 Jun 2020 23:29:36 +0000 (00:29 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 26 Jun 2020 23:29:36 +0000 (00:29 +0100)
src/soc/experiment/pi2ls.py

index 7f711a63247f24e8c2f70af5a913b0e39182206f..7e4f59c6efc0a1668e7aba68558bf3d37520c1b4 100644 (file)
@@ -37,7 +37,8 @@ class Pi2LSUI(Elaboratable):
         print ("pi2lsui reg mask addr", regwid, mask_wid, addrwid)
         self.addrbits = mask_wid
         if pi is None:
-            pi = PortInterface(name="%s_pi", regwid=regwid, addrwid=addrwid)
+            piname = "%s_pi" % name
+            pi = PortInterface(piname, regwid=regwid, addrwid=addrwid)
         self.pi = pi
         if lsui is None:
             lsui = LoadStoreUnitInterface(addrwid, self.addrbits, regwid)