From 3ee2bd5fa8cf56c5bc6aec9f0097b922508b798b Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 29 Jun 2015 12:59:59 -0600 Subject: [PATCH] pipistrello: set CLKFX_MD_MAX from MD ratio --- soc/targets/artiq_pipistrello.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/targets/artiq_pipistrello.py b/soc/targets/artiq_pipistrello.py index fbbb8d270..b3bc058c3 100644 --- a/soc/targets/artiq_pipistrello.py +++ b/soc/targets/artiq_pipistrello.py @@ -24,7 +24,7 @@ class _RTIOCRG(Module, AutoCSR): self.specials += Instance("DCM_CLKGEN", p_CLKFXDV_DIVIDE=2, p_CLKFX_DIVIDE=f.denominator, - p_CLKFX_MD_MAX=1.6, + p_CLKFX_MD_MAX=float(f), p_CLKFX_MULTIPLY=f.numerator, p_CLKIN_PERIOD=1e9/clk_freq, p_SPREAD_SPECTRUM="NONE",