Sylvain,
I had a few minutes to actually talk a look at this.
Are you working on an old UHD version?

Looking backward from UHD 3.10.2 I see: 

ianb@server2:~/ettus/uhd$ git log -L96,102:host/lib/usrp/common/ad9361_ctrl.hpp
commit 965b9a17cce1dc69cf907d2d551eae754aafcd49
Author: Martin Braun <martin.br...@ettus.com>
Date:   Wed Sep 30 18:23:20 2015 -0700

    b200: Updated minimum clock rate to match DCM changes

    Lowest master clock rate is now 220 kHz. At low clock rates,
    the convergence time for the DC offset and quadrature calibration
    times is much larger, though.

diff --git a/host/lib/usrp/common/ad9361_ctrl.hpp 
b/host/lib/usrp/common/ad9361_ctrl.hpp
--- a/host/lib/usrp/common/ad9361_ctrl.hpp
+++ b/host/lib/usrp/common/ad9361_ctrl.hpp
@@ -90,5 +90,7 @@
     static uhd::meta_range_t get_clock_rate_range(void)
     {
-        //return uhd::meta_range_t(220e3, 61.44e6);
-        return uhd::meta_range_t(5e6, ad9361_device_t::AD9361_MAX_CLOCK_RATE); 
//5 MHz DCM low end
+        return uhd::meta_range_t(
+                ad9361_device_t::AD9361_MIN_CLOCK_RATE,
+                ad9361_device_t::AD9361_MAX_CLOCK_RATE
+        );
     }


Looking forward to UHD 3.11.01it seems like a major refactor has moved that 
functionality to: 
host/lib/include/uhdlib/usrp/common/ad9361_ctrl.hpp

-Ian



> On May 1, 2018, at 12:12 PM, Sylvain Munaut <246...@gmail.com> wrote:
> 
> Hi,
> 
> 
> It seems that the minimum master_clock_rate for the B200 is fixed to 5
> MHz in UHD :
> 
>    static uhd::meta_range_t get_clock_rate_range(void)
>    {
>        //return uhd::meta_range_t(220e3, 61.44e6);
>        return uhd::meta_range_t(5e6,
> ad9361_device_t::AD9361_MAX_CLOCK_RATE); //5 MHz DCM low end
>    }
> 
> And according to Xilinx specs, 5M is indeed the minimum for the DCM.
> 
> But I don't see anywhere in the fpga design a DCM being fed by that
> clock line ...
> 
> Commit in question that set that limit was written by Josh Blum in 2013 :
> 
> commit 9c3fd671810abf0d39d7baa78073b90b95d9b5bc
> Author: Josh Blum <j...@joshknows.com>
> Date:   Fri Aug 16 10:49:03 2013 -0700
> 
>    b200: lower clock rate is 5MHz due to DCM
> 
> 
> And looking a bit further I think that limit might be obsoleted by :
> 
> commit 450ab28c00e043123d81ecc70625027f59979f74
> Author: Ian Buckley <i...@ionconcepts.com>
> Date:   Mon May 18 14:38:42 2015 -0700
> 
>    B200: Brand new I/O design for B2x0 with no DCM. Should fix
> issues: #754, #757, #734
> 
> 
> Cheers,
> 
>     Sylvain


_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to