liteusb: pep8 (E201)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 12:29:44 +0000 (14:29 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 12:29:44 +0000 (14:29 +0200)
misoclib/com/liteusb/common.py
misoclib/com/liteusb/core/depacketizer.py

index b27e8318f06d2b14362e3152107ff0e5e946c659..2f6f9772e36a95fb48b65db3e94459f01e5b9854 100644 (file)
@@ -4,17 +4,15 @@ from migen.actorlib.fifo import *
 from migen.flow.actor import EndpointDescription
 
 user_layout = EndpointDescription(
-    [    ("dst", 8),
-         ("length", 4*8),
-         ("error", 1),
-        ("d", 8)
+    [("dst", 8),
+     ("length", 4*8),
+     ("error", 1),
+     ("d", 8)
     ],
     packetized=True
 )
 
-phy_layout = [
-    ("d", 8)
-]
+phy_layout = [("d", 8)]
 
 
 class LiteUSBPipe:
index cbc919e869da123b1f4c0289eeaf97bc9d584f71..9ed1a035304b4862d0f631136186f45a7bed076b 100644 (file)
@@ -43,11 +43,11 @@ class LiteUSBDepacketizer(Module):
                     preamble[i].eq(preamble[i-1])
             )
         fsm.act("WAIT_SOP",
-            If(    (preamble[3] == 0x5A) &
-                (preamble[2] == 0xA5) &
-                (preamble[1] == 0x5A) &
-                (preamble[0] == 0xA5) &
-                sink.stb,
+            If((preamble[3] == 0x5A) &
+               (preamble[2] == 0xA5) &
+               (preamble[1] == 0x5A) &
+               (preamble[0] == 0xA5) &
+               sink.stb,
             NextState("RECEIVE_HEADER")
             ),
             sink.ack.eq(1),