fpga: rfnoc: Fix inferred latch in chdr_strip_header
Original-commit: 4c7cd12e8cd0f541d4cd824690c163e4558abd51
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user