Hi,
20ns period equals to 50MHz.
So the MSB of an 8 bit synchronous counter will toggle with about 400kHz.
It usually makes no sense to read out a 18 bit counter during 50MHz counting, thus I recommend to use some pulse gating.
Count the pulses for a given period of time, then read out the value when counting is stopped.
Or you may use some output DFF to freeze a counter value ... but counter still is counting on.
I guess it's a good idea to tell us more about your application. .. to get useful assistance.
****
Hi, can you tell me, what is the hardware difference, to make FPGA faster than normal MCU? Thanks
An MCU is a complex logic device .. with a lot of gates. Even gates in series, which causes the delay of each gate to be added up.
So when you say an FPGA is faster than an MCU you compare apples with oranges.
If you want to compare both you need to implement the full (identical) logic of the MCU in question into the FPGA ... then compare them.
--> The speed of a single gate is determined by it's technology .. mainly structure sizes, voltage levels....
--> The speed of a circuit additionally is determined by the logic complexity.
Klaus