liteeth/phy/gmii : set tx_er to 0 only if it exits
This commit is contained in:
parent
408d0fd2dd
commit
2327710387
|
@ -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)
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue