axi_dacfifo: Counters must use 1'b1 for incrementation
parent
a2fc1f25ca
commit
aba355b4ce
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue