From: Florent Kermarrec Date: Tue, 17 Mar 2015 11:24:06 +0000 (+0100) Subject: liteeth/phy/gmii : set tx_er to 0 only if it exits X-Git-Tag: 24jan2021_ls180~2481 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2327710387e755a8f76c992aa47313dbc447931d;p=litex.git liteeth/phy/gmii : set tx_er to 0 only if it exits --- diff --git a/misoclib/com/liteeth/phy/gmii.py b/misoclib/com/liteeth/phy/gmii.py index 1b8893a5..3d020b92 100644 --- a/misoclib/com/liteeth/phy/gmii.py +++ b/misoclib/com/liteeth/phy/gmii.py @@ -7,8 +7,9 @@ class LiteEthPHYGMIITX(Module): def __init__(self, pads): self.sink = sink = Sink(eth_phy_description(8)) ### + if hasattr(pads, "tx_er"): + self.sync += pads.tx_er.eq(0) self.sync += [ - pads.tx_er.eq(0), pads.tx_en.eq(sink.stb), pads.tx_data.eq(sink.data) ]