From 23eb0d2428584c150d0b058813950b566d9596d3 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Thu, 19 Feb 2015 14:29:39 +0100 Subject: [PATCH] axi_dmac: request_generator: Stop generating requests when disabled Currently when the DMAC gets disabled the request_generator will still generate all remaining burst requests for the currently active transfer. While these requests will be ignored by the source and destination component this can still take a fair amount of time for long transfers. So just stop generating burst requests once the DMAC is being disabled. Signed-off-by: Lars-Peter Clausen --- library/axi_dmac/request_generator.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/axi_dmac/request_generator.v b/library/axi_dmac/request_generator.v index 04ab50b8c..e02232891 100644 --- a/library/axi_dmac/request_generator.v +++ b/library/axi_dmac/request_generator.v @@ -78,6 +78,8 @@ begin burst_count <= 'h00; id <= 'h0; req_ready <= 1'b1; + end else if (enable == 1'b0) begin + req_ready <= 1'b1; end else begin if (req_ready) begin if (req_valid && enable) begin