Skip to content
Snippets Groups Projects
Commit 5d3dad56 authored by Matthieu Cattin's avatar Matthieu Cattin
Browse files

Fix bug in P2L DMA master, was decrementing data counter even if data where...

Fix bug in P2L DMA master, was decrementing data counter even if data where not from a completion with ID frame.
parent df0c7c58
Branches
Tags
No related merge requests found
......@@ -410,7 +410,8 @@ begin
p2l_data_cnt <= '0' & l2p_len_header;
end if;
elsif (p2l_dma_current_state = P2L_WAIT_READ_COMPLETION
and pd_pdm_data_valid_i = '1') then
and pd_pdm_data_valid_i = '1'
and pd_pdm_master_cpld_i = '1') then
-- decrement number of data to be received
p2l_data_cnt <= p2l_data_cnt - 1;
end if;
......
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