From: Florent Kermarrec Date: Thu, 12 Feb 2015 11:16:57 +0000 (+0100) Subject: etherbone: probing OK on hardware X-Git-Tag: 24jan2021_ls180~2604^2~21 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0818c292873ef26c07802b0e213665410c61f951;p=litex.git etherbone: probing OK on hardware --- diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 00000000..0556486b --- /dev/null +++ b/test/Makefile @@ -0,0 +1,16 @@ +LEDIR = ../ +PYTHON = python3 + +CMD = PYTHONPATH=$(LEDIR) $(PYTHON) + +test_regs: + $(CMD) test_regs.py + +test_la: + $(CMD) test_la.py + +test_udp: + $(CMD) test_udp.py + +test_etherbone: + $(CMD) test_etherbone.py diff --git a/test/test_etherbone.py b/test/test_etherbone.py new file mode 100644 index 00000000..e11773b1 --- /dev/null +++ b/test/test_etherbone.py @@ -0,0 +1,13 @@ +import socket +from liteeth.test.model.etherbone import * + +SRAM_BASE = 0x02000000 + +import socket +sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + +# test probe +packet = EtherbonePacket() +packet.pf = 1 +packet.encode() +sock.sendto(bytes(packet), ("192.168.1.40", 20000)) diff --git a/test/test_la.py b/test/test_la.py index e73f3713..8bf205fe 100644 --- a/test/test_la.py +++ b/test/test_la.py @@ -15,6 +15,9 @@ conditions = { conditions = { "core_udp_tx_fsm_state" : 1 } +conditions = { + "etherbonesocdevel_master_bus_stb" : 1 +} la.configure_term(port=0, cond=conditions) la.configure_sum("term") # Run Logic Analyzer