diff --git a/litex/soc/cores/clock.py b/litex/soc/cores/clock.py index 5d3ce6ec4..03b7e426c 100644 --- a/litex/soc/cores/clock.py +++ b/litex/soc/cores/clock.py @@ -74,7 +74,7 @@ class XilinxClocking(Module, AutoCSR): valid = False for d in range(*self.clkout_divide_range): clk_freq = vco_freq/d - if abs(clk_freq - f) < f*m: + if abs(clk_freq - f) <= f*m: config["clkout{}_freq".format(n)] = clk_freq config["clkout{}_divide".format(n)] = d config["clkout{}_phase".format(n)] = p