pep8 whitespace cleanup
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 20 Jul 2018 05:28:44 +0000 (06:28 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 20 Jul 2018 05:28:44 +0000 (06:28 +0100)
src/bsv/interface_decl.py
src/bsv/peripheral_gen.py

index 25e5c0aacb58a27a1590b9d7e7c5ec9fd4b57a88..0588164a110eeac1b99e0faa9f47e04b6b5f78e3 100644 (file)
@@ -362,11 +362,11 @@ class Interfaces(InterfacesBase):
 
 # ========= Interface declarations ================ #
 
-mux_interface=MuxInterface('cell',
+mux_interface = MuxInterface('cell',
                              [{'name': 'mux', 'ready': False, 'enabled': False,
                                'bitspec': '{1}', 'action': True}])
 
-io_interface=IOInterface(
+io_interface = IOInterface(
     'io',
     [{'name': 'cell_out', 'enabled': True, },
      {'name': 'cell_outen', 'enabled': True, 'outenmode': True, },
@@ -382,12 +382,12 @@ io_interface=IOInterface(
 # basic test
 if __name__ == '__main__':
 
-    uartinterface_decl=Interface('uart',
+    uartinterface_decl = Interface('uart',
                                    [{'name': 'rx'},
                                     {'name': 'tx', 'action': True},
                                     ])
 
-    twiinterface_decl=Interface('twi',
+    twiinterface_decl = Interface('twi',
                                   [{'name': 'sda', 'outen': True},
                                    {'name': 'scl', 'outen': True},
                                    ])
index 9fa225148c404701bcdf6d3e00cef9477ee23dc8..9800cf13ab59208db84a7a5b84c28e2a8f807d67 100644 (file)
@@ -10,11 +10,11 @@ class PBase(object):
         return "%(name)s%(ifacenum)dEnd" % locals()
 
     def axi_reg_def(self, start, name, ifacenum):
-        name=name.upper()
-        offs=self.num_axi_regs32() * 4 * 16
-        end=start + offs - 1
-        bname=self.axibase(name, ifacenum)
-        bend=self.axiend(name, ifacenum)
+        name = name.upper()
+        offs = self.num_axi_regs32() * 4 * 16
+        end = start + offs - 1
+        bname = self.axibase(name, ifacenum)
+        bend = self.axiend(name, ifacenum)
         comment = "%d 32-bit regs" % self.num_axi_regs32()
         return ("    `define%(bname)s 'h%(start)08X\n"
                 "    `define%(bend)s  'h%(end)08X // %(comment)s" % locals(),