fpga: rfnoc: Fix inferred latch in chdr_strip_header

Original-commit: 4c7cd12e8cd0f541d4cd824690c163e4558abd51
This commit is contained in:
Wade Fife
2022-11-13 16:47:57 -06:00
parent 7dc93d0e8c
commit 91a99b78d6
+6 -3
View File
@@ -109,8 +109,12 @@ module chdr_strip_header #(
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
always_comb begin : sm_comb always_comb begin : sm_comb
m_tdata = s_chdr_tdata; // Default assignments
m_tlast = s_chdr_tlast; m_tdata = s_chdr_tdata;
m_tlast = s_chdr_tlast;
m_tvalid = 0;
m_tuser = packet_length;
s_chdr_tready = 1;
// Calculate the length of the header, including timestamp and metadata, // Calculate the length of the header, including timestamp and metadata,
// minus 1. // minus 1.
@@ -137,7 +141,6 @@ module chdr_strip_header #(
ST_STRIP : begin ST_STRIP : begin
// Drop incoming words // Drop incoming words
m_tvalid = 0; m_tvalid = 0;
m_tuser = 'X;
s_chdr_tready = 1; s_chdr_tready = 1;
end end
ST_PASS : begin ST_PASS : begin