Forum Discussion
SS5
Occasional Contributor
8 years agoFIFO:How to slow down the clock Frequency from 50 Mhz
once I enable your counter, it is writing at full clock speed to the fifo once the fifo is full, the counter just continues counting by the time it start reading and printing the first value to the...
GuaBin_N_Intel
Contributor
8 years agoprintf("STATUS = %u\n", altera_avalon_fifo_read_status(FIFO_0_IN_CSR_BASE,altera_avalon_fifo_read_status));
The fifo status isn't right. You have put the same function into the function argument. Refer to table 206, to read back all of bits, use the following command:
printf("STATUS = %u\n", altera_avalon_fifo_read_status(FIFO_0_IN_CSR_BASE,altera_avalon_fifo_status_all));
To debug, please put this status command before starting the transfer and after enabling the transfer.