From 39df1ff63688469a946a909e73651b51893604e0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 13 Apr 2015 14:32:51 +0200 Subject: [PATCH] liteusb: pep8 (E222) --- misoclib/com/liteusb/core/depacketizer.py | 8 ++++---- misoclib/com/liteusb/phy/ft2232h.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/misoclib/com/liteusb/core/depacketizer.py b/misoclib/com/liteusb/core/depacketizer.py index 9ed1a035..4d592e1e 100644 --- a/misoclib/com/liteusb/core/depacketizer.py +++ b/misoclib/com/liteusb/core/depacketizer.py @@ -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 diff --git a/misoclib/com/liteusb/phy/ft2232h.py b/misoclib/com/liteusb/phy/ft2232h.py index 8c741b65..e7511b45 100644 --- a/misoclib/com/liteusb/phy/ft2232h.py +++ b/misoclib/com/liteusb/phy/ft2232h.py @@ -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) -- 2.30.2