mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
Fix backpressure bug
This commit is contained in:
parent
fd1ec1690f
commit
4754d94736
@ -922,7 +922,7 @@ generate
|
||||
end
|
||||
|
||||
// process commands and issue memory reads
|
||||
if (cmd_valid_reg && (!ram_rd_en_reg || ram_rd_ack) && ($unsigned(out_fifo_ctrl_wr_ptr_reg - out_fifo_rd_ptr_reg) < 32)) begin
|
||||
if (cmd_valid_reg && !cmd_status_valid_next && (!ram_rd_en_reg || ram_rd_ack) && ($unsigned(out_fifo_ctrl_wr_ptr_reg - out_fifo_rd_ptr_reg) < 32)) begin
|
||||
// update counters
|
||||
rd_ptr_next[ADDR_WIDTH-1:0] = rd_ptr_reg[ADDR_WIDTH-1:0] + 1;
|
||||
len_next = len_reg - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user