wishbone.bus: add Decoder.
[nmigen-soc.git] / nmigen_soc / csr / wishbone.py
index f570ece8d220e03dfd1467103ac6b7f2f8c4d318..e9150b582e5b54ce2b7484c3ff5f1740fecad753 100644 (file)
@@ -80,9 +80,10 @@ class WishboneCSRBridge(Elaboratable):
                 with m.Default():
                     m.d.sync += wb_bus.dat_r[segment(index)].eq(csr_bus.r_data)
                     m.d.sync += wb_bus.ack.eq(1)
+                    m.d.sync += cycle.eq(0)
 
         with m.Else():
-            m.d.sync += cycle.eq(0)
             m.d.sync += wb_bus.ack.eq(0)
+            m.d.sync += cycle.eq(0)
 
         return m