BUG FIX: Parse whole Endpoint Match Package in rtps_reader

This commit is contained in:
Greek 2021-12-21 23:17:58 +01:00
parent 97e55ff623
commit bc37679d40

View File

@ -604,13 +604,8 @@ begin
mem_op_start <= '1'; mem_op_start <= '1';
mem_opcode <= SEARCH_ENDPOINT; mem_opcode <= SEARCH_ENDPOINT;
mem_field_flags <= (others => '0'); mem_field_flags <= (others => '0');
-- Synthesis Guard stage_next <= LATCH_ENDPOINT_DATA;
if (RELIABILITY_QOS = RELIABLE_RELIABILITY_QOS) then cnt_next <= 0;
stage_next <= LATCH_ENDPOINT_DATA;
cnt_next <= 0;
else
stage_next <= METATRAFFIC_OPERATION;
end if;
when EMO_ENDPOINT_UNMATCH => when EMO_ENDPOINT_UNMATCH =>
mem_op_start <= '1'; mem_op_start <= '1';
mem_opcode <= SEARCH_ENDPOINT; mem_opcode <= SEARCH_ENDPOINT;
@ -657,28 +652,25 @@ begin
end if; end if;
end if; end if;
when LATCH_ENDPOINT_DATA => when LATCH_ENDPOINT_DATA =>
-- Synthesis Guard -- Input FIFO Guard
if (RELIABILITY_QOS = RELIABLE_RELIABILITY_QOS) then if (empty_meta = '0') then
-- Input FIFO Guard rd_meta <= '1';
if (empty_meta = '0') then
rd_meta <= '1';
case (cnt) is case (cnt) is
-- IPv4 Address -- IPv4 Address
when 0 => when 0 =>
addr_next <= data_in_meta; addr_next <= data_in_meta;
cnt_next <= cnt + 1; cnt_next <= cnt + 1;
-- UDP Port -- UDP Port
when 1 => when 1 =>
--assert (last_word_in_meta = '1') report "last_word_in_meta not set" severity FAILURE; --assert (last_word_in_meta = '1') report "last_word_in_meta not set" severity FAILURE;
portn_next <= data_in_meta(WORD_WIDTH-1 downto WORD_WIDTH-UDP_PORT_WIDTH); portn_next <= data_in_meta(WORD_WIDTH-1 downto WORD_WIDTH-UDP_PORT_WIDTH);
stage_next <= METATRAFFIC_OPERATION; stage_next <= METATRAFFIC_OPERATION;
when others => when others =>
null; null;
end case; end case;
end if;
end if; end if;
when METATRAFFIC_OPERATION => when METATRAFFIC_OPERATION =>
-- Memory Operation Guard -- Memory Operation Guard