Fix old CSRStatus code
authorJean THOMAS <git0@pub.jeanthomas.me>
Tue, 16 Jun 2020 14:29:29 +0000 (16:29 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Tue, 16 Jun 2020 14:29:29 +0000 (16:29 +0200)
gram/phy/ecp5ddrphy.py

index e6c62aeebf1ec2e06afd35083bfb323a5b86adef..fb54126219d3354f1fd0e3c4a3842bb28ad91419 100644 (file)
@@ -314,9 +314,9 @@ class ECP5DDRPHY(Peripheral, Elaboratable):
             burstdet_d = Signal()
             m.d.sync += burstdet_d.eq(burstdet)
             with m.If(self._burstdet_clr.w_stb):
-                m.d.sync += self._burstdet_seen.status[i].eq(0)
+                m.d.sync += self._burstdet_seen.r_data[i].eq(0)
             with m.If(burstdet & ~burstdet_d):
-                m.d.sync += self._burstdet_seen.status[i].eq(1)
+                m.d.sync += self._burstdet_seen.r_data[i].eq(1)
 
             # DQS and DM ---------------------------------------------------------------------------
             dm_o_data = Signal(8)