Skip to content

Commit

Permalink
Connect PLL's clock enable to dynamic clock control logic
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Szczepanski <[email protected]>
  • Loading branch information
robertszczepanski committed Jun 27, 2022
1 parent 421f581 commit 626b4bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions soc/hps_proto2_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from litex.build.generic_platform import Pins, Subsignal, IOStandard, Misc
from litex.build.lattice import LatticePlatform, oxide
from litex.build.lattice.programmer import LatticeProgrammer
from litex.soc.cores.clock import NXOSCA, NXPLL
from litex.soc.cores.clock import NXOSCA
# from litex.soc.cores.ram import NXLRAM
from hps_lattice_nx import NXLRAM
from hps_lattice_nx import NXLRAM, NXPLL

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

def do_finalize(self):
self.comb += [
self.sys_pll.enable.sys.eq(self.sys_clk_enable),
self.sys_pll.enable.cfu.eq(self.cfu_clk_enable),
]


_nextpnr_report_filename = 'nextpnr-nexus-report.json'

Expand Down

0 comments on commit 626b4bb

Please sign in to comment.