From 5713ae381a257df3a6974cee141d1c4b486f18bb Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 22 Jul 2015 21:43:21 +0200 Subject: [PATCH] actorlib/packet/Depacketizer: manage layouts without error signal --- migen/actorlib/packet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- 2.30.2