From 5efd6a8412595c297c87c70e088b0c934b3f0695 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 28 Mar 2017 12:21:54 +0200 Subject: [PATCH] soc/interconnect/stream_packet.py: make error payload optional on Packetizer --- litex/soc/interconnect/stream_packet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.30.2