From 8326022adcecfbb05cc3823ef28c4da5e779becd Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Thu, 6 Mar 2014 21:58:03 +0100 Subject: [PATCH] axi_dmac: address_generator: Fix disable race condition If the address generator is disabled the very same cycle as it tries to put a new address on the bus, it will keep sending this address forever and the core will lock up Signed-off-by: Lars-Peter Clausen --- library/axi_dmac/address_generator.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/axi_dmac/address_generator.v b/library/axi_dmac/address_generator.v index 7be066f80..4d7bbca36 100644 --- a/library/axi_dmac/address_generator.v +++ b/library/axi_dmac/address_generator.v @@ -115,7 +115,7 @@ always @(posedge clk) begin addr_valid <= 1'b0; if (eot) req_ready <= 1'b1; - end else if (id != wait_id) begin + end else if (id != wait_id && enable) begin addr_valid <= 1'b1; end end