Skip to content

Commit

Permalink
Revert "data_offload: Fix oversized inputs in TX mode"
Browse files Browse the repository at this point in the history
This reverts commit 0e8f55b.
  • Loading branch information
Yamakaja authored and ronagyl committed Oct 27, 2021
1 parent d412673 commit cd6024b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions library/data_offload/data_offload_fsm.v
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module data_offload_fsm #(
output reg wr_resetn_out,
input wr_valid_in,
output wr_valid_out,
output reg wr_ready,
output wr_ready,
output reg [WR_ADDRESS_WIDTH-1:0] wr_addr,
input wr_last,
input [WR_DATA_WIDTH/8-1:0] wr_tkeep,
Expand Down Expand Up @@ -260,11 +260,12 @@ module data_offload_fsm #(

always @(posedge wr_clk) begin
wr_ready_d <= wr_ready;
// flush out the DMA if the transfer is bigger than the storage size
wr_ready <= ((wr_fsm_state == WR_WRITE_TO_MEM) ||
((wr_fsm_state == WR_WAIT_TO_END) && wr_ready_d && !(wr_valid_in && wr_last))) ? 1'b1 : 1'b0;
end

// flush out the DMA if the transfer is bigger than the storage size
assign wr_ready = ((wr_fsm_state == WR_WRITE_TO_MEM) ||
((wr_fsm_state == WR_WAIT_TO_END) && wr_valid_in && wr_ready_d && wr_full)) ? 1'b1 : 1'b0;

// write control
assign wr_valid_out = (wr_fsm_state == WR_WRITE_TO_MEM) & wr_valid_in;

Expand Down

0 comments on commit cd6024b

Please sign in to comment.