From 7298fff1e6b3e525c6dd8654303dd3ffcea63c20 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 24 Nov 2015 20:30:53 +0100 Subject: [PATCH] soc/interconnect/stream_packet: fix Counter removing --- litex/soc/interconnect/stream_packet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/soc/interconnect/stream_packet.py b/litex/soc/interconnect/stream_packet.py index bb4ab736..60fcd5cf 100644 --- a/litex/soc/interconnect/stream_packet.py +++ b/litex/soc/interconnect/stream_packet.py @@ -164,7 +164,7 @@ class Packetizer(Module): self.sync += \ If(counter_reset, counter.eq(0) - ).Elif(Counter.ce, + ).Elif(counter_ce, counter.eq(counter + 1) ) @@ -215,7 +215,7 @@ class Packetizer(Module): source.data.eq(header_reg[dw:2*dw]), If(source.stb & source.ack, shift.eq(1), - counter._e.eq(1), + counter_ce.eq(1), If(counter == header_words-2, NextState("COPY") ) @@ -255,7 +255,7 @@ class Depacketizer(Module): self.sync += \ If(counter_reset, counter.eq(0) - ).Elif(Counter.ce, + ).Elif(counter_ce, counter.eq(counter + 1) ) -- 2.30.2