From 5b511e42b9e8303dc533c89f7bf469b2f3a8da6e Mon Sep 17 00:00:00 2001 From: kooistra <kooistra@astron.nl> Date: Thu, 1 Dec 2022 08:58:51 +0100 Subject: [PATCH] Redefine UDP port for eth_tester. --- libraries/io/eth/src/vhdl/eth_tester_pkg.vhd | 6 ++++-- libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/io/eth/src/vhdl/eth_tester_pkg.vhd b/libraries/io/eth/src/vhdl/eth_tester_pkg.vhd index defeba8d5c..4d66ad7c5a 100644 --- a/libraries/io/eth/src/vhdl/eth_tester_pkg.vhd +++ b/libraries/io/eth/src/vhdl/eth_tester_pkg.vhd @@ -107,8 +107,10 @@ PACKAGE eth_tester_pkg is CONSTANT c_eth_tester_ip_src_addr_31_16 : STD_LOGIC_VECTOR(15 DOWNTO 0) := x"0A63"; CONSTANT c_eth_tester_udp_src_port_15_8 : STD_LOGIC_VECTOR( 7 DOWNTO 0) := x"E0"; - -- Default eth_tester Rx UDP port for single stream via 1GbE-II - CONSTANT c_eth_tester_eth1g_II_rx_udp_port : STD_LOGIC_VECTOR(15 DOWNTO 0) := TO_UVEC(6001, 16); -- 0x1771 = 6001 + -- Default eth_tester UDP port for first stream via 1GbE. + -- Do not use UDP port 0x1388 = 5000 for eth_tester, because port 5000 is + -- used for M&C via 1GbE-I. + CONSTANT c_eth_tester_udp_port : STD_LOGIC_VECTOR(15 DOWNTO 0) := TO_UVEC(6001, 16); -- 0x1771 = 6001 TYPE t_eth_tester_app_header IS RECORD dp_length : STD_LOGIC_VECTOR(15 DOWNTO 0); diff --git a/libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd b/libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd index 93ca1f7791..e202e3b19b 100644 --- a/libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd +++ b/libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd @@ -37,7 +37,7 @@ PACKAGE tb_eth_tester_pkg is CONSTANT c_eth_tester_eth_dst_mac : STD_LOGIC_VECTOR(47 DOWNTO 0) := x"001B217176B9"; -- 001B217176B9 = DOP36-enp2s0 CONSTANT c_eth_tester_ip_dst_addr : STD_LOGIC_VECTOR(31 DOWNTO 0) := x"0A6300FE"; -- 0A6300FE = '10.99.0.254' = DOP36-enp2s0 - CONSTANT c_eth_tester_udp_dst_port : STD_LOGIC_VECTOR(15 DOWNTO 0) := c_eth_tester_eth1g_II_rx_udp_port; + CONSTANT c_eth_tester_udp_dst_port : STD_LOGIC_VECTOR(15 DOWNTO 0) := c_eth_tester_udp_port; -- Ethernet packet length in octets inclduing eth header and CRC FUNCTION func_eth_tester_eth_packet_length(block_len : NATURAL) RETURN NATURAL; -- GitLab