liteeth_gen/sgmii: Expose link_up status.

This commit is contained in:
Florent Kermarrec 2023-06-28 11:09:19 +02:00
parent 18cd5f234a
commit 15054f6f8e
1 changed files with 7 additions and 5 deletions

View File

@ -138,7 +138,8 @@ _io = [
Subsignal("txp", Pins(1)), Subsignal("txp", Pins(1)),
Subsignal("txn", Pins(1)), Subsignal("txn", Pins(1)),
Subsignal("rxp", Pins(1)), Subsignal("rxp", Pins(1)),
Subsignal("rxn", Pins(1)) Subsignal("rxn", Pins(1)),
Subsignal("link_up", Pins(1)),
), ),
] ]
@ -249,6 +250,7 @@ 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)
else: else:
raise ValueError("Unsupported PHY") raise ValueError("Unsupported PHY")
self.submodules.ethphy = ethphy self.submodules.ethphy = ethphy