no longer need MuxInterface class with consistent naming scheme
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 04:17:18 +0000 (04:17 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 04:17:18 +0000 (04:17 +0000)
src/interface_decl.py

index 33f66880244ad69b9321fc9f84e27bc19f1d1610..1934870ffdf360076dde6519ca31bb7bbc0928ae 100644 (file)
@@ -108,22 +108,8 @@ class Interface(object):
         return '\n' + res + '\n'
 
 
-class MuxInterface(Interface):
-
-    def ifacefmtdecfn2(self, name):
-        return "cell{0}_mux"
-
-    def ifacefmtdecfn(self, name):
-        return "cell{0}_mux"
-
-    def ifacefmtinfn(self, name):
-        return "wrcell{0}_mux"
-
 class IOInterface(Interface):
 
-    #def ifacefmtdecfn(self, name):
-    #    return "cell{0}_mux"
-
     def ifacefmtoutfn(self, name):
         return "cell{0}_mux_out.%s" % (name[3:-4])
 
@@ -133,7 +119,7 @@ class IOInterface(Interface):
 
 # ========= Interface declarations ================ #
 
-mux_interface = MuxInterface([{'name': 'cell{0}_mux', 'ready':False,
+mux_interface = Interface([{'name': 'cell{0}_mux', 'ready':False,
                       'enabled':False,
                      'bitspec': '{1}', 'action': True}])