Skip to content

Commit aab5d63

Browse files
committed
bench/sim: Update.
1 parent b243b3b commit aab5d63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bench/sim.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ def __init__(self, host_ip="192.168.1.100", host_udp_port=2000):
3434
# Sampler --------------------------------------------------------------------------------
3535
data = Signal(8)
3636
self.sync += data.eq(data + 1)
37-
self.submodules.sampler = Sampler(data)
37+
self.sampler = Sampler(data)
3838

3939
# DRAMFIFO ---------------------------------------------------------------------------------
4040
from litedram.frontend.fifo import LiteDRAMFIFO
41-
self.submodules.fifo = LiteDRAMFIFO(
41+
self.fifo = LiteDRAMFIFO(
4242
data_width = 8,
4343
base = 0x00000000,
4444
depth = 0x01000000, # 16MB
@@ -49,10 +49,10 @@ def __init__(self, host_ip="192.168.1.100", host_udp_port=2000):
4949
# UDPStreamer ------------------------------------------------------------------------------
5050
from liteeth.common import convert_ip
5151
from liteeth.frontend.stream import LiteEthStream2UDPTX
52-
udp_port = self.ethcore.udp.crossbar.get_port(host_udp_port, dw=8)
52+
udp_port = self.ethcore_etherbone.udp.crossbar.get_port(host_udp_port, dw=8)
5353
udp_streamer = LiteEthStream2UDPTX(
5454
ip_address = convert_ip(host_ip),
55-
udp_port = host_udp_port,
55+
udp_port = host_udp_port,trac
5656
fifo_depth = 1024
5757
)
5858
udp_streamer = ClockDomainsRenamer("eth_tx")(udp_streamer)

0 commit comments

Comments
 (0)