soc/interconnect/packet/Depacketizer: use both sink.valid and sink.ready to update sink_d, fix Etherbone regression on Arty.

This commit is contained in:
Florent Kermarrec 2020-01-16 09:46:54 +01:00
parent a168ecbabd
commit a26853702c
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ class Depacketizer(Module):
)
)
)
self.sync += If(sink.ready, sink_d.eq(sink))
self.sync += If(sink.valid & sink.ready, sink_d.eq(sink))
fsm.act("UNALIGNED-DATA-COPY",
source.valid.eq(sink.valid | sink_d.last),
source.last.eq(sink.last | sink_d.last),