soc/interconnect/stream_packet.py: make error payload optional on Packetizer

This commit is contained in:
Florent Kermarrec 2017-03-28 12:21:54 +02:00
parent d173d946b7
commit 5efd6a8412
1 changed files with 2 additions and 1 deletions

View File

@ -228,11 +228,12 @@ class Packetizer(Module):
)
)
)
if hasattr(sink, "error"):
self.comb += source.error.eq(sink.error)
fsm.act("COPY",
source.valid.eq(sink.valid),
source.last.eq(sink.last),
source.data.eq(sink.data),
source.error.eq(sink.error),
If(source.valid & source.ready,
sink.ready.eq(1),
If(source.last,