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
-- IPv4 Address
case (cnt) is when 0 =>
-- IPv4 Address addr_next <= data_in_meta;
when 0 => cnt_next <= cnt + 1;
addr_next <= data_in_meta; -- UDP Port
cnt_next <= cnt + 1; when 1 =>
-- UDP Port --assert (last_word_in_meta = '1') report "last_word_in_meta not set" severity FAILURE;
when 1 =>
--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;
when others =>
stage_next <= METATRAFFIC_OPERATION; null;
when others => end case;
null;
end case;
end if;
end if; end if;
when METATRAFFIC_OPERATION => when METATRAFFIC_OPERATION =>
-- Memory Operation Guard -- Memory Operation Guard