From d556a5189e54d003f09874cba83871d53f5b1173 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 24 Jul 2018 10:03:24 +0100 Subject: [PATCH] fix naming in spi --- src/bsv/peripheral_gen/nspi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bsv/peripheral_gen/nspi.py b/src/bsv/peripheral_gen/nspi.py index 9f8cd04..d999959 100644 --- a/src/bsv/peripheral_gen/nspi.py +++ b/src/bsv/peripheral_gen/nspi.py @@ -38,8 +38,8 @@ 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});" - ps = "pinmux.peripheral_side.%s" % name name = self.get_iname(count) + ps = "pinmux.peripheral_side.%s" % name 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