From b12f0d06ec99aa27facf8f904d21fc8dd3bd29aa Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 30 Jul 2018 08:47:11 +0100 Subject: [PATCH] sort out flexbus vector pincon --- src/bsv/peripheral_gen/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bsv/peripheral_gen/base.py b/src/bsv/peripheral_gen/base.py index 72385cf..2fdb7d2 100644 --- a/src/bsv/peripheral_gen/base.py +++ b/src/bsv/peripheral_gen/base.py @@ -207,6 +207,8 @@ else""" sname = self.peripheral.iname().format(count) ps = "pinmux.peripheral_side.%s" % sname n = self.get_iname(count) + if typ == 'in': + n = "{0}.{1}".format(n, stype) ps_ = "{0}.{1}".format(ps, pname) ret += self._mk_actual_connection(typ, name, count, typ, pname, ps_, n, stype) @@ -237,7 +239,6 @@ else""" else: n2 = "{0}{1}".format(name, count) sync = '{0}_{1}_sync'.format(n2, pname) - n = "{0}.{1}".format(n, fname) ret.append("mkConnection({1}.put,\n\t\t\t{0});".format( ps, sync)) ret.append("mkConnection({1},\n\t\t\t{0}.get);".format( -- 2.30.2