Commit 593be77a authored by Dimitris Lampridis's avatar Dimitris Lampridis

hdl: fix L2P DMA FIFO underflow during last packet

This bug was not affecting the design, as it would read once from an empty FIFO only after
the transfer was done.
Signed-off-by: Dimitris Lampridis's avatarDimitris Lampridis <dimitris.lampridis@cern.ch>
parent fabf9a18
......@@ -300,8 +300,8 @@ begin
-- Detect end of transfer
if dma_packet_len = 1 then
l2p_fsm_dframe <= '0';
data_fifo_rd <= '0';
if dma_last_packet = '0' then
data_fifo_rd <= '0';
l2p_dma_current_state <= L2P_NEXT;
else
dma_total_len <= (others => '0');
......
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