From 2327710387e755a8f76c992aa47313dbc447931d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 17 Mar 2015 12:24:06 +0100 Subject: [PATCH] liteeth/phy/gmii : set tx_er to 0 only if it exits --- misoclib/com/liteeth/phy/gmii.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) ] -- 2.30.2