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...
JOHI
Contributor
8 years agoHello,
50 Mhz is the clock speed used by the CPU to process assembler instructions.
Instructions can require multiple clock pulses, this depends also on the cpu type.
You are looking at a way to slow down the loop:
#include <stdio.h>
#include <unistd.h>
int main()
{
while (1)
{
printf("Hello from Nios II! \n");
usleep(1000000);
}
return 0;
}Best Regards,
Johi.