1
0
mirror of https://github.com/corundum/corundum.git synced 2025-02-06 08:38:23 +08:00

41 lines
1.3 KiB
Markdown
Raw Normal View History

2019-06-19 23:25:06 -07:00
# Verilog Ethernet VCU118 Example Design
## Introduction
This example design targets the Xilinx VCU118 FPGA board.
The design by default listens to UDP port 1234 at IP address 192.168.1.128 and
will echo back any packets received. The design will also respond correctly
to ARP requests. The design also enables the gigabit Ethernet interface for
testing with a QSFP loopback adapter.
2021-05-04 15:48:12 -07:00
* FPGA: xcvu9p-flga2104-2L-e
* PHY: 25G BASE-R PHY IP core and internal GTY transceiver
2019-06-19 23:25:06 -07:00
## How to build
Run make to build. Ensure that the Xilinx Vivado toolchain components are
in PATH.
## How to test
Run make program to program the VCU118 board with Vivado. Then run
2021-05-04 15:48:12 -07:00
netcat -u 192.168.1.128 1234
to open a UDP connection to port 1234. Any text entered into netcat will be
echoed back after pressing enter.
It is also possible to use hping to test the design by running
hping 192.168.1.128 -2 -p 1234 -d 1024
2019-06-19 23:25:06 -07:00
Note that the gigabit PHY is also enabled for debugging. The gigabit port can
2019-06-19 23:51:04 -07:00
be inserted into the 25G data path between the 25G MAC and 25G PHY so that the
25G interface can be tested with a QSFP loopback adapter. Turn on SW12.1 to
insert the gigabit port into the 25G data path, or off to bypass the gigabit
2019-06-19 23:25:06 -07:00
port. Turn on SW12.2 to place the port in the TX path or off to place the
port in the RX path.