fixed wram_raddr_q handling in dma_fsm_q
@@ -1506,9 +1506,11 @@ BEGIN
--
-- defaults
--
+ dma_rtag_q <= dma_rtag_q;
dma_rtag_v := to_integer(unsigned(dma_rtag_q (4 DOWNTO 0)));
dma_rtag_next_v := to_integer(unsigned(dma_rtag_next_q(4 DOWNTO 0)));
+ dma_wtag_q <= dma_wtag_q;
dma_wtag_v := to_integer(unsigned(dma_wtag_q (4 DOWNTO 0)));
dma_wtag_next_v := to_integer(unsigned(dma_wtag_next_q(4 DOWNTO 0)));
@@ -1533,7 +1535,7 @@ BEGIN
(rsp_wtag_q /= dma_wtag_q) AND
(dma_wreq_cnt_q < 7 )THEN
dma_fsm_q <= ST_UPDATE_WRITE_BUF_READ_ADD;
- wram_raddr_q <= wram_raddr_q + 2;
+ wram_raddr_q <= (dma_wtag_q(4 DOWNTO 0) & '0') + 2;
END IF;
--
