2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

pipistrello: set CLKFX_MD_MAX from MD ratio

This commit is contained in:
Robert Jördens 2015-06-29 12:59:59 -06:00
parent d1c4cf0b78
commit 3ee2bd5fa8

View File

@ -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",