serdes/TXSkipInserter: 88*2 = 176...

This commit is contained in:
Florent Kermarrec 2019-12-04 16:59:14 +01:00
parent cc1bb1d0ae
commit d735f692f9
2 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ class TestSerDes(unittest.TestCase):
while not (yield dut.source.valid):
yield
while True:
for i in range(167):
for i in range(177):
yield
if (yield dut.source.ctrl) != 0b1111:
dut.ctrl_errors += 1

View File

@ -166,12 +166,12 @@ class TXSkipInserter(Module):
skip_dequeue = Signal()
skip_count = Signal(16)
# Queue one 2 SKP Ordered Set every 166 Data/Ctrl words (FIXME: should be 1 SKP every 88 words)
# Queue one 2 SKP Ordered Set every 176 Data/Ctrl words (FIXME: should be 1 SKP every 88 words)
self.sync += [
skip_queue.eq(0),
If(sink.valid & sink.ready,
data_count.eq(data_count + 1),
If(data_count == 165,
If(data_count == 175,
data_count.eq(0),
skip_queue.eq(1)
)