From 427f84ded79c10ae4a4c1496311554e0fb4eae5f Mon Sep 17 00:00:00 2001 From: Nils Wistoff Date: Mon, 2 Oct 2023 05:30:17 +0200 Subject: [PATCH] lrsc: Fix burst invalidation length Signed-off-by: Nils Wistoff --- src/axi_riscv_lrsc.sv | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/axi_riscv_lrsc.sv b/src/axi_riscv_lrsc.sv index e967b7e..eb75593 100644 --- a/src/axi_riscv_lrsc.sv +++ b/src/axi_riscv_lrsc.sv @@ -810,11 +810,10 @@ module axi_riscv_lrsc #( // Check reservation and clear identical addresses. art_check_clr_addr = clr_addr_q; art_check_clr_req = 1'b1; - if (clr_len_q == 1'b0) begin + clr_addr_d = clr_addr_q + 1; + clr_len_d = clr_len_q - 1; + if (clr_len_q == 'd1) begin aw_state_d = aw_wait_d ? AW_WAIT : AW_IDLE; - end else begin - clr_addr_d = clr_addr_q + 1; - clr_len_d = clr_len_q - 1; end end end