From 99e91c4d90c67770cd1bc96f8dc9ffa9ad594dc9 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Fri, 18 Dec 2020 18:37:53 -0800 Subject: [PATCH] Fix pointer handling issue in PCIe AXI DMA write module --- rtl/pcie_us_axi_dma_wr.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl/pcie_us_axi_dma_wr.v b/rtl/pcie_us_axi_dma_wr.v index 8c5055b..b807a1d 100644 --- a/rtl/pcie_us_axi_dma_wr.v +++ b/rtl/pcie_us_axi_dma_wr.v @@ -992,7 +992,7 @@ always @* begin op_table_finish_en = 1'b0; - if (op_table_active[op_table_finish_ptr_reg[OP_TAG_WIDTH-1:0]] && op_table_tx_done[op_table_finish_ptr_reg[OP_TAG_WIDTH-1:0]] && op_table_finish_ptr_reg != op_table_start_ptr_reg) begin + if (op_table_active[op_table_finish_ptr_reg[OP_TAG_WIDTH-1:0]] && (!RQ_SEQ_NUM_ENABLE || op_table_tx_done[op_table_finish_ptr_reg[OP_TAG_WIDTH-1:0]]) && op_table_finish_ptr_reg != op_table_tx_finish_ptr_reg) begin op_table_finish_en = 1'b1; if (op_table_last[op_table_finish_ptr_reg[OP_TAG_WIDTH-1:0]]) begin