change MAC location (next to phy/core/frontend), keep import retro-compatibility
This commit is contained in:
parent
789dadd8bf
commit
a170acda0f
|
@ -1,11 +1,10 @@
|
||||||
from liteeth.common import *
|
from liteeth.common import *
|
||||||
from liteeth.core.mac import LiteEthMAC
|
from liteeth.mac import LiteEthMAC
|
||||||
from liteeth.core.arp import LiteEthARP
|
from liteeth.core.arp import LiteEthARP
|
||||||
from liteeth.core.ip import LiteEthIP
|
from liteeth.core.ip import LiteEthIP
|
||||||
from liteeth.core.udp import LiteEthUDP
|
from liteeth.core.udp import LiteEthUDP
|
||||||
from liteeth.core.icmp import LiteEthICMP
|
from liteeth.core.icmp import LiteEthICMP
|
||||||
|
|
||||||
|
|
||||||
class LiteEthIPCore(Module, AutoCSR):
|
class LiteEthIPCore(Module, AutoCSR):
|
||||||
def __init__(self, phy, mac_address, ip_address, clk_freq, with_icmp=True):
|
def __init__(self, phy, mac_address, ip_address, clk_freq, with_icmp=True):
|
||||||
self.submodules.mac = LiteEthMAC(phy, 8, interface="crossbar", with_preamble_crc=True)
|
self.submodules.mac = LiteEthMAC(phy, 8, interface="crossbar", with_preamble_crc=True)
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
from liteeth.mac import * # retro-compatibility # FIXME: remove
|
|
@ -1,7 +1,7 @@
|
||||||
from liteeth.common import *
|
from liteeth.common import *
|
||||||
from liteeth.core.mac.common import *
|
from liteeth.mac.common import *
|
||||||
from liteeth.core.mac.core import LiteEthMACCore
|
from liteeth.mac.core import LiteEthMACCore
|
||||||
from liteeth.core.mac.wishbone import LiteEthMACWishboneInterface
|
from liteeth.mac.wishbone import LiteEthMACWishboneInterface
|
||||||
|
|
||||||
|
|
||||||
class LiteEthMAC(Module, AutoCSR):
|
class LiteEthMAC(Module, AutoCSR):
|
|
@ -1,5 +1,5 @@
|
||||||
from liteeth.common import *
|
from liteeth.common import *
|
||||||
from liteeth.core.mac import gap, preamble, crc, padding, last_be
|
from liteeth.mac import gap, preamble, crc, padding, last_be
|
||||||
from liteeth.phy.model import LiteEthPHYModel
|
from liteeth.phy.model import LiteEthPHYModel
|
||||||
|
|
||||||
from migen.genlib.cdc import PulseSynchronizer
|
from migen.genlib.cdc import PulseSynchronizer
|
|
@ -1,7 +1,7 @@
|
||||||
from migen.fhdl.simplify import FullMemoryWE
|
from migen.fhdl.simplify import FullMemoryWE
|
||||||
|
|
||||||
from liteeth.common import *
|
from liteeth.common import *
|
||||||
from liteeth.core.mac import sram
|
from liteeth.mac import sram
|
||||||
|
|
||||||
from litex.soc.interconnect import wishbone
|
from litex.soc.interconnect import wishbone
|
||||||
|
|
Loading…
Reference in New Issue