Skip to content

Commit

Permalink
util_axis_fifo: Update (#1255)
Browse files Browse the repository at this point in the history
* util_axis_fifo: Update

- Added missing signal drivers for tlast and tkeep

Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
  • Loading branch information
IstvanZsSzekely authored Jan 26, 2024
1 parent 231632e commit 57356cc
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions library/util_axis_fifo/util_axis_fifo.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ***************************************************************************
// ***************************************************************************
// Copyright (C) 2014-2023 Analog Devices, Inc. All rights reserved.
// Copyright (C) 2014-2024 Analog Devices, Inc. All rights reserved.
//
// In this HDL repository, there are many different and unique modules, consisting
// of various HDL (Verilog or VHDL) components. The individual modules are
Expand Down Expand Up @@ -148,8 +148,8 @@ module util_axis_fifo #(
axis_tlast_d <= s_axis_tlast;
end
assign m_axis_tlast = axis_tlast_d;

end
end else
assign m_axis_tlast = 'b0;

// TKEEP support
if (TKEEP_EN) begin
Expand All @@ -161,8 +161,8 @@ module util_axis_fifo #(
axis_tkeep_d <= s_axis_tkeep;
end
assign m_axis_tkeep = axis_tkeep_d;

end
end else
assign m_axis_tkeep = {DATA_WIDTH/8{1'b1}};

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

// TKEEP support
if (TKEEP_EN) begin
Expand All @@ -219,8 +220,8 @@ module util_axis_fifo #(
end
end
assign m_axis_tkeep = axis_tkeep_d;

end
end else
assign m_axis_tkeep = {DATA_WIDTH/8{1'b1}};

end /* !ASYNC_CLK */

Expand Down Expand Up @@ -288,13 +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_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 = {DATA_WIDTH/8{1'b1}};
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 = {DATA_WIDTH/8{1'b1}};
assign m_axis_tlast = 'b0;
assign m_axis_data = m_axis_data_int_s[DATA_WIDTH-1:0];
end

Expand Down

0 comments on commit 57356cc

Please sign in to comment.