Forum Discussion
Altera_Forum
Honored Contributor
15 years ago50 Mhz pulse capture in 20 Mhz domain
Hi, I am working on stratix device. I have a design requirement to capture a pulse signal from a 50 Mhz domain to 20 Mhz. Please let me know, how can i capture these pulse without any pulse i...
Altera_Forum
Honored Contributor
15 years agoIt really depends how critical the system is. The basic setup is to double register a signal to prevent meta-stability. This will mean you need to hold the signal in the 50MHz clock domain for at least 3 clocks, or the 20MHz domain cant see it.
Ideally, you would have some form of handshaking - ie, you activate the signal in the 50MHz domain and wait until you get a response from the 20MHz before turning it off. This can slow the process down a lot, but it is much safer than simply passing it through a double register and hoping for a nice clean transition. A Fifo is really overkill for a single bit control signal. but for multiuple parralell bits, it garantees they all arrive in parrallel, rather than having some of them lag.