soc/interconnect/stream_packet: fix Counter removing
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 24 Nov 2015 19:30:53 +0000 (20:30 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 24 Nov 2015 19:30:53 +0000 (20:30 +0100)
litex/soc/interconnect/stream_packet.py

index bb4ab736de46d13a43414b7fc15e48f0cbbe159c..60fcd5cf69c6c56ab605b958390ddd61f14ed304 100644 (file)
@@ -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)
             )