migen/actorlib/packet: fix source.error in Depacketizer
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 18 Aug 2015 23:09:16 +0000 (01:09 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 18 Aug 2015 23:12:07 +0000 (01:12 +0200)
migen/actorlib/packet.py

index 0cbe8becf7cd79462ef7b14f5aa108b3308a8cff..7af4a04392d641039a34456957a8b04d5b7f4c1f 100644 (file)
@@ -284,7 +284,7 @@ class Depacketizer(Module):
             )
 
         if hasattr(sink, "error"):
-            self.comb += source_error.eq(sink.error)
+            self.comb += source.error.eq(sink.error)
         self.comb += [
             source.eop.eq(sink.eop | no_payload),
             source.data.eq(sink.data),