From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 10:32:04 +0000 (+0100) Subject: fix peripheral name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1afe7f0a4f1ad1bd00bef6a05aa21eef831698b8;p=pinmux.git fix peripheral name --- diff --git a/src/bsv/peripheral_gen/rgbttl.py b/src/bsv/peripheral_gen/rgbttl.py index 3ba08c6..e9a8325 100644 --- a/src/bsv/peripheral_gen/rgbttl.py +++ b/src/bsv/peripheral_gen/rgbttl.py @@ -24,10 +24,11 @@ class rgbttl(PBase): def mk_pincon(self, name, count): ret = [PBase.mk_pincon(self, name, count)] # special-case for gpio in, store in a temporary vector + sname = self.peripheral.iname().format(count) plen = len(self.peripheral.pinspecs) template = " mkConnection({0}.{1},\n\t\t\t{2}.{1});" name = self.get_iname(count) - ps = "pinmux.peripheral_side.%s" % name + ps = "pinmux.peripheral_side.%s" % sname n = "{0}".format(name) for ptype in ['data_out']: ret.append(template.format(ps, ptype, n))