Forum Discussion
Altera_Forum
Honored Contributor
17 years agotry using a comparator, a delay, and a counter. for each "packet" start the counter and initialize the delay to 0. compare between each value of the packet stream and the value in the delay. use the output of the comparator to be the enable pin for the delay, so you can store the input data if the comparison is true. when the counter runs (and the packet is done) you can read the delay value which should be the maximum.
i will see if i can try that out this afternoon and post a screenshot, my MATLAB machine is busy right now. :(