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 <lars@metafoo.de>
main
Lars-Peter Clausen 2014-03-06 21:58:03 +01:00
parent 6da9c65a08
commit 8326022adc
1 changed files with 1 additions and 1 deletions

View File

@ -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