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;