resolve name conflict
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 24 Jul 2018 12:34:30 +0000 (13:34 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 24 Jul 2018 12:34:30 +0000 (13:34 +0100)
src/bsv/peripheral_gen/jtag.py
src/bsv/peripheral_gen/rgbttl.py

index e4c9e529e4dd1eb355e9eebc28ea70f13c8c2459..e86880d22d43a0f8b21f0b0343eacf91ddb4f53f 100644 (file)
@@ -14,11 +14,11 @@ class jtag(PBase):
 
     def slowifdeclmux(self, name, count):
         sname = self.get_iname(count)
-        return "        interface PeripheralSideJTAG %s;" % sname
+        return "        interface PeripheralSideJTAG %s_out;" % sname
 
     def slowifinstance(self, name, count):
         sname = self.peripheral.iname().format(count)
         pname = self.get_iname(count)
-        template = "        interface {0} = pinmux.peripheral_side.{1};"
+        template = "        interface {0}_out = pinmux.peripheral_side.{1};"
         return template.format(pname, sname)
 
index ca065bb08b5db0842d928b58e422b9c53cf16848..fa7e49ab7773647dbe10e8c3dd87fe9e196bacd3 100644 (file)
@@ -36,11 +36,11 @@ class rgbttl(PBase):
 
     def slowifdeclmux(self, name, count):
         sname = self.get_iname(count)
-        return "        interface PeripheralSideLCD %s;" % sname
+        return "        interface PeripheralSideLCD %s_out;" % sname
 
     def slowifinstance(self, name, count):
         sname = self.peripheral.iname().format(count)
         pname = self.get_iname(count)
-        template = "        interface {0} = pinmux.peripheral_side.{1};"
+        template = "        interface {0}_out = pinmux.peripheral_side.{1};"
         return template.format(pname, sname)