from UserDict import UserDict
from wire_def import generic_io # special case
+from wire_def import muxwire # special case
class Pin(object):
""" pin interface declaration.
res = res.format(*args)
return '\n' + res + '\n'
+class MuxInterface(Interface):
+
+ def wirefmt(self, *args):
+ return muxwire.format(*args)
class IOInterface(Interface):
# ========= Interface declarations ================ #
-mux_interface = Interface('cell', [{'name': 'mux', 'ready': False,
+mux_interface = MuxInterface('cell', [{'name': 'mux', 'ready': False,
'enabled': False,
'bitspec': '{1}', 'action': True}])