liteusb: pep8 (E265)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 12:37:39 +0000 (14:37 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 12:37:39 +0000 (14:37 +0200)
misoclib/com/liteusb/core/crc.py
misoclib/com/liteusb/frontend/uart.py
misoclib/com/liteusb/phy/ft2232h.py

index 95e9db8c86363f42b21b63611052e42266db9c9b..83aab31314016054ebfb6cf1b4b3fa0c26324f79 100644 (file)
@@ -38,7 +38,7 @@ class CRCEngine(Module):
         self.last = Signal(width)
         self.next = Signal(width)
 
-        ###
+        # # #
 
         def _optimize_eq(l):
             """
@@ -108,7 +108,7 @@ class CRC32(Module):
         self.value = Signal(self.width)
         self.error = Signal()
 
-        ###
+        # # #
 
         self.submodules.engine = CRCEngine(dat_width, self.width, self.polynom)
         reg = Signal(self.width, reset=self.init)
@@ -144,7 +144,7 @@ class CRCInserter(Module):
         self.source = source = Source(layout)
         self.busy = Signal()
 
-        ###
+        # # #
 
         dw = flen(sink.d)
         crc = crc_class(dw)
@@ -225,7 +225,7 @@ class CRCChecker(Module):
         self.source = source = Source(layout)
         self.busy = Signal()
 
-        ###
+        # # #
 
         dw = flen(sink.d)
         crc = crc_class(dw)
index a03e67ebdfc11b167d8a8da0bcc5ea8892ba9b73..1147fa68e77545f7ea3171fe4ee77cf3062cd860 100644 (file)
@@ -20,7 +20,7 @@ class LiteUSBUART(Module, AutoCSR):
         self.source = source = Source(user_layout)
         self.sink = sink = Sink(user_layout)
 
-        ###
+        # # #
 
         # TX
         tx_start = self._rxtx.re
index cc5b400501d2c99ac8fa1ac79be4324a6dcda0e5..d8e70dd66b21fd3663ae73adde877dfdcd871372 100644 (file)
@@ -304,11 +304,10 @@ def main():
     tb = TB()
     run_simulation(tb, ncycles=8000, vcd_name="tb_phy.vcd")
 
-    ###
-    #print(tb.user.rd_data)
-    #print(tb.model.wr_data)
-    #print(len(tb.user.rd_data))
-    #print(len(tb.model.wr_data))
+    # print(tb.user.rd_data)
+    # print(tb.model.wr_data)
+    # print(len(tb.user.rd_data))
+    # print(len(tb.model.wr_data))
 
     print_results("F2232HModel --> UserModel", model_rd_data, tb.user.rd_data)
     print_results("UserModel --> FT2232HModel", user_wr_data,  tb.model.wr_data)