Merge pull request #105 from yetifrisstlama/master

packet.py: fix typo in Packetizer
This commit is contained in:
enjoy-digital 2022-04-25 16:37:10 +02:00 committed by GitHub
commit 2f6ac9a216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Packetizer(Module):
)
if not aligned:
header_offset_multiplier = 1 if header_words == 1 else 2
self.sync += If(source.ready, sink_d.eq(sink))
self.sync += If(source.valid & source.ready, sink_d.eq(sink))
fsm.act("UNALIGNED-DATA-COPY",
source.valid.eq(sink.valid | sink_d.last),
source_last_a.eq(sink.last | sink_d.last),