From: Florent Kermarrec Date: Wed, 22 Jul 2015 19:43:21 +0000 (+0200) Subject: actorlib/packet/Depacketizer: manage layouts without error signal X-Git-Tag: 24jan2021_ls180~2099^2~38 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5713ae381a257df3a6974cee141d1c4b486f18bb;p=litex.git actorlib/packet/Depacketizer: manage layouts without error signal --- diff --git a/migen/actorlib/packet.py b/migen/actorlib/packet.py index 6a35cd42..0cbe8bec 100644 --- a/migen/actorlib/packet.py +++ b/migen/actorlib/packet.py @@ -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",