cores/clock/gowin_gw1n: Fix indent.
This commit is contained in:
parent
5dc3ad3b29
commit
59b968decc
|
@ -66,12 +66,12 @@ class GW1NPLL(Module):
|
||||||
if (vco_freq >= vco_freq_min*(1 + self.vco_margin) and
|
if (vco_freq >= vco_freq_min*(1 + self.vco_margin) and
|
||||||
vco_freq <= vco_freq_max*(1 - self.vco_margin)):
|
vco_freq <= vco_freq_max*(1 - self.vco_margin)):
|
||||||
for _n, (clk, f, p, _m) in sorted(self.clkouts.items()):
|
for _n, (clk, f, p, _m) in sorted(self.clkouts.items()):
|
||||||
if abs(out_freq - f) <= f*_m:
|
if abs(out_freq - f) <= f*_m:
|
||||||
config["clk{}_freq".format(_n)] = out_freq
|
config["clk{}_freq".format(_n)] = out_freq
|
||||||
config["vco"] = vco_freq
|
config["vco"] = vco_freq
|
||||||
config["fdiv"] = fdiv
|
config["fdiv"] = fdiv
|
||||||
compute_config_log(self.logger, config)
|
compute_config_log(self.logger, config)
|
||||||
return config
|
return config
|
||||||
raise ValueError("No PLL config found")
|
raise ValueError("No PLL config found")
|
||||||
|
|
||||||
def do_finalize(self):
|
def do_finalize(self):
|
||||||
|
|
Loading…
Reference in New Issue