targets/lattice_certuspro_nx_xx,targets/lattice_crosslink_nx_xxx: pass platform to NXOSCA CTOR
This commit is contained in:
parent
ab732011b3
commit
938bf8b3a6
|
@ -39,7 +39,7 @@ class _CRG(LiteXModule):
|
||||||
self.rst_n = platform.request("user_btn", 0)
|
self.rst_n = platform.request("user_btn", 0)
|
||||||
|
|
||||||
# Clocking
|
# Clocking
|
||||||
self.hf_clk = NXOSCA()
|
self.hf_clk = NXOSCA(platform)
|
||||||
hf_clk_freq = 25e6
|
hf_clk_freq = 25e6
|
||||||
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)
|
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ class _CRG(LiteXModule):
|
||||||
self.rst_n = platform.request("gsrn")
|
self.rst_n = platform.request("gsrn")
|
||||||
|
|
||||||
# Built in OSC
|
# Built in OSC
|
||||||
self.hf_clk = NXOSCA()
|
self.hf_clk = NXOSCA(platform)
|
||||||
hf_clk_freq = 25e6
|
hf_clk_freq = 25e6
|
||||||
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)
|
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ class _CRG(LiteXModule):
|
||||||
self.cd_sys = ClockDomain()
|
self.cd_sys = ClockDomain()
|
||||||
|
|
||||||
# Built in OSC
|
# Built in OSC
|
||||||
self.hf_clk = NXOSCA()
|
self.hf_clk = NXOSCA(platform)
|
||||||
hf_clk_freq = 25e6
|
hf_clk_freq = 25e6
|
||||||
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)
|
self.hf_clk.create_hf_clk(self.cd_por, hf_clk_freq)
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class _CRG(LiteXModule):
|
||||||
|
|
||||||
# TODO: replace with PLL
|
# TODO: replace with PLL
|
||||||
# Clocking
|
# 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)
|
sys_osc.create_hf_clk(self.cd_sys, sys_clk_freq)
|
||||||
platform.add_period_constraint(self.cd_sys.clk, 1e9/sys_clk_freq)
|
platform.add_period_constraint(self.cd_sys.clk, 1e9/sys_clk_freq)
|
||||||
rst_n = platform.request("gsrn")
|
rst_n = platform.request("gsrn")
|
||||||
|
|
Loading…
Reference in New Issue