JuliaComputing / xtrx_julia

XTRX LiteX/LitePCIe based design for Julia Computing
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

VCOs fail to tune approximately 1/4 of the time #81

Closed staticfloat closed 2 years ago

staticfloat commented 2 years ago

When setting CGEN or the SXR/SXT VCOs on the XTRX, I routinely get a CGEN set failure. Resetting the device seems to help, as does changing the requested frequency, however this really shouldn't happen. Either there is some kind of bad state we get into, and we need to clear it out properly, or we need to improve our VCO tuning algorithm.

We know that the LMS7002M-driver VCO tuning algorithm can be improved; the LimeSuite implementation is more advanced, doing a binary search instead of a linear sweep, and just in general looking cleaner. We should dig into our errors, try to understand where they come from, and if necessary, port over the LimeSuite algorithm to LMS7002M-driver.