core/mac/core: use fifo depth of 8 for RMII phy

This commit is contained in:
Florent Kermarrec 2015-12-03 18:47:05 +01:00
parent 6006186fe0
commit 17ce01b58e
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ from liteeth.common import *
from liteeth.core.mac.core import gap, preamble, crc, padding, last_be from liteeth.core.mac.core import gap, preamble, crc, padding, last_be
from liteeth.phy.model import LiteEthPHYModel from liteeth.phy.model import LiteEthPHYModel
from liteeth.phy.mii import LiteEthPHYMII from liteeth.phy.mii import LiteEthPHYMII
from liteeth.phy.rmii import LiteEthPHYRMII
class LiteEthMACCore(Module, AutoCSR): class LiteEthMACCore(Module, AutoCSR):
@ -81,7 +82,7 @@ class LiteEthMACCore(Module, AutoCSR):
rx_pipeline += [rx_converter] rx_pipeline += [rx_converter]
# Cross Domain Crossing # Cross Domain Crossing
if isinstance(phy, LiteEthPHYMII): if isinstance(phy, (LiteEthPHYMII, LiteEthPHYRMII)):
fifo_depth = 8 fifo_depth = 8
else: else:
fifo_depth = 64 fifo_depth = 64