liteusb: pep8 (E222)

This commit is contained in:
Florent Kermarrec 2015-04-13 14:32:51 +02:00
parent 9e3d3e7930
commit 39df1ff636
2 changed files with 5 additions and 5 deletions

View 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

View 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)