Commit 2e23cac3 authored by Maciej Lipinski's avatar Maciej Lipinski

modifed the internal buffer of rx streamer to output valid data only when valid_o is HIGH

Before, the output data would be maintained after to valid_o goes LOW. this causes two problems
- main problem: if there is only single output word, rx_first_p1_o and rx_last_p1_o are
  maintained HIGH, they are generally expected to be pulses
- side problem: the data is maintained - it is OK, but it is supposed to be valid anyway
  only when valid_o is HIGH
So, now the data_o is set to zeros when valid is not HIGH. this should prevent
anyone from relying on the fact that data is maintaned after valid_o goes LOW and
it makes rx_first_p1_o and rx_last_p1_o to be pulses
parent c6d1206b
......@@ -89,6 +89,7 @@ begin -- behavioral
d_o <= mem(to_integer(rd_ptr));
d_valid_o <= '1';
else
d_o <= (others => '0');
d_valid_o <= '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