From: Florent Kermarrec Date: Tue, 24 Nov 2015 19:30:53 +0000 (+0100) Subject: soc/interconnect/stream_packet: fix Counter removing X-Git-Tag: 24jan2021_ls180~2042 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7298fff1e6b3e525c6dd8654303dd3ffcea63c20;p=litex.git soc/interconnect/stream_packet: fix Counter removing --- 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) )