From c370b2abc0b69f3f00220c579846f73cba9a4be9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 3 Aug 2018 10:20:14 +0100 Subject: [PATCH] fix name in mkConnection --- src/bsv/peripheral_gen/base.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/bsv/peripheral_gen/base.py b/src/bsv/peripheral_gen/base.py index e6f9a53..e07ba18 100644 --- a/src/bsv/peripheral_gen/base.py +++ b/src/bsv/peripheral_gen/base.py @@ -458,11 +458,8 @@ Ifc_sync#({0}) {1}_sync <-mksyncconnection( if not isinstance(connections, list): connections = [connections] for (idx, con) in enumerate(connections): - if len(connections) == 1: - idx = "" - else: - idx = "_%d_" % idx - aname = self.axi_slave_name(idx, name, count, typ) + cfg = self.get_mmap_cfg_name(idx) + aname = self.axi_slave_name(cfg, name, count, typ) ret.append(self.__mk_connection(con, aname, count, fabricname)) return '\n'.join(ret) -- 2.30.2