From 458a7fc5987c360f8a628d5985c42d03e1a9be82 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sun, 20 Oct 2019 23:30:16 -0700 Subject: [PATCH] Prioritize read request passthrough --- rtl/pcie_us_axi_dma_wr.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/pcie_us_axi_dma_wr.v b/rtl/pcie_us_axi_dma_wr.v index 598edb178..b10c34e59 100644 --- a/rtl/pcie_us_axi_dma_wr.v +++ b/rtl/pcie_us_axi_dma_wr.v @@ -637,7 +637,7 @@ always @* begin last_tlp_next = tlp_cmd_last_reg; tag_next = tlp_cmd_tag_reg; - if (tlp_cmd_valid_reg) begin + if (tlp_cmd_valid_reg && !s_axis_rq_tvalid) begin tlp_cmd_ready = 1'b1; if (AXIS_PCIE_DATA_WIDTH >= 256) begin m_axi_rready_next = m_axis_rq_tready_int_early; @@ -768,7 +768,7 @@ always @* begin last_tlp_next = tlp_cmd_last_reg; tag_next = tlp_cmd_tag_reg; - if (tlp_cmd_valid_reg) begin + if (tlp_cmd_valid_reg && !s_axis_rq_tvalid) begin tlp_cmd_ready = 1'b1; if (AXIS_PCIE_DATA_WIDTH >= 256) begin m_axi_rready_next = m_axis_rq_tready_int_early;