mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
Fix TLP mux pause
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
1b2140a849
commit
23595150dd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user