liteeth: pep8 (E203)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 08:39:46 +0000 (10:39 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 08:39:46 +0000 (10:39 +0200)
misoclib/com/liteeth/core/arp/__init__.py
misoclib/com/liteeth/generic/__init__.py
misoclib/com/liteeth/phy/gmii_mii.py
misoclib/com/liteeth/test/model/dumps.py

index 50bd9a5b8fa927a0eabeae16cfc89cd1dd8b0df5..5d010a1b299757c18837997eb4644261e0f640fc 100644 (file)
@@ -112,9 +112,9 @@ class LiteEthARPRX(Module):
         reply = Signal()
         request = Signal()
         self.comb += Case(depacketizer.source.opcode, {
-            arp_opcode_request    :    [request.eq(1)],
-            arp_opcode_reply    :    [reply.eq(1)],
-            "default"            :    []
+            arp_opcode_request: [request.eq(1)],
+            arp_opcode_reply:   [reply.eq(1)],
+            "default":          []
             })
         self.comb += [
             source.ip_address.eq(depacketizer.source.sender_ip),
index cff32b0af90309e9634825455abfbee7fbce9a88..1c5498280f31c9fc0c01869f4b0f08c96b28b3c8 100644 (file)
@@ -24,9 +24,9 @@ class BufferizeEndpoints(ModuleTransformer):
         for name, endpoint in endpoints.items():
             if not self.names or name in self.names:
                 if isinstance(endpoint, Sink):
-                    sinks.update({name : endpoint})
+                    sinks.update({name: endpoint})
                 elif isinstance(endpoint, Source):
-                    sources.update({name : endpoint})
+                    sources.update({name: endpoint})
 
         # add buffer on sinks
         for name, sink in sinks.items():
index 3c65168b2190360c1452451893ea4bf7c7a5fa4c..c207c8b1a56331cab7eb96fe281a3a87750b9fc2 100644 (file)
@@ -10,8 +10,8 @@ from misoclib.com.liteeth.phy.mii import LiteEthPHYMIITX, LiteEthPHYMIIRX
 from misoclib.com.liteeth.phy.gmii import LiteEthPHYGMIITX, LiteEthPHYGMIIRX
 
 modes = {
-    "GMII"    : 0,
-    "MII"    : 1
+    "GMII": 0,
+    "MII": 1
 }
 
 tx_pads_layout = [("tx_er", 1), ("tx_en", 1), ("tx_data", 8)]
index 91a61c672aff95893894c9b14e344e5b92ae795e..5ea6bf6b2babf07d1fefd124213837cada3a189c 100644 (file)
@@ -20,15 +20,15 @@ arp_request = format_dump("""
 00 22 19 22 54 9e a9 fe 64 62""")
 
 arp_request_infos = {
-    "sender_mac"        :    0x00123f979201,
-    "target_mac"        :    0x00221922549e,
-    "ethernet_type"        :     0x806,
-    "hwtype"            :     0x1,
-    "opcode"            :    0x1,
-    "protosize"            :    0x4,
-    "proto"                :    0x800,
-    "sender_ip"            :    0xa9feff42,
-    "target_ip"            :    0xa9fe6462
+    "sender_mac":    0x00123f979201,
+    "target_mac":    0x00221922549e,
+    "ethernet_type": 0x806,
+    "hwtype":        0x1,
+    "opcode":        0x1,
+    "protosize"    0x4,
+    "proto":         0x800,
+    "sender_ip"    0xa9feff42,
+    "target_ip"    0xa9fe6462
 
 }
 
@@ -39,15 +39,15 @@ arp_reply = format_dump("""
 00 00 00 00 00 00 00 00 00 00 00 00""")
 
 arp_reply_infos = {
-    "sender_mac"        :    0x00221922549e,
-    "target_mac"        :    0x00123f979201,
-    "ethernet_type"        :     0x806,
-    "hwtype"            :     0x1,
-    "opcode"            :    0x2,
-    "protosize"            :    0x4,
-    "proto"                :    0x800,
-    "sender_ip"            :    0xa9fe6462,
-    "target_ip"            :    0xa9feff42
+    "sender_mac":    0x00221922549e,
+    "target_mac":    0x00123f979201,
+    "ethernet_type": 0x806,
+    "hwtype":        0x1,
+    "opcode":        0x2,
+    "protosize"    0x4,
+    "proto":         0x800,
+    "sender_ip"    0xa9fe6462,
+    "target_ip"    0xa9feff42
 }
 
 udp = format_dump("""
@@ -60,13 +60,13 @@ aa 9b 4e 4d f9 2e 51 52 fe ff 65 31 3a 71 34 3a
 34 3a 55 54 7e 62 31 3a 79 31 3a 71 65""")
 
 udp_infos = {
-    "sender_mac"        :    0x00140b333327,
-    "target_mac"        :    0xd07ab596cd0a,
-    "protocol"            :    0x11,
-    "sender_ip"            :    0xc0a80165,
-    "target_ip"            :    0xb27b0d78,
-    "src_port"            :    0xa63f,
-    "dst_port"            :    0x690f
+    "sender_mac": 0x00140b333327,
+    "target_mac": 0xd07ab596cd0a,
+    "protocol":   0x11,
+    "sender_ip":  0xc0a80165,
+    "target_ip":  0xb27b0d78,
+    "src_port":   0xa63f,
+    "dst_port":   0x690f
 }
 
 ping_request = format_dump("""
@@ -77,9 +77,9 @@ ping_request = format_dump("""
 77 61 62 63 64 65 66 67 68 69""")
 
 ping_request_infos = {
-    "code"        : 0x0,
-    "msgtype"    : 0x8,
-    "quench"    : 0x2002100
+    "code":    0x0,
+    "msgtype": 0x8,
+    "quench" 0x2002100
 }
 
 ping_reply = format_dump("""