hack for the outputs, get rid of _out for non-inouts
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 1 Jul 2018 23:28:43 +0000 (00:28 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 1 Jul 2018 23:28:43 +0000 (00:28 +0100)
src/bsv/actual_pinmux.py

index 32e306c3dc79f97cd714017cdde4328a7d1e7bb1..ee90986e21dcf97589bea35c4109ff59f4c2a1c3 100644 (file)
@@ -76,6 +76,8 @@ def fmt(ifaces, cells, idx, suffix=None):
         return '0'  # inputs don't get passed through to the out mux
     if suffix == '_outen' and x == 'out':
         return "wr%s%s" % (cells[1], suffix or '') # USE GPIO FOR SELECTION
+    if x == 'out': # sigh hack, should be using interface_decl
+        suffix = ''
     return "wr%s%s" % (cell, suffix or '')
 
 # XXX this needs to move into interface_decl.py