From: Luke Kenneth Casson Leighton Date: Sun, 29 Jul 2018 09:48:05 +0000 (+0100) Subject: add tx clockhack X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2092f9f8ff1485de8b6f267b151c08b4fcaee92;p=pinmux.git add tx clockhack --- diff --git a/src/bsv/peripheral_gen/base.py b/src/bsv/peripheral_gen/base.py index 2d9f9dc..bfee4fb 100644 --- a/src/bsv/peripheral_gen/base.py +++ b/src/bsv/peripheral_gen/base.py @@ -200,8 +200,16 @@ else""" pname, ps, n, fname): ret = [] if ctype == 'out': - ret.append("mkConnection({0},\n\t\t\t{1}.{2});" - .format(ps, n, fname)) + if ck == PBase.get_clock_reset(self, name, count): + ret.append("mkConnection({0},\n\t\t\t{1}.{2});" + .format(ps, n, fname)) + else: + n2 = "{0}{1}".format(name, count) + sync = '{0}_{1}_sync'.format(n2, pname) + ret.append("mkConnection({0}.put,\n\t\t\t{1});" + .format(ps, sync)) + ret.append("mkConnection({0},\n\t\t\t{1}.{2}.get);" + .format(sync, n, fname)) elif ctype == 'outen': ret.append("mkConnection({0}_outen,\n\t\t\t{1});" .format(ps, fname))