From 64cceb24b1e129768dff74e16085ac6a92e4c661 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 10 Jul 2023 12:59:17 +0200 Subject: [PATCH] liteeth_gen: Expose reset. --- liteeth/gen.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/liteeth/gen.py b/liteeth/gen.py index c7ddb65..c3a663c 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -146,6 +146,7 @@ _io = [ # SGMII PHY Pads ("sgmii", 0, Subsignal("refclk", Pins(1)), + Subsignal("rst", Pins(1)), Subsignal("txp", Pins(1)), Subsignal("txn", Pins(1)), Subsignal("rxp", Pins(1)), @@ -261,7 +262,10 @@ class PHYCore(SoCMini): rx_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: raise ValueError("Unsupported PHY") self.ethphy = ethphy