actorlib/packet/Depacketizer: manage layouts without error signal

This commit is contained in:
Florent Kermarrec 2015-07-22 21:43:21 +02:00
parent 8d6aa82082
commit 5713ae381a
1 changed files with 3 additions and 1 deletions

View File

@ -282,10 +282,12 @@ class Depacketizer(Module):
).Elif(source.stb & source.ack,
source.sop.eq(0)
)
if hasattr(sink, "error"):
self.comb += source_error.eq(sink.error)
self.comb += [
source.eop.eq(sink.eop | no_payload),
source.data.eq(sink.data),
source.error.eq(sink.error),
header.decode(self.header, source)
]
fsm.act("COPY",