core/mac: use fifo_depth of 64 for all phys

This commit is contained in:
Florent Kermarrec 2016-03-15 19:41:53 +01:00
parent 32243934fb
commit c3e15e7f7b
1 changed files with 2 additions and 8 deletions

View File

@ -1,8 +1,6 @@
from liteeth.common import *
from liteeth.core.mac.core import gap, preamble, crc, padding, last_be
from liteeth.phy.model import LiteEthPHYModel
from liteeth.phy.mii import LiteEthPHYMII
from liteeth.phy.rmii import LiteEthPHYRMII
class LiteEthMACCore(Module, AutoCSR):
@ -82,12 +80,8 @@ class LiteEthMACCore(Module, AutoCSR):
rx_pipeline += [rx_converter]
# Cross Domain Crossing
if isinstance(phy, (LiteEthPHYMII, LiteEthPHYRMII)):
fifo_depth = 8
else:
fifo_depth = 64
tx_cdc = stream.AsyncFIFO(eth_phy_description(dw), fifo_depth)
rx_cdc = stream.AsyncFIFO(eth_phy_description(dw), fifo_depth)
tx_cdc = stream.AsyncFIFO(eth_phy_description(dw), 64)
rx_cdc = stream.AsyncFIFO(eth_phy_description(dw), 64)
self.submodules += ClockDomainsRenamer({"write": "sys", "read": "eth_tx"})(tx_cdc)
self.submodules += ClockDomainsRenamer({"write": "eth_rx", "read": "sys"})(rx_cdc)