From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 11:06:37 +0000 (+0100) Subject: fix peripheral name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23ae1b0ba3240ee088ccb96efbdd666dae49b3b5;p=pinmux.git fix peripheral name --- diff --git a/src/bsv/peripheral_gen/nspi.py b/src/bsv/peripheral_gen/nspi.py index d999959..46ff961 100644 --- a/src/bsv/peripheral_gen/nspi.py +++ b/src/bsv/peripheral_gen/nspi.py @@ -38,8 +38,9 @@ class nspi(PBase): # special-case for gpio in, store in a temporary vector plen = len(self.peripheral.pinspecs) template = " mkConnection({0}.{1},\n\t\t\t{2}.{1});" + sname = self.peripheral.iname().format(count) name = self.get_iname(count) - ps = "pinmux.peripheral_side.%s" % name + ps = "pinmux.peripheral_side.%s" % sname n = "{0}.out".format(name) for ptype in ['io_out', 'io_out_en', 'io_in']: ret.append(template.format(ps, ptype, n))