Merge pull request #173 from trabucayre/efinix_rework_clkinput_pll
phy/trionrgmii,titaniumrgmii: replaces str by ClockSignal for ClkInput and PLL
This commit is contained in:
commit
90b1a18485
|
@ -131,7 +131,7 @@ class LiteEthPHYRGMIICRG(LiteXModule):
|
||||||
# -------
|
# -------
|
||||||
self.specials += ClkInput(
|
self.specials += ClkInput(
|
||||||
i = clock_pads.rx,
|
i = clock_pads.rx,
|
||||||
o = f"auto_eth{n}_rx_clk_in", # FIXME: Use Clk Signal.
|
o = self.cd_eth_rx.clk,
|
||||||
)
|
)
|
||||||
|
|
||||||
# TX Clk.
|
# TX Clk.
|
||||||
|
@ -144,7 +144,7 @@ class LiteEthPHYRGMIICRG(LiteXModule):
|
||||||
# TX PLL.
|
# TX PLL.
|
||||||
# -------
|
# -------
|
||||||
self.pll = pll = TITANIUMPLL(platform)
|
self.pll = pll = TITANIUMPLL(platform)
|
||||||
pll.register_clkin(None, freq=125e6, name=f"auto_eth{n}_rx_clk_in0") # FIXME: 0 is to match ClkInput
|
pll.register_clkin(self.cd_eth_rx.clk, freq=125e6)
|
||||||
pll.create_clkout(self.cd_eth_rx, freq=125e6, phase=0, with_reset=False)
|
pll.create_clkout(self.cd_eth_rx, freq=125e6, phase=0, with_reset=False)
|
||||||
pll.create_clkout(self.cd_eth_tx, freq=125e6, phase=0, with_reset=False)
|
pll.create_clkout(self.cd_eth_tx, freq=125e6, phase=0, with_reset=False)
|
||||||
pll.create_clkout(self.cd_eth_tx_delayed, freq=125e6, phase=90)
|
pll.create_clkout(self.cd_eth_tx_delayed, freq=125e6, phase=90)
|
||||||
|
|
|
@ -131,7 +131,7 @@ class LiteEthPHYRGMIICRG(LiteXModule):
|
||||||
# -------
|
# -------
|
||||||
self.specials += ClkInput(
|
self.specials += ClkInput(
|
||||||
i = clock_pads.rx,
|
i = clock_pads.rx,
|
||||||
o = f"auto_eth{n}_rx_clk_in", # FIXME: Use Clk Signal.
|
o = self.cd_eth_rx.clk,
|
||||||
)
|
)
|
||||||
|
|
||||||
# TX Clk.
|
# TX Clk.
|
||||||
|
@ -144,7 +144,7 @@ class LiteEthPHYRGMIICRG(LiteXModule):
|
||||||
# TX PLL.
|
# TX PLL.
|
||||||
# -------
|
# -------
|
||||||
self.pll = pll = TRIONPLL(platform)
|
self.pll = pll = TRIONPLL(platform)
|
||||||
pll.register_clkin(None, freq=125e6, name=f"auto_eth{n}_rx_clk_in0") # FIXME: 0 is to match ClkInput
|
pll.register_clkin(self.cd_eth_rx.clk, freq=125e6)
|
||||||
pll.create_clkout(self.cd_eth_rx, freq=125e6, phase=0, with_reset=False, is_feedback=True)
|
pll.create_clkout(self.cd_eth_rx, freq=125e6, phase=0, with_reset=False, is_feedback=True)
|
||||||
pll.create_clkout(self.cd_eth_tx, freq=125e6, phase=0, with_reset=False)
|
pll.create_clkout(self.cd_eth_tx, freq=125e6, phase=0, with_reset=False)
|
||||||
pll.create_clkout(self.cd_eth_tx_delayed, freq=125e6, phase=45)
|
pll.create_clkout(self.cd_eth_tx_delayed, freq=125e6, phase=45)
|
||||||
|
|
Loading…
Reference in New Issue