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