Skip to content

Commit

Permalink
util_axis_fifo: Set tkeep and tlast values to 1 as the standard requires
Browse files Browse the repository at this point in the history
Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
  • Loading branch information
IstvanZsSzekely committed Nov 21, 2024
1 parent b93a02f commit 79fc8d8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions library/util_axis_fifo/util_axis_fifo.v
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ module util_axis_fifo #(
end
assign m_axis_tlast = axis_tlast_d;
end else
assign m_axis_tlast = 'b0;
assign m_axis_tlast = 1'b1;

// TKEEP support
if (TKEEP_EN) begin
Expand All @@ -162,7 +162,7 @@ module util_axis_fifo #(
end
assign m_axis_tkeep = axis_tkeep_d;
end else
assign m_axis_tkeep = 'h0;
assign m_axis_tkeep = ~0;

end /* zerodeep */
else
Expand Down Expand Up @@ -206,7 +206,7 @@ module util_axis_fifo #(
end
assign m_axis_tlast = axis_tlast_d;
end else
assign m_axis_tlast = 'b0;
assign m_axis_tlast = 1'b1;

// TKEEP support
if (TKEEP_EN) begin
Expand All @@ -221,7 +221,7 @@ module util_axis_fifo #(
end
assign m_axis_tkeep = axis_tkeep_d;
end else
assign m_axis_tkeep = 'h0;
assign m_axis_tkeep = ~0;

end /* !ASYNC_CLK */

Expand Down Expand Up @@ -289,17 +289,17 @@ module util_axis_fifo #(
end else if (TKEEP_EN) begin
assign s_axis_data_int_s = {s_axis_tkeep, s_axis_data};
assign m_axis_tkeep = m_axis_data_int_s[MEM_WORD-1-:DATA_WIDTH/8];
assign m_axis_tlast = 'b0;
assign m_axis_tlast = 1'b1;
assign m_axis_data = m_axis_data_int_s[DATA_WIDTH-1:0];
end else if (TLAST_EN) begin
assign s_axis_data_int_s = {s_axis_tlast, s_axis_data};
assign m_axis_tkeep = 'h0;
assign m_axis_tkeep = ~0;
assign m_axis_tlast = m_axis_data_int_s[DATA_WIDTH];
assign m_axis_data = m_axis_data_int_s[DATA_WIDTH-1:0];
end else begin
assign s_axis_data_int_s = {s_axis_data};
assign m_axis_tkeep = 'h0;
assign m_axis_tlast = 'b0;
assign m_axis_tkeep = ~0;
assign m_axis_tlast = 1'b1;
assign m_axis_data = m_axis_data_int_s[DATA_WIDTH-1:0];
end

Expand Down

0 comments on commit 79fc8d8

Please sign in to comment.