liteeth: fix import (from liteeth --> from misoclib.liteeth)
This commit is contained in:
parent
60effe1d95
commit
00862a383c
|
@ -1,10 +1,10 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.mac import LiteEthMAC
|
||||
from liteeth.core.arp import LiteEthARP
|
||||
from liteeth.core.ip import LiteEthIP
|
||||
from liteeth.core.udp import LiteEthUDP
|
||||
from liteeth.core.icmp import LiteEthICMP
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.mac import LiteEthMAC
|
||||
from misoclib.liteeth.core.arp import LiteEthARP
|
||||
from misoclib.liteeth.core.ip import LiteEthIP
|
||||
from misoclib.liteeth.core.udp import LiteEthUDP
|
||||
from misoclib.liteeth.core.icmp import LiteEthICMP
|
||||
|
||||
class LiteEthIPCore(Module, AutoCSR):
|
||||
def __init__(self, phy, mac_address, ip_address, clk_freq):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from liteeth.generic.packetizer import LiteEthPacketizer
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from misoclib.liteeth.generic.packetizer import LiteEthPacketizer
|
||||
|
||||
_arp_table_layout = [
|
||||
("reply", 1),
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.generic.arbiter import Arbiter
|
||||
from liteeth.generic.dispatcher import Dispatcher
|
||||
from liteeth.core.etherbone.packet import *
|
||||
from liteeth.core.etherbone.probe import *
|
||||
from liteeth.core.etherbone.record import *
|
||||
from liteeth.core.etherbone.wishbone import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.generic.arbiter import Arbiter
|
||||
from misoclib.liteeth.generic.dispatcher import Dispatcher
|
||||
from misoclib.liteeth.core.etherbone.packet import *
|
||||
from misoclib.liteeth.core.etherbone.probe import *
|
||||
from misoclib.liteeth.core.etherbone.record import *
|
||||
from misoclib.liteeth.core.etherbone.wishbone import *
|
||||
|
||||
class LiteEthEtherbone(Module):
|
||||
def __init__(self, udp, udp_port):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from liteeth.generic.packetizer import LiteEthPacketizer
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from misoclib.liteeth.generic.packetizer import LiteEthPacketizer
|
||||
|
||||
class LiteEthEtherbonePacketPacketizer(LiteEthPacketizer):
|
||||
def __init__(self):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthEtherboneProbe(Module):
|
||||
def __init__(self):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from liteeth.generic.packetizer import LiteEthPacketizer
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from misoclib.liteeth.generic.packetizer import LiteEthPacketizer
|
||||
|
||||
class LiteEthEtherboneRecordPacketizer(LiteEthPacketizer):
|
||||
def __init__(self):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from migen.bus import wishbone
|
||||
|
||||
class LiteEthEtherboneWishboneMaster(Module):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from liteeth.generic.packetizer import LiteEthPacketizer
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from misoclib.liteeth.generic.packetizer import LiteEthPacketizer
|
||||
|
||||
class LiteEthICMPPacketizer(LiteEthPacketizer):
|
||||
def __init__(self):
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.core.ip.checksum import *
|
||||
from liteeth.core.ip.crossbar import *
|
||||
from liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from liteeth.generic.packetizer import LiteEthPacketizer
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.core.ip.checksum import *
|
||||
from misoclib.liteeth.core.ip.crossbar import *
|
||||
from misoclib.liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from misoclib.liteeth.generic.packetizer import LiteEthPacketizer
|
||||
|
||||
class LiteEthIPV4Packetizer(LiteEthPacketizer):
|
||||
def __init__(self):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthIPV4Checksum(Module):
|
||||
def __init__(self, words_per_clock_cycle=1, skip_checksum=False):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.generic.crossbar import LiteEthCrossbar
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.generic.crossbar import LiteEthCrossbar
|
||||
|
||||
class LiteEthIPV4MasterPort:
|
||||
def __init__(self, dw):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthTTYTX(Module):
|
||||
def __init__(self, ip_address, udp_port, fifo_depth=None):
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.core.udp.crossbar import *
|
||||
from liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from liteeth.generic.packetizer import LiteEthPacketizer
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.core.udp.crossbar import *
|
||||
from misoclib.liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from misoclib.liteeth.generic.packetizer import LiteEthPacketizer
|
||||
|
||||
class LiteEthUDPPacketizer(LiteEthPacketizer):
|
||||
def __init__(self):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
from liteeth.generic.crossbar import LiteEthCrossbar
|
||||
from misoclib.liteeth.generic.crossbar import LiteEthCrossbar
|
||||
|
||||
class LiteEthUDPMasterPort:
|
||||
def __init__(self, dw):
|
||||
|
|
|
@ -10,7 +10,7 @@ from migen.bank.description import CSRStatus
|
|||
from mibuild import tools
|
||||
from mibuild.xilinx_common import *
|
||||
|
||||
from liteeth.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
|
||||
def get_csr_csv(regions):
|
||||
r = ""
|
||||
|
|
|
@ -14,10 +14,10 @@ from litescope.bridge.uart2wb import LiteScopeUART2WB
|
|||
from litescope.frontend.la import LiteScopeLA
|
||||
from litescope.core.port import LiteScopeTerm
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.phy.gmii import LiteEthPHYGMII
|
||||
from liteeth.core import LiteEthUDPIPCore
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.phy.gmii import LiteEthPHYGMII
|
||||
from misoclib.liteeth.core import LiteEthUDPIPCore
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform):
|
||||
|
|
|
@ -2,11 +2,11 @@ from litescope.common import *
|
|||
from litescope.frontend.la import LiteScopeLA
|
||||
from litescope.core.port import LiteScopeTerm
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
from targets.base import BaseSoC
|
||||
from liteeth.core.etherbone import LiteEthEtherbone
|
||||
from misoclib.liteeth.core.etherbone import LiteEthEtherbone
|
||||
|
||||
class EtherboneSoC(BaseSoC):
|
||||
default_platform = "kc705"
|
||||
|
|
|
@ -2,11 +2,11 @@ from litescope.common import *
|
|||
from litescope.frontend.la import LiteScopeLA
|
||||
from litescope.core.port import LiteScopeTerm
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
from targets.base import BaseSoC
|
||||
from liteeth.core.tty import LiteEthTTY
|
||||
from misoclib.liteeth.core.tty import LiteEthTTY
|
||||
|
||||
class TTYSoC(BaseSoC):
|
||||
default_platform = "kc705"
|
||||
|
|
|
@ -2,8 +2,8 @@ from litescope.common import *
|
|||
from litescope.frontend.la import LiteScopeLA
|
||||
from litescope.core.port import LiteScopeTerm
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
from targets.base import BaseSoC
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import socket, time
|
||||
from liteeth.test.model.etherbone import *
|
||||
from misoclib.liteeth.test.model.etherbone import *
|
||||
|
||||
SRAM_BASE = 0x02000000
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from liteeth.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
|
||||
# Generic classes
|
||||
class Port:
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from collections import OrderedDict
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.generic.arbiter import Arbiter
|
||||
from liteeth.generic.dispatcher import Dispatcher
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.generic.arbiter import Arbiter
|
||||
from misoclib.liteeth.generic.dispatcher import Dispatcher
|
||||
|
||||
class LiteEthCrossbar(Module):
|
||||
def __init__(self, master_port, dispatch_param):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
def _decode_header(h_dict, h_signal, obj):
|
||||
r = []
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
def _encode_header(h_dict, h_signal, obj):
|
||||
r = []
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.mac.common import *
|
||||
from liteeth.mac.core import LiteEthMACCore
|
||||
from liteeth.mac.frontend.wishbone import LiteEthMACWishboneInterface
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.mac.common import *
|
||||
from misoclib.liteeth.mac.core import LiteEthMACCore
|
||||
from misoclib.liteeth.mac.frontend.wishbone import LiteEthMACWishboneInterface
|
||||
|
||||
class LiteEthMAC(Module, AutoCSR):
|
||||
def __init__(self, phy, dw, interface="crossbar", endianness="big",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from liteeth.generic.packetizer import LiteEthPacketizer
|
||||
from liteeth.generic.crossbar import LiteEthCrossbar
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.generic.depacketizer import LiteEthDepacketizer
|
||||
from misoclib.liteeth.generic.packetizer import LiteEthPacketizer
|
||||
from misoclib.liteeth.generic.crossbar import LiteEthCrossbar
|
||||
|
||||
class LiteEthMACDepacketizer(LiteEthDepacketizer):
|
||||
def __init__(self):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.mac.core import gap, preamble, crc, padding, last_be
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.mac.core import gap, preamble, crc, padding, last_be
|
||||
|
||||
class LiteEthMACCore(Module, AutoCSR):
|
||||
def __init__(self, phy, dw, endianness="big", with_hw_preamble_crc=True):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthMACCRCEngine(Module):
|
||||
"""Cyclic Redundancy Check Engine
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthMACGap(Module):
|
||||
def __init__(self, dw, ack_on_gap=False):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthMACTXLastBE(Module):
|
||||
def __init__(self, dw):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthMACPaddingInserter(Module):
|
||||
def __init__(self, dw, packet_min_length):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthMACPreambleInserter(Module):
|
||||
def __init__(self, dw):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
from migen.bank.description import *
|
||||
from migen.bank.eventmanager import *
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from liteeth.mac.frontend import sram
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
from misoclib.liteeth.mac.frontend import sram
|
||||
|
||||
from migen.bus import wishbone
|
||||
from migen.fhdl.simplify import FullMemoryWE
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthPHYGMIITX(Module):
|
||||
def __init__(self, pads):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthPHYLoopbackCRG(Module, AutoCSR):
|
||||
def __init__(self):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthPHYMIITX(Module):
|
||||
def __init__(self, pads):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.generic import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.generic import *
|
||||
|
||||
class LiteEthPHYSimCRG(Module, AutoCSR):
|
||||
def __init__(self):
|
||||
|
|
|
@ -3,12 +3,12 @@ from migen.bus import wishbone
|
|||
from migen.bus.transactions import *
|
||||
from migen.sim.generic import run_simulation
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.mac import LiteEthMAC
|
||||
from liteeth.core.arp import LiteEthARP
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.mac import LiteEthMAC
|
||||
from misoclib.liteeth.core.arp import LiteEthARP
|
||||
|
||||
from liteeth.test.common import *
|
||||
from liteeth.test.model import phy, mac, arp
|
||||
from misoclib.liteeth.test.common import *
|
||||
from misoclib.liteeth.test.model import phy, mac, arp
|
||||
|
||||
ip_address = 0x12345678
|
||||
mac_address = 0x12345678abcd
|
||||
|
|
|
@ -4,7 +4,7 @@ from migen.fhdl.std import *
|
|||
from migen.flow.actor import Sink, Source
|
||||
from migen.genlib.record import *
|
||||
|
||||
from liteeth.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
|
||||
def print_with_prefix(s, prefix=""):
|
||||
if not isinstance(s, str):
|
||||
|
|
|
@ -3,12 +3,12 @@ from migen.bus import wishbone
|
|||
from migen.bus.transactions import *
|
||||
from migen.sim.generic import run_simulation
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.core import LiteEthUDPIPCore
|
||||
from liteeth.core.etherbone import LiteEthEtherbone
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.core import LiteEthUDPIPCore
|
||||
from misoclib.liteeth.core.etherbone import LiteEthEtherbone
|
||||
|
||||
from liteeth.test.common import *
|
||||
from liteeth.test.model import phy, mac, arp, ip, udp, etherbone
|
||||
from misoclib.liteeth.test.common import *
|
||||
from misoclib.liteeth.test.model import phy, mac, arp, ip, udp, etherbone
|
||||
|
||||
ip_address = 0x12345678
|
||||
mac_address = 0x12345678abcd
|
||||
|
|
|
@ -3,15 +3,15 @@ from migen.bus import wishbone
|
|||
from migen.bus.transactions import *
|
||||
from migen.sim.generic import run_simulation
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.core import LiteEthIPCore
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.core import LiteEthIPCore
|
||||
|
||||
from liteeth.test.common import *
|
||||
from liteeth.test.model.dumps import *
|
||||
from liteeth.test.model.mac import *
|
||||
from liteeth.test.model.ip import *
|
||||
from liteeth.test.model.icmp import *
|
||||
from liteeth.test.model import phy, mac, arp, ip, icmp
|
||||
from misoclib.liteeth.test.common import *
|
||||
from misoclib.liteeth.test.model.dumps import *
|
||||
from misoclib.liteeth.test.model.mac import *
|
||||
from misoclib.liteeth.test.model.ip import *
|
||||
from misoclib.liteeth.test.model.icmp import *
|
||||
from misoclib.liteeth.test.model import phy, mac, arp, ip, icmp
|
||||
|
||||
ip_address = 0x12345678
|
||||
mac_address = 0x12345678abcd
|
||||
|
|
|
@ -3,11 +3,11 @@ from migen.bus import wishbone
|
|||
from migen.bus.transactions import *
|
||||
from migen.sim.generic import run_simulation
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.core import LiteEthIPCore
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.core import LiteEthIPCore
|
||||
|
||||
from liteeth.test.common import *
|
||||
from liteeth.test.model import phy, mac, arp, ip
|
||||
from misoclib.liteeth.test.common import *
|
||||
from misoclib.liteeth.test.model import phy, mac, arp, ip
|
||||
|
||||
ip_address = 0x12345678
|
||||
mac_address = 0x12345678abcd
|
||||
|
|
|
@ -3,11 +3,11 @@ from migen.bus import wishbone
|
|||
from migen.bus.transactions import *
|
||||
from migen.sim.generic import run_simulation
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.mac.core import LiteEthMACCore
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.mac.core import LiteEthMACCore
|
||||
|
||||
from liteeth.test.common import *
|
||||
from liteeth.test.model import phy, mac
|
||||
from misoclib.liteeth.test.common import *
|
||||
from misoclib.liteeth.test.model import phy, mac
|
||||
|
||||
class TB(Module):
|
||||
def __init__(self):
|
||||
|
|
|
@ -3,11 +3,11 @@ from migen.bus import wishbone
|
|||
from migen.bus.transactions import *
|
||||
from migen.sim.generic import run_simulation
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.mac import LiteEthMAC
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.mac import LiteEthMAC
|
||||
|
||||
from liteeth.test.common import *
|
||||
from liteeth.test.model import phy, mac
|
||||
from misoclib.liteeth.test.common import *
|
||||
from misoclib.liteeth.test.model import phy, mac
|
||||
|
||||
class WishboneMaster:
|
||||
def __init__(self, obj):
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import math
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.test.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.test.common import *
|
||||
|
||||
from liteeth.test.model import mac
|
||||
from misoclib.liteeth.test.model import mac
|
||||
|
||||
def print_arp(s):
|
||||
print_with_prefix(s, "[ARP]")
|
||||
|
@ -118,8 +118,8 @@ class ARP(Module):
|
|||
request.target_ip = ip_address
|
||||
|
||||
if __name__ == "__main__":
|
||||
from liteeth.test.model.dumps import *
|
||||
from liteeth.test.model.mac import *
|
||||
from misoclib.liteeth.test.model.dumps import *
|
||||
from misoclib.liteeth.test.model.mac import *
|
||||
errors = 0
|
||||
# ARP request
|
||||
packet = MACPacket(arp_request)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import math, copy
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.test.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.test.common import *
|
||||
|
||||
from liteeth.test.model import udp
|
||||
from misoclib.liteeth.test.model import udp
|
||||
|
||||
def print_etherbone(s):
|
||||
print_with_prefix(s, "[ETHERBONE]")
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import math
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.test.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.test.common import *
|
||||
|
||||
from liteeth.test.model import ip
|
||||
from misoclib.liteeth.test.model import ip
|
||||
|
||||
def print_icmp(s):
|
||||
print_with_prefix(s, "[ICMP]")
|
||||
|
@ -79,9 +79,9 @@ class ICMP(Module):
|
|||
pass
|
||||
|
||||
if __name__ == "__main__":
|
||||
from liteeth.test.model.dumps import *
|
||||
from liteeth.test.model.mac import *
|
||||
from liteeth.test.model.ip import *
|
||||
from misoclib.liteeth.test.model.dumps import *
|
||||
from misoclib.liteeth.test.model.mac import *
|
||||
from misoclib.liteeth.test.model.ip import *
|
||||
errors = 0
|
||||
# ICMP packet
|
||||
packet = MACPacket(ping_request)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import math
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.test.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.test.common import *
|
||||
|
||||
from liteeth.test.model import mac
|
||||
from misoclib.liteeth.test.model import mac
|
||||
|
||||
def print_ip(s):
|
||||
print_with_prefix(s, "[IP]")
|
||||
|
@ -124,8 +124,8 @@ class IP(Module):
|
|||
self.icmp_callback(packet)
|
||||
|
||||
if __name__ == "__main__":
|
||||
from liteeth.test.model.dumps import *
|
||||
from liteeth.test.model.mac import *
|
||||
from misoclib.liteeth.test.model.dumps import *
|
||||
from misoclib.liteeth.test.model.mac import *
|
||||
errors = 0
|
||||
# UDP packet
|
||||
packet = MACPacket(udp)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import math, binascii
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.test.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.test.common import *
|
||||
|
||||
def print_mac(s):
|
||||
print_with_prefix(s, "[MAC]")
|
||||
|
@ -127,7 +127,7 @@ class MAC(Module):
|
|||
raise ValueError # XXX handle this properly
|
||||
|
||||
if __name__ == "__main__":
|
||||
from liteeth.test.model.dumps import *
|
||||
from misoclib.liteeth.test.model.dumps import *
|
||||
errors = 0
|
||||
packet = MACPacket(arp_request)
|
||||
packet.decode_remove_header()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from liteeth.common import *
|
||||
from liteeth.test.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.test.common import *
|
||||
|
||||
def print_phy(s):
|
||||
print_with_prefix(s, "[PHY]")
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import math
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.test.common import *
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.test.common import *
|
||||
|
||||
from liteeth.test.model import ip
|
||||
from misoclib.liteeth.test.model import ip
|
||||
|
||||
def print_udp(s):
|
||||
print_with_prefix(s, "[UDP]")
|
||||
|
@ -90,9 +90,9 @@ class UDP(Module):
|
|||
self.etherbone_callback(packet)
|
||||
|
||||
if __name__ == "__main__":
|
||||
from liteeth.test.model.dumps import *
|
||||
from liteeth.test.model.mac import *
|
||||
from liteeth.test.model.ip import *
|
||||
from misoclib.liteeth.test.model.dumps import *
|
||||
from misoclib.liteeth.test.model.mac import *
|
||||
from misoclib.liteeth.test.model.ip import *
|
||||
errors = 0
|
||||
# UDP packet
|
||||
packet = MACPacket(udp)
|
||||
|
|
|
@ -3,11 +3,11 @@ from migen.bus import wishbone
|
|||
from migen.bus.transactions import *
|
||||
from migen.sim.generic import run_simulation
|
||||
|
||||
from liteeth.common import *
|
||||
from liteeth.core import LiteEthUDPIPCore
|
||||
from misoclib.liteeth.common import *
|
||||
from misoclib.liteeth.core import LiteEthUDPIPCore
|
||||
|
||||
from liteeth.test.common import *
|
||||
from liteeth.test.model import phy, mac, arp, ip, udp
|
||||
from misoclib.liteeth.test.common import *
|
||||
from misoclib.liteeth.test.model import phy, mac, arp, ip, udp
|
||||
|
||||
ip_address = 0x12345678
|
||||
mac_address = 0x12345678abcd
|
||||
|
|
|
@ -5,9 +5,8 @@ from misoclib import sdram, spiflash
|
|||
from misoclib.sdram.phy import k7ddrphy
|
||||
from misoclib.gensoc import SDRAMSoC
|
||||
|
||||
from extcores import *
|
||||
from liteeth.phy.gmii import LiteEthPHYGMII
|
||||
from liteeth.mac import LiteEthMAC
|
||||
from misoclib.liteeth.phy.gmii import LiteEthPHYGMII
|
||||
from misoclib.liteeth.mac import LiteEthMAC
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform):
|
||||
|
|
|
@ -8,9 +8,8 @@ from misoclib import sdram, mxcrg, norflash16, framebuffer, gpio
|
|||
from misoclib.sdram.phy import s6ddrphy
|
||||
from misoclib.gensoc import SDRAMSoC
|
||||
|
||||
from extcores import *
|
||||
from liteeth.phy.mii import LiteEthPHYMII
|
||||
from liteeth.mac import LiteEthMAC
|
||||
from misoclib.liteeth.phy.mii import LiteEthPHYMII
|
||||
from misoclib.liteeth.mac import LiteEthMAC
|
||||
|
||||
class _MXClockPads:
|
||||
def __init__(self, platform):
|
||||
|
|
Loading…
Reference in New Issue