dma_lasmi/Reader: handle ack=1 when stb=0
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 7 Jul 2013 16:57:05 +0000 (18:57 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 7 Jul 2013 16:57:05 +0000 (18:57 +0200)
migen/actorlib/dma_lasmi.py

index 691c771f09b176f8072be6112793da90ee1ea4cc..4dab301825761f9bd03c430472f0f4b61c6ffd16 100644 (file)
@@ -21,7 +21,7 @@ class Reader(Module):
                        lasmim.we.eq(0),
                        lasmim.stb.eq(self.address.stb & request_enable),
                        lasmim.adr.eq(self.address.payload.a),
-                       self.address.ack.eq(lasmim.req_ack),
+                       self.address.ack.eq(lasmim.req_ack & request_enable),
                        request_issued.eq(lasmim.stb & lasmim.req_ack)
                ]