liteeth_gen: Remove _eth suffix from PHY pads (not useful in case of a standalone core).
Will however require an update from design using the standalone core.
This commit is contained in:
parent
0d59ea180f
commit
52e94c02b5
|
@ -64,11 +64,11 @@ _io = [
|
||||||
("interrupt", 0, Pins(1)),
|
("interrupt", 0, Pins(1)),
|
||||||
|
|
||||||
# MII PHY Pads
|
# MII PHY Pads
|
||||||
("mii_eth_clocks", 0,
|
("mii_clocks", 0,
|
||||||
Subsignal("tx", Pins(1)),
|
Subsignal("tx", Pins(1)),
|
||||||
Subsignal("rx", Pins(1)),
|
Subsignal("rx", Pins(1)),
|
||||||
),
|
),
|
||||||
("mii_eth", 0,
|
("mii", 0,
|
||||||
Subsignal("rst_n", Pins(1)),
|
Subsignal("rst_n", Pins(1)),
|
||||||
Subsignal("mdio", Pins(1)),
|
Subsignal("mdio", Pins(1)),
|
||||||
Subsignal("mdc", Pins(1)),
|
Subsignal("mdc", Pins(1)),
|
||||||
|
@ -82,10 +82,10 @@ _io = [
|
||||||
),
|
),
|
||||||
|
|
||||||
# RMII PHY Pads
|
# RMII PHY Pads
|
||||||
("rmii_eth_clocks", 0,
|
("rmii_clocks", 0,
|
||||||
Subsignal("ref_clk", Pins(1))
|
Subsignal("ref_clk", Pins(1))
|
||||||
),
|
),
|
||||||
("rmii_eth", 0,
|
("rmii", 0,
|
||||||
Subsignal("rst_n", Pins(1)),
|
Subsignal("rst_n", Pins(1)),
|
||||||
Subsignal("rx_data", Pins(2)),
|
Subsignal("rx_data", Pins(2)),
|
||||||
Subsignal("crs_dv", Pins(1)),
|
Subsignal("crs_dv", Pins(1)),
|
||||||
|
@ -96,12 +96,12 @@ _io = [
|
||||||
),
|
),
|
||||||
|
|
||||||
# GMII PHY Pads
|
# GMII PHY Pads
|
||||||
("gmii_eth_clocks", 0,
|
("gmii_clocks", 0,
|
||||||
Subsignal("tx", Pins(1)),
|
Subsignal("tx", Pins(1)),
|
||||||
Subsignal("gtx", Pins(1)),
|
Subsignal("gtx", Pins(1)),
|
||||||
Subsignal("rx", Pins(1))
|
Subsignal("rx", Pins(1))
|
||||||
),
|
),
|
||||||
("gmii_eth", 0,
|
("gmii", 0,
|
||||||
Subsignal("rst_n", Pins(1)),
|
Subsignal("rst_n", Pins(1)),
|
||||||
Subsignal("int_n", Pins(1)),
|
Subsignal("int_n", Pins(1)),
|
||||||
Subsignal("mdio", Pins(1)),
|
Subsignal("mdio", Pins(1)),
|
||||||
|
@ -117,11 +117,11 @@ _io = [
|
||||||
),
|
),
|
||||||
|
|
||||||
# RGMII PHY Pads
|
# RGMII PHY Pads
|
||||||
("rgmii_eth_clocks", 0,
|
("rgmii_clocks", 0,
|
||||||
Subsignal("tx", Pins(1)),
|
Subsignal("tx", Pins(1)),
|
||||||
Subsignal("rx", Pins(1))
|
Subsignal("rx", Pins(1))
|
||||||
),
|
),
|
||||||
("rgmii_eth", 0,
|
("rgmii", 0,
|
||||||
Subsignal("rst_n", Pins(1)),
|
Subsignal("rst_n", Pins(1)),
|
||||||
Subsignal("int_n", Pins(1)),
|
Subsignal("int_n", Pins(1)),
|
||||||
Subsignal("mdio", Pins(1)),
|
Subsignal("mdio", Pins(1)),
|
||||||
|
@ -133,7 +133,7 @@ _io = [
|
||||||
),
|
),
|
||||||
|
|
||||||
# SGMII PHY Pads
|
# SGMII PHY Pads
|
||||||
("sgmii_eth", 0,
|
("sgmii", 0,
|
||||||
Subsignal("refclk200", Pins(1)),
|
Subsignal("refclk200", Pins(1)),
|
||||||
Subsignal("txp", Pins(1)),
|
Subsignal("txp", Pins(1)),
|
||||||
Subsignal("txn", Pins(1)),
|
Subsignal("txn", Pins(1)),
|
||||||
|
@ -201,24 +201,24 @@ class PHYCore(SoCMini):
|
||||||
# MII.
|
# MII.
|
||||||
if phy in [liteeth_phys.LiteEthPHYMII]:
|
if phy in [liteeth_phys.LiteEthPHYMII]:
|
||||||
ethphy = phy(
|
ethphy = phy(
|
||||||
clock_pads = platform.request("mii_eth_clocks"),
|
clock_pads = platform.request("mii_clocks"),
|
||||||
pads = platform.request("mii_eth"))
|
pads = platform.request("mii"))
|
||||||
# RMII.
|
# RMII.
|
||||||
elif phy in [liteeth_phys.LiteEthPHYRMII]:
|
elif phy in [liteeth_phys.LiteEthPHYRMII]:
|
||||||
ethphy = phy(
|
ethphy = phy(
|
||||||
refclk_cd = None,
|
refclk_cd = None,
|
||||||
clock_pads = platform.request("rmii_eth_clocks"),
|
clock_pads = platform.request("rmii_clocks"),
|
||||||
pads = platform.request("rmii_eth"))
|
pads = platform.request("rmii"))
|
||||||
# GMII.
|
# GMII.
|
||||||
elif phy in [liteeth_phys.LiteEthPHYGMII]:
|
elif phy in [liteeth_phys.LiteEthPHYGMII]:
|
||||||
ethphy = phy(
|
ethphy = phy(
|
||||||
clock_pads = platform.request("gmii_eth_clocks"),
|
clock_pads = platform.request("gmii_clocks"),
|
||||||
pads = platform.request("gmii_eth"))
|
pads = platform.request("gmii"))
|
||||||
# GMII / MII.
|
# GMII / MII.
|
||||||
elif phy in [liteeth_phys.LiteEthPHYGMIIMII]:
|
elif phy in [liteeth_phys.LiteEthPHYGMIIMII]:
|
||||||
ethphy = phy(
|
ethphy = phy(
|
||||||
clock_pads = platform.request("gmii_eth_clocks"),
|
clock_pads = platform.request("gmii_clocks"),
|
||||||
pads = platform.request("gmii_eth"),
|
pads = platform.request("gmii"),
|
||||||
clk_freq = self.clk_freq)
|
clk_freq = self.clk_freq)
|
||||||
# RGMII.
|
# RGMII.
|
||||||
elif phy in [
|
elif phy in [
|
||||||
|
@ -226,8 +226,8 @@ class PHYCore(SoCMini):
|
||||||
liteeth_phys.LiteEthECP5PHYRGMII,
|
liteeth_phys.LiteEthECP5PHYRGMII,
|
||||||
]:
|
]:
|
||||||
ethphy = phy(
|
ethphy = phy(
|
||||||
clock_pads = platform.request("rgmii_eth_clocks"),
|
clock_pads = platform.request("rgmii_clocks"),
|
||||||
pads = platform.request("rgmii_eth"),
|
pads = platform.request("rgmii"),
|
||||||
tx_delay = core_config.get("phy_tx_delay", 2e-9),
|
tx_delay = core_config.get("phy_tx_delay", 2e-9),
|
||||||
rx_delay = core_config.get("phy_rx_delay", 2e-9),
|
rx_delay = core_config.get("phy_rx_delay", 2e-9),
|
||||||
with_hw_init_reset = False) # FIXME: required since sys_clk = eth_rx_clk.
|
with_hw_init_reset = False) # FIXME: required since sys_clk = eth_rx_clk.
|
||||||
|
@ -239,7 +239,7 @@ class PHYCore(SoCMini):
|
||||||
liteeth_phys.USP_GTH_1000BASEX,
|
liteeth_phys.USP_GTH_1000BASEX,
|
||||||
liteeth_phys.USP_GTY_1000BASEX,
|
liteeth_phys.USP_GTY_1000BASEX,
|
||||||
]:
|
]:
|
||||||
ethphy_pads = platform.request("sgmii_eth")
|
ethphy_pads = platform.request("sgmii")
|
||||||
ethphy = phy(
|
ethphy = phy(
|
||||||
refclk_or_clk_pads = ethphy_pads.refclk200,
|
refclk_or_clk_pads = ethphy_pads.refclk200,
|
||||||
data_pads = ethphy_pads,
|
data_pads = ethphy_pads,
|
||||||
|
|
Loading…
Reference in New Issue