self._stb = 1
if selfp.stb and selfp.ack:
- self._cnt +=1
+ self._cnt += 1
selfp.stb = self._stb
selfp.d = self.data[self._cnt]
self.submodules.dut = LiteUSBPacketizer()
self.submodules.sink = PacketizerSinkModel()
- self.comb +=[
+ self.comb += [
self.source.connect(self.dut.sink),
self.dut.source.connect(self.sink),
]
try:
for i, val in enumerate(l1):
if val != l2[i]:
- print(s + " : val : %02X, exp : %02X" %(val, l2[i]))
+ print(s + " : val : {:02X}, exp : {:02X}".format(val, l2[i]))
r = False
except:
return r