Commit b4d09c9e authored by Tristan Gingold's avatar Tristan Gingold Committed by Maciej Lipinski

sys_top_dma.vhd: clear fifo errors and max at the start of a transfer

parent 81d2b6d6
......@@ -159,6 +159,10 @@ begin
samples_valid_d <= samples_valid_i;
-- Fifo stats
if samples_start_i = '1' then
fifo_errs <= (others => '0');
fifo_max <= (others => '0');
else
if fifo_full = '1' and samples_valid_i = '1' and fifo_errs /= x"ff" then
fifo_errs <= fifo_errs + 1;
end if;
......@@ -166,6 +170,7 @@ begin
fifo_max <= unsigned(wr_count);
end if;
end if;
end if;
-- Linearize the data for the fifo.
for i in 0 to 3 loop
......
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