axi_dacfifo: DAC side CDC fifo control update
The fifo will ask for a new data from the DDR, if the current level is lower than the high threshold. This will prevent overflow. By deleting the lower threshold, we can avoid ocassional underflows, when the DAC rate is closer to the max DDRx rate.main
parent
a0b33898d2
commit
7340d8aa16
|
@ -186,7 +186,7 @@ module axi_dacfifo_dac #(
|
||||||
axi_mem_addr_diff <= axi_mem_addr_diff_s[AXI_ADDRESS_WIDTH-1:0];
|
axi_mem_addr_diff <= axi_mem_addr_diff_s[AXI_ADDRESS_WIDTH-1:0];
|
||||||
if (axi_mem_addr_diff >= AXI_BUF_THRESHOLD_HI) begin
|
if (axi_mem_addr_diff >= AXI_BUF_THRESHOLD_HI) begin
|
||||||
axi_dready <= 1'b0;
|
axi_dready <= 1'b0;
|
||||||
end else if (axi_mem_addr_diff <= AXI_BUF_THRESHOLD_LO) begin
|
end else begin
|
||||||
axi_dready <= 1'b1;
|
axi_dready <= 1'b1;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue