From 23595150dd6152c229ccf1a8bdd5d207127737f3 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 21 Jun 2023 02:30:38 -0700 Subject: [PATCH] Fix TLP mux pause Signed-off-by: Alex Forencich --- rtl/pcie_tlp_fifo_mux.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/pcie_tlp_fifo_mux.v b/rtl/pcie_tlp_fifo_mux.v index f347d1d32..847b2325c 100644 --- a/rtl/pcie_tlp_fifo_mux.v +++ b/rtl/pcie_tlp_fifo_mux.v @@ -347,7 +347,7 @@ always @* begin // compute mux settings for (port = 0; port < PORTS; port = port + 1) begin - port_seg_valid[port] = pause[port] ? 0 : {2{fifo_ctrl_tlp_valid[port]}} >> fifo_ctrl_seg_offset[port]; + port_seg_valid[port] = {2{fifo_ctrl_tlp_valid[port]}} >> fifo_ctrl_seg_offset[port]; port_seg_eop[port] = {2{fifo_ctrl_tlp_eop[port]}} >> fifo_ctrl_seg_offset[port]; end @@ -383,7 +383,7 @@ always @* begin port_cyc = cur_port; seg_offset_cyc = port_seg_offset_cyc[cur_port]; seg_count_cyc = port_seg_count_cyc[cur_port]; - if (port_seg_valid[cur_port][0]) begin + if (!pause[cur_port] && port_seg_valid[cur_port][0]) begin // set frame frame_cyc = 1; sel_tlp_seq_valid_cyc[OUT_TLP_SEG_COUNT*cur_port+seg] = 1'b1;