diff --git a/library/xilinx/axi_dacfifo/axi_dacfifo_address_buffer.v b/library/xilinx/axi_dacfifo/axi_dacfifo_address_buffer.v index c4fff0ff2..5784ab2d7 100644 --- a/library/xilinx/axi_dacfifo/axi_dacfifo_address_buffer.v +++ b/library/xilinx/axi_dacfifo/axi_dacfifo_address_buffer.v @@ -57,8 +57,8 @@ module axi_dacfifo_address_buffer #( waddr <= 0; raddr <= 0; end else begin - waddr <= (wea == 1'b1) ? waddr + 1 : waddr; - raddr <= (rea == 1'b1) ? raddr + 1 : raddr; + waddr <= (wea == 1'b1) ? waddr + 1'b1 : waddr; + raddr <= (rea == 1'b1) ? raddr + 1'b1 : raddr; end end diff --git a/library/xilinx/axi_dacfifo/axi_dacfifo_rd.v b/library/xilinx/axi_dacfifo/axi_dacfifo_rd.v index 78c105bea..95165e417 100644 --- a/library/xilinx/axi_dacfifo/axi_dacfifo_rd.v +++ b/library/xilinx/axi_dacfifo/axi_dacfifo_rd.v @@ -437,7 +437,7 @@ module axi_dacfifo_rd #( (dac_mem_raddr == (dac_mem_laddr_b + dac_last_beats - 1))) begin dac_mem_raddr <= dac_mem_raddr + (MEM_RATIO - (dac_last_beats - 1)); end else begin - dac_mem_raddr <= dac_mem_raddr + 1; + dac_mem_raddr <= dac_mem_raddr + 1'b1; end end dac_mem_raddr_g <= dac_mem_raddr_b2g_s;