Skip to content

Commit

Permalink
targets/lattice_certuspro_nx_xx,targets/lattice_crosslink_nx_xxx: pas…
Browse files Browse the repository at this point in the history
…s platform to NXOSCA CTOR
  • Loading branch information
trabucayre committed Jul 22, 2024
1 parent ab73201 commit 938bf8b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion litex_boards/targets/lattice_certuspro_nx_evn.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, platform, sys_clk_freq):
self.rst_n = platform.request("user_btn", 0)

# Clocking
self.hf_clk = NXOSCA()
self.hf_clk = NXOSCA(platform)
hf_clk_freq = 25e6
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)

Expand Down
2 changes: 1 addition & 1 deletion litex_boards/targets/lattice_certuspro_nx_vvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, platform, sys_clk_freq):
self.rst_n = platform.request("gsrn")

# Built in OSC
self.hf_clk = NXOSCA()
self.hf_clk = NXOSCA(platform)
hf_clk_freq = 25e6
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)

Expand Down
2 changes: 1 addition & 1 deletion litex_boards/targets/lattice_crosslink_nx_evn.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, platform, sys_clk_freq):
self.cd_sys = ClockDomain()

# Built in OSC
self.hf_clk = NXOSCA()
self.hf_clk = NXOSCA(platform)
hf_clk_freq = 25e6
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)

Expand Down
2 changes: 1 addition & 1 deletion litex_boards/targets/lattice_crosslink_nx_vip.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, platform, sys_clk_freq):

# TODO: replace with PLL
# Clocking
self.sys_clk = sys_osc = NXOSCA()
self.sys_clk = sys_osc = NXOSCA(platform)
sys_osc.create_hf_clk(self.cd_sys, sys_clk_freq)
platform.add_period_constraint(self.cd_sys.clk, 1e9/sys_clk_freq)
rst_n = platform.request("gsrn")
Expand Down

0 comments on commit 938bf8b

Please sign in to comment.