Fix burstdet CSR code
authorJean THOMAS <git0@pub.jeanthomas.me>
Thu, 23 Jul 2020 10:27:02 +0000 (12:27 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Thu, 23 Jul 2020 10:27:02 +0000 (12:27 +0200)
gram/phy/ecp5ddrphy.py

index 592c15dbb89b03ae963b75dbe2d9c7c9b803890e..c89d418cb9716aac6b23c3cc7e0da83a130e14df 100644 (file)
@@ -286,10 +286,8 @@ class ECP5DDRPHY(Peripheral, Elaboratable):
                                      o_DQSW270=dqsw270,
                                      o_DQSW=dqsw)
 
-            burstdet_d = Signal()
-            m.d.sync += burstdet_d.eq(burstdet)
-            #with m.If(burstdet):
-                #m.d.sync += burstdet_reg[i].eq(1)
+            with m.If(burstdet):
+                m.d.sync += burstdet_reg[i].eq(1)
 
             # DQS and DM ---------------------------------------------------------------------------
             dm_o_data = Signal(8)