Ioannis
- 28th November 2012, 17:46
Here is the problem.
I have a counter that is 16 bits wide. Also another 16 bits counter.
I need to check if the distance between them is no more that 16 bytes.
The tricky part is where the one is near the roll over and the other has already rolled.
For example one counter is at FFFC and the other is at 0003.
Any ideas?
Ioannis
I have a counter that is 16 bits wide. Also another 16 bits counter.
I need to check if the distance between them is no more that 16 bytes.
The tricky part is where the one is near the roll over and the other has already rolled.
For example one counter is at FFFC and the other is at 0003.
Any ideas?
Ioannis