Page 1 of 1

Time Between Asynchronous Events in Verilog

Posted: Fri Jul 29, 2022 1:42 pm
by yeyabnj
Hello, I am trying to calculate the time between two asynchronous events without knowing the event rate or the frequency. I know we can use counters to achieve this, but I don't know how to determine which event happened first and how to toggle counters on and off to get correct values.

if anyone has any idea on how to achieve this, please help thanks.

Re: Time Between Asynchronous Events in Verilog

Posted: Sat Jul 30, 2022 1:07 am
by Malor
That's probably too advanced a question for the Newcomers forum. You'd probably want to ask that in the "Development for MiSTer" forum, or possibly ask on Discord. You'll probably need an actual dev to answer, and they mostly don't hang out down here in the cheap seats. :)