simulations working with litex and vpi

This commit is contained in:
Florent Kermarrec 2015-11-13 15:11:57 +01:00
parent 7b9dc92b0b
commit d84d610104
8 changed files with 27 additions and 28 deletions

View File

@ -1,8 +1,8 @@
from litex.gen.fhdl.std import *
from litex.gen.bus import wishbone
from litex.gen.bus.transactions import *
from litex.gen import *
from litex.gen.sim.generic import run_simulation
from litex.soc.interconnect import wishbone
from liteeth.common import *
from liteeth.core.mac import LiteEthMAC
from liteeth.core.arp import LiteEthARP

View File

@ -1,9 +1,8 @@
import random
import copy
from copy import deepcopy
from litex.gen.fhdl.std import *
from litex.gen.flow.actor import Sink, Source
from litex.gen.genlib.record import *
from litex.gen import *
from litex.soc.interconnect.stream import Sink, Source
from liteeth.common import *
@ -49,8 +48,8 @@ def comp(p1, p2):
def check(p1, p2):
p1 = copy.deepcopy(p1)
p2 = copy.deepcopy(p2)
p1 = deepcopy(p1)
p2 = deepcopy(p2)
if isinstance(p1, int):
return 0, 1, int(p1 != p2)
else:
@ -94,7 +93,7 @@ class PacketStreamer(Module):
self.packet.done = True
def send(self, packet):
packet = copy.deepcopy(packet)
packet = deepcopy(packet)
self.packets.append(packet)
return packet

View File

@ -1,8 +1,8 @@
from litex.gen.fhdl.std import *
from litex.gen.bus import wishbone
from litex.gen.bus.transactions import *
from litex.gen import *
from litex.gen.sim.generic import run_simulation
from litex.soc.interconnect import wishbone
from liteeth.common import *
from liteeth.core import LiteEthUDPIPCore
from liteeth.frontend.etherbone import LiteEthEtherbone

View File

@ -1,8 +1,8 @@
from litex.gen.fhdl.std import *
from litex.gen.bus import wishbone
from litex.gen.bus.transactions import *
from litex.gen import *
from litex.gen.sim.generic import run_simulation
from litex.soc.interconnect import wishbone
from liteeth.common import *
from liteeth.core import LiteEthIPCore

View File

@ -1,8 +1,8 @@
from litex.gen.fhdl.std import *
from litex.gen.bus import wishbone
from litex.gen.bus.transactions import *
from litex.gen import *
from litex.gen.sim.generic import run_simulation
from litex.soc.interconnect import wishbone
from liteeth.common import *
from liteeth.core import LiteEthIPCore

View File

@ -1,8 +1,8 @@
from litex.gen.fhdl.std import *
from litex.gen.bus import wishbone
from litex.gen.bus.transactions import *
from litex.gen import *
from litex.gen.sim.generic import run_simulation
from litex.soc.interconnect import wishbone
from liteeth.common import *
from liteeth.core.mac.core import LiteEthMACCore

View File

@ -1,8 +1,8 @@
from litex.gen.fhdl.std import *
from litex.gen.bus import wishbone
from litex.gen.bus.transactions import *
from litex.gen import *
from litex.gen.sim.generic import run_simulation
from litex.soc.interconnect import wishbone
from liteeth.common import *
from liteeth.core.mac import LiteEthMAC

View File

@ -1,8 +1,8 @@
from litex.gen.fhdl.std import *
from litex.gen.bus import wishbone
from litex.gen.bus.transactions import *
from litex.gen import *
from litex.gen.sim.generic import run_simulation
from litex.soc.interconnect import wishbone
from liteeth.common import *
from liteeth.core import LiteEthUDPIPCore