liteeth/phy/gmii : set tx_er to 0 only if it exits

This commit is contained in:
Florent Kermarrec 2015-03-17 12:24:06 +01:00
parent 408d0fd2dd
commit 2327710387
1 changed files with 2 additions and 1 deletions

View File

@ -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)
]