util_dacfifo: Align the dac_xfer_out to the first valid data

main
Istvan Csomortani 2018-09-07 13:43:31 +01:00 committed by István Csomortáni
parent a088a92364
commit e7ea5dfa11
1 changed files with 2 additions and 1 deletions

View File

@ -234,7 +234,8 @@ module util_dacfifo #(
dac_lastaddr <= dac_lastaddr_g2b_s;
dac_xfer_out_fifo_m1 <= dma_xfer_out_fifo;
dac_xfer_out_fifo <= dac_xfer_out_fifo_m1;
dac_xfer_out_fifo_d <= dac_xfer_out_fifo; // read consume at least one clock cycle
if (dac_valid)
dac_xfer_out_fifo_d <= dac_xfer_out_fifo;
end
end