I'm using Altera DE10-Lite FPGA Development board. I can't find the specs where I'm supposed to know the relationship between clock frequency, cycles and delay. It have 2 50MHz clocks that I'm using.
I'm using Altera DE10-Lite FPGA Development board. I can't find the specs where I'm supposed to know the relationship between clock frequency, cycles and delay. It have 2 50MHz clocks that I'm using.
I don't get what your issue is exactly (which is why I ignored your first post).
A clock has a frequency, in your case it is 50 MHz. That clock therefore has a clock period of 20 ns between each rising edge, i.e. 1/(50 MHz) = 20e-9. Therefore 1 clock cycle is 20 ns of delay.
If you want to have 500 ns of delay then you have 500 ns/20 ns = 25 clock cycles of the 50 MHz clock will create that much delay.
I have no idea where that equation you showed "Clock cycles =(time delay) *(clock frequency/4)." came from but it requires the clock to be 1/4 of the 50 MHz, i.e. 12.5 MHz.
If you want to have 500 ns of delay then you have 500 ns/20 ns = 25 clock cycles of the 50 MHz clock will create that much delay.
I have no idea where that equation you showed "Clock cycles =(time delay) *(clock frequency/4)." came from but it requires the clock to be 1/4 of the 50 MHz, i.e. 12.5 MHz.
In my eyes there is no clock divider .... indeed I expect a clock multiplier. (PLL)
Clock cycles =(time delay) *(clock frequency/4).
If you replace with the values of your post:
Clock cycles = 25
Time delay = 500ns
Clock frequency = 12.5MHz
Then the formula is not correct
But if you replace with: clock frequency = 200MHz
Then the formula is correct.
In my eyes there is no clock divider .... indeed I expect a clock multiplier. (PLL)
Clock cycles =(time delay) *(clock frequency/4).
If you replace with the values of your post:
Clock cycles = 25
Time delay = 500ns
Clock frequency = 12.5MHz
Then the formula is not correct
But if you replace with: clock frequency = 200MHz
Then the formula is correct.