From 7d3896ef3fc39cd6ff193149cc28820f00a0e937 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 29 Jul 2018 10:45:06 +0100 Subject: [PATCH] add tx clockhack --- src/bsv/peripheral_gen/base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bsv/peripheral_gen/base.py b/src/bsv/peripheral_gen/base.py index f6d11f1..2d9f9dc 100644 --- a/src/bsv/peripheral_gen/base.py +++ b/src/bsv/peripheral_gen/base.py @@ -232,6 +232,12 @@ Ifc_sync#({0}) {1}_sync <-mksyncconnection( typ = p['type'] pname = p['name'] n = name + if typ == 'out' or typ == 'inout': + if not n.startswith('gpio'): # XXX EURGH! horrible hack + n_ = "{0}{1}".format(n, count) + else: + n_ = n + ret.append(template.format("Bit#(1)", n_, ck, spc)) if typ == 'in' or typ == 'inout': #fname = self.pinname_in(pname) n_ = "{0}{1}".format(n, count) -- 2.30.2