Skip to content

Commit 626b4bb

Browse files
Connect PLL's clock enable to dynamic clock control logic
Signed-off-by: Robert Szczepanski <[email protected]>
1 parent 421f581 commit 626b4bb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

soc/hps_proto2_platform.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
from litex.build.generic_platform import Pins, Subsignal, IOStandard, Misc
88
from litex.build.lattice import LatticePlatform, oxide
99
from litex.build.lattice.programmer import LatticeProgrammer
10-
from litex.soc.cores.clock import NXOSCA, NXPLL
10+
from litex.soc.cores.clock import NXOSCA
1111
# from litex.soc.cores.ram import NXLRAM
12-
from hps_lattice_nx import NXLRAM
12+
from hps_lattice_nx import NXLRAM, NXPLL
1313

1414
hps_io = [
1515
("done", 0, Pins("A5"), IOStandard("LVCMOS18H")),
@@ -100,6 +100,12 @@ def __init__(self, platform, sys_clk_freq):
100100
AsyncResetSynchronizer(self.cd_cfu, ~self.sys_pll.locked | (por_counter != 0)),
101101
]
102102

103+
def do_finalize(self):
104+
self.comb += [
105+
self.sys_pll.enable.sys.eq(self.sys_clk_enable),
106+
self.sys_pll.enable.cfu.eq(self.cfu_clk_enable),
107+
]
108+
103109

104110
_nextpnr_report_filename = 'nextpnr-nexus-report.json'
105111

0 commit comments

Comments
 (0)