liteeth_gen: Expose reset.

This commit is contained in:
Florent Kermarrec 2023-07-10 12:59:17 +02:00
parent 7537dcb0fc
commit 64cceb24b1
1 changed files with 5 additions and 1 deletions

View File

@ -146,6 +146,7 @@ _io = [
# SGMII PHY Pads # SGMII PHY Pads
("sgmii", 0, ("sgmii", 0,
Subsignal("refclk", Pins(1)), Subsignal("refclk", Pins(1)),
Subsignal("rst", Pins(1)),
Subsignal("txp", Pins(1)), Subsignal("txp", Pins(1)),
Subsignal("txn", Pins(1)), Subsignal("txn", Pins(1)),
Subsignal("rxp", Pins(1)), Subsignal("rxp", Pins(1)),
@ -261,7 +262,10 @@ class PHYCore(SoCMini):
rx_polarity = 0, # Add support to liteeth_gen if useful. rx_polarity = 0, # Add support to liteeth_gen if useful.
tx_polarity = 0, # Add support to liteeth_gen if useful. tx_polarity = 0, # Add support to liteeth_gen if useful.
) )
self.comb += ethphy_pads.link_up.eq(ethphy.link_up) self.comb += [
ethphy.reset.eq(ethphy_pads.rst),
ethphy_pads.link_up.eq(ethphy.link_up),
]
else: else:
raise ValueError("Unsupported PHY") raise ValueError("Unsupported PHY")
self.ethphy = ethphy self.ethphy = ethphy