sort out mkConnection for gpio vectorised
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 23 Jul 2018 12:32:15 +0000 (13:32 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 23 Jul 2018 12:32:15 +0000 (13:32 +0100)
src/bsv/peripheral_gen/gpio.py

index 222f14456edd25ae3ab3584ac055da3da15ac93b..8678b4878e0202397f9676c8810edf7ab9bdde9b 100644 (file)
@@ -72,7 +72,7 @@ class gpio(PBase):
         # special-case for gpio in, store in a temporary vector
         ret = []
         plen = len(self.peripheral.pinspecs)
-        template = "      mkConnection({0}_{1},\n\t\t\t{2}_{1});"
+        template = "      mkConnection({0}.{1},\n\t\t\t{2}_{1});"
         ps = "pinmux.peripheral_side.%s" % name
         n = "{0}.func.gpio".format(name)
         for ptype in ['out', 'out_en', 'in']: