cores/clock/gowin_gw1n: Fix indent.

This commit is contained in:
Florent Kermarrec 2021-04-30 12:22:59 +02:00
parent 5dc3ad3b29
commit 59b968decc
1 changed files with 6 additions and 6 deletions

View File

@ -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):