From: Luke Kenneth Casson Leighton Date: Fri, 3 Aug 2018 09:20:14 +0000 (+0100) Subject: fix name in mkConnection X-Git-Url: https://git.libre-soc.org/?p=pinmux.git;a=commitdiff_plain;h=c370b2abc0b69f3f00220c579846f73cba9a4be9 fix name in mkConnection --- 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)