add peripheral interfaces
[pinmux.git] / src / bsv / peripheral_gen / rgbttl.py
index e9a83255aa45f2d2d10295bed8a240baaf2c26cf..ca065bb08b5db0842d928b58e422b9c53cf16848 100644 (file)
@@ -34,4 +34,13 @@ class rgbttl(PBase):
             ret.append(template.format(ps, ptype, n))
         return '\n'.join(ret)
 
+    def slowifdeclmux(self, name, count):
+        sname = self.get_iname(count)
+        return "        interface PeripheralSideLCD %s;" % sname
+
+    def slowifinstance(self, name, count):
+        sname = self.peripheral.iname().format(count)
+        pname = self.get_iname(count)
+        template = "        interface {0} = pinmux.peripheral_side.{1};"
+        return template.format(pname, sname)