From: Florent Kermarrec Date: Tue, 28 Mar 2017 10:21:54 +0000 (+0200) Subject: soc/interconnect/stream_packet.py: make error payload optional on Packetizer X-Git-Tag: 24jan2021_ls180~1875 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5efd6a8412595c297c87c70e088b0c934b3f0695;p=litex.git soc/interconnect/stream_packet.py: make error payload optional on Packetizer --- diff --git a/litex/soc/interconnect/stream_packet.py b/litex/soc/interconnect/stream_packet.py index a4118380..577f3e70 100644 --- a/litex/soc/interconnect/stream_packet.py +++ b/litex/soc/interconnect/stream_packet.py @@ -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,