From 59b968decc3b354b9241028136a61684ba8185f4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 30 Apr 2021 12:22:59 +0200 Subject: [PATCH] cores/clock/gowin_gw1n: Fix indent. --- litex/soc/cores/clock/gowin_gw1n.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/litex/soc/cores/clock/gowin_gw1n.py b/litex/soc/cores/clock/gowin_gw1n.py index b1a8ee898..dc517cb2e 100644 --- a/litex/soc/cores/clock/gowin_gw1n.py +++ b/litex/soc/cores/clock/gowin_gw1n.py @@ -66,12 +66,12 @@ class GW1NPLL(Module): if (vco_freq >= vco_freq_min*(1 + self.vco_margin) and vco_freq <= vco_freq_max*(1 - self.vco_margin)): for _n, (clk, f, p, _m) in sorted(self.clkouts.items()): - if abs(out_freq - f) <= f*_m: - config["clk{}_freq".format(_n)] = out_freq - config["vco"] = vco_freq - config["fdiv"] = fdiv - compute_config_log(self.logger, config) - return config + if abs(out_freq - f) <= f*_m: + config["clk{}_freq".format(_n)] = out_freq + config["vco"] = vco_freq + config["fdiv"] = fdiv + compute_config_log(self.logger, config) + return config raise ValueError("No PLL config found") def do_finalize(self):