From e64baad54a2c8d94a8f621ce43cc9c159cd64dc8 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Tue, 18 Aug 2015 14:13:55 +0200 Subject: [PATCH] axi_dmac: Fix a bug occuring on transfers < one beat Signed-off-by: Paul Cercueil --- library/axi_dmac/address_generator.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/axi_dmac/address_generator.v b/library/axi_dmac/address_generator.v index b420fb0e1..9fcce1ba3 100644 --- a/library/axi_dmac/address_generator.v +++ b/library/axi_dmac/address_generator.v @@ -103,7 +103,7 @@ end always @(posedge clk) begin if (addr_valid == 1'b0) begin if (eot == 1'b1) - length <= req_last_burst_length; + length <= last_burst_len; else length <= MAX_BEATS_PER_BURST - 1; end @@ -130,6 +130,7 @@ always @(posedge clk) begin if (req_valid && enable) begin address <= req_address; req_ready <= 1'b0; + last_burst_len <= req_last_burst_length; end end else begin if (addr_valid && addr_ready) begin