whitespace, autopep8
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 18:46:44 +0000 (18:46 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 18:46:44 +0000 (18:46 +0000)
src/actual_pinmux.py
src/interface_decl.py
src/parse.py

index 4d00d34395b9b2d24da747afd117a48f6f6009cd..ce1797d823b72faa54eb557a063ffc23079b12b2 100644 (file)
@@ -39,9 +39,11 @@ dedicated_wire = '''
 # ============================================================
 digits = maketrans('0123456789', ' '*10)  # delete space later
 
+
 def cn(idx):
     return "cell%s_mux" % str(idx)
 
+
 def init(p):
     p.pinmux = ' '
     global dedicated_wire
index c532a84e98dd3ec15f55de8efa0b13d37a1a3b4e..c3e6418fc7b924dfdb85131e8cff28b081739a67 100644 (file)
@@ -1,7 +1,8 @@
 from UserDict import UserDict
 
-from wire_def import generic_io # special case
-from wire_def import muxwire # special case
+from wire_def import generic_io  # special case
+from wire_def import muxwire  # special case
+
 
 class Pin(object):
     """ pin interface declaration.
@@ -160,11 +161,13 @@ class Interface(object):
         res = res.format(*args)
         return '\n' + res + '\n'
 
+
 class MuxInterface(Interface):
 
     def wirefmt(self, *args):
         return muxwire.format(*args)
 
+
 class IOInterface(Interface):
 
     def ifacefmtoutfn(self, name):
@@ -242,8 +245,8 @@ class Interfaces(UserDict):
 # ========= Interface declarations ================ #
 
 mux_interface = MuxInterface('cell', [{'name': 'mux', 'ready': False,
-                                    'enabled': False,
-                                    'bitspec': '{1}', 'action': True}])
+                                       'enabled': False,
+                                       'bitspec': '{1}', 'action': True}])
 
 io_interface = IOInterface('io',
                            [{'name': 'outputval', 'enabled': False},
index b9acbd609c91573122a118f0a1a199c61fd57d86..d9358779b4cf06fcaed5af18c2d6e7f77b2f8322 100644 (file)
@@ -1,10 +1,12 @@
 import math
 
+
 def missing_numbers(num_list):
     original_list = [x for x in range(num_list[0], num_list[-1] + 1)]
     num_list = set(num_list)
     return (list(num_list ^ set(original_list)))
 
+
 class Parse(object):
     # == Parameters == #
     N_MUX = 1          # number of selection lines for the mux per io
@@ -83,6 +85,7 @@ class Parse(object):
     print("Dedicated IOs: " + str(len(dedicated_cells)))
     # ============================================ #
 
+
 if __name__ == '__main__':
     p = Parse()
     print p.N_IO