Commit c123be1c authored by Dimitris Lampridis's avatar Dimitris Lampridis

hdl: restructure filtering logic of rmq endpoint rx

parent e34a3637
...@@ -186,6 +186,8 @@ begin -- arch ...@@ -186,6 +186,8 @@ begin -- arch
if(config.filter_udp = '1') then if(config.filter_udp = '1') then
match_udp <= header_i.is_udp;
if(header_i.ethertype /= x"0800") then if(header_i.ethertype /= x"0800") then
match_ethertype <= '0'; match_ethertype <= '0';
end if; end if;
...@@ -202,14 +204,6 @@ begin -- arch ...@@ -202,14 +204,6 @@ begin -- arch
end if; end if;
end if; end if;
if (config.filter_raw = '1') then
match_raw <= header_i.is_raw;
end if;
if (config.filter_udp = '1') then
match_udp <= header_i.is_udp;
end if;
--if (config.filter_type0 = '1') then --if (config.filter_type0 = '1') then
-- if (config.type0 /= header_i.tlv_type) then -- if (config.type0 /= header_i.tlv_type) then
-- match_type0 <= '0'; -- match_type0 <= '0';
...@@ -239,6 +233,8 @@ begin -- arch ...@@ -239,6 +233,8 @@ begin -- arch
if(config.filter_raw = '1') then if(config.filter_raw = '1') then
match_raw <= header_i.is_raw;
if(header_i.ethertype /= config.ethertype) then if(header_i.ethertype /= config.ethertype) then
match_ethertype <= '0'; match_ethertype <= '0';
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment