add peripheral interfaces
[pinmux.git] / src / bsv / peripheral_gen / gpio.py
index 9419f1c5bab85955ac5dd7c3c637c94863f04579..4b6ab4c9c300275c6e02f366e89dc00ca7cd8ca9 100644 (file)
@@ -8,9 +8,10 @@ class gpio(PBase):
                "    import mux::*;\n" + \
                "    import gpio::*;\n"
 
-    def slowifdeclmux(self):
+    def slowifdeclmux(self, name, count):
         size = len(self.peripheral.pinspecs)
-        return "        interface GPIO_config#(%d) pad_config{0};" % size
+        return "        interface GPIO_config#(%d) pad_config%d;" % \
+                            (size, count)
 
     def num_axi_regs32(self):
         return 2