liteusb: pep8 (E222)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 12:32:51 +0000 (14:32 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 12:32:51 +0000 (14:32 +0200)
misoclib/com/liteusb/core/depacketizer.py
misoclib/com/liteusb/phy/ft2232h.py

index 9ed1a035304b4862d0f631136186f45a7bed076b..4d592e1ebc1d5506045d2a0e5809f2475156cb0f 100644 (file)
@@ -92,7 +92,7 @@ class LiteUSBDepacketizer(Module):
 #
 # TB
 #
-src_data =    [
+src_data = [
     0x5A, 0xA5, 0x5A, 0xA5, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x01, 0x02, 0x03,
     0x5A, 0xA5, 0x5A, 0xA5, 0x12, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
 ]*4
@@ -116,10 +116,10 @@ class DepacketizerSourceModel(Module, Source, RandRun):
         if selfp.stb and selfp.ack:
             self._cnt +=1
 
-        selfp.stb =  self._stb
-        selfp.d =  self.data[self._cnt]
+        selfp.stb = self._stb
+        selfp.d = self.data[self._cnt]
 
-        if self._cnt  == len(self.data)-1:
+        if self._cnt == len(self.data)-1:
             raise StopSimulation
 
 
index 8c741b65565581c06f0a376363ba387e53b9acf5..e7511b4555ea319420f1f2bd73b09778dab5dd6a 100644 (file)
@@ -207,7 +207,7 @@ class FT2232HModel(Module, RandRun):
     def do_simulation(self, selfp):
         RandRun.do_simulation(self, selfp)
         if self.init:
-            selfp.rxf_n =  0
+            selfp.rxf_n = 0
             self.wr_data = []
             self.init = False
         self.wr_sim(selfp)