bittide / bittide-hardware

17 stars 1 forks source link

Investigate "discreteness" of clock plots #611

Closed martijnbastiaan closed 2 months ago

martijnbastiaan commented 2 months ago

If we look at any clock plot that starts of sufficiently closely to the convergence frequency, we can observe a certain "blockiness" or "discreteness" of the plots:

Screenshot from 2024-08-21 10-14-17

The step size corresponds to roughly 0.5 ppm, while the clock step size is 0.01 ppm (10 ppb). I don't think this is fundamental to our measurement method:

While I can see there might be some synchronization logic messing with the precision around ~10 ppb, I don't think 0.5 ppm should be a cut-off point. Perhaps a good first step would be to remove all the type juggling in https://github.com/bittide/bittide-hardware/issues/609 to get a good view on where all the conversions happen.

martijnbastiaan commented 2 months ago

Oh no, another case of I'm off by 3 orders of magnitude. The correct logic would be:

And so, because the source data dances around -1,0,1 we do expect "glitches" of ~0.5 ppm.