From 1afe7f0a4f1ad1bd00bef6a05aa21eef831698b8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 11:32:04 +0100 Subject: [PATCH] fix peripheral name --- src/bsv/peripheral_gen/rgbttl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.30.2