data_offload: Fix fifo_dst_ready generation
parent
78999e154e
commit
c27a0e4add
|
@ -252,10 +252,8 @@ module data_offload #(
|
||||||
// interface)
|
// interface)
|
||||||
generate
|
generate
|
||||||
if (MEM_TYPE == 1'b1) begin
|
if (MEM_TYPE == 1'b1) begin
|
||||||
assign fifo_dst_ready_int_s = fifo_dst_ready;
|
assign dst_mem_valid_int_s = dst_mem_valid_s;
|
||||||
assign dst_mem_valid_int_s = dst_mem_valid_s & m_axis_ready;
|
|
||||||
end else begin
|
end else begin
|
||||||
assign fifo_dst_ready_int_s = 1'b1;
|
|
||||||
// Compensate the 1 cycle READ latency of the BRAM
|
// Compensate the 1 cycle READ latency of the BRAM
|
||||||
always @(posedge m_axis_aclk) begin
|
always @(posedge m_axis_aclk) begin
|
||||||
dst_mem_valid_d <= dst_mem_valid_s;
|
dst_mem_valid_d <= dst_mem_valid_s;
|
||||||
|
@ -264,6 +262,8 @@ module data_offload #(
|
||||||
end
|
end
|
||||||
endgenerate
|
endgenerate
|
||||||
|
|
||||||
|
assign fifo_dst_ready_int_s = fifo_dst_ready & m_axis_ready;
|
||||||
|
|
||||||
assign fifo_src_wdata = s_axis_data;
|
assign fifo_src_wdata = s_axis_data;
|
||||||
assign fifo_dst_ren = dst_mem_valid_s;
|
assign fifo_dst_ren = dst_mem_valid_s;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue