Skip to content

Commit

Permalink
liteeth_gen: Expose reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jul 10, 2023
1 parent 7537dcb commit 64cceb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion liteeth/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
# 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)),
Expand Down Expand Up @@ -261,7 +262,10 @@ def __init__(self, platform, core_config):
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
Expand Down

0 comments on commit 64cceb2

Please sign in to comment.