projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1884649
)
cores/clock/xilinx: change clkfbout_mult loop order to select highest vco_freq
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Wed, 7 Aug 2019 06:17:44 +0000
(08:17 +0200)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Wed, 7 Aug 2019 06:17:44 +0000
(08:17 +0200)
litex/soc/cores/clock.py
patch
|
blob
|
history
diff --git
a/litex/soc/cores/clock.py
b/litex/soc/cores/clock.py
index a15c2ec19677c335e75658d87380e0443a71a6d8..ed07b8716c34b892bb2bebbac2d2bc1c41f8d0f5 100644
(file)
--- a/
litex/soc/cores/clock.py
+++ b/
litex/soc/cores/clock.py
@@
-64,7
+64,7
@@
class XilinxClocking(Module, AutoCSR):
config = {}
for divclk_divide in range(*self.divclk_divide_range):
config["divclk_divide"] = divclk_divide
- for clkfbout_mult in r
ange(*self.clkfbout_mult_frange
):
+ for clkfbout_mult in r
eversed(range(*self.clkfbout_mult_frange)
):
all_valid = True
vco_freq = self.clkin_freq*clkfbout_mult/divclk_divide
(vco_freq_min, vco_freq_max) = self.vco_freq_range