From bbdb68069357ac957c065bae80f6440a5bbc703f Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Mon, 21 Nov 2022 16:59:35 +0100 Subject: [PATCH] Define c_eth_tester_eth1g_II_rx_udp_port = 6001. --- libraries/io/eth/src/vhdl/eth_tester_pkg.vhd | 3 +++ libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/io/eth/src/vhdl/eth_tester_pkg.vhd b/libraries/io/eth/src/vhdl/eth_tester_pkg.vhd index 207728be05..defeba8d5c 100644 --- a/libraries/io/eth/src/vhdl/eth_tester_pkg.vhd +++ b/libraries/io/eth/src/vhdl/eth_tester_pkg.vhd @@ -107,6 +107,9 @@ 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 + TYPE t_eth_tester_app_header IS RECORD dp_length : STD_LOGIC_VECTOR(15 DOWNTO 0); dp_reserved : STD_LOGIC_VECTOR(14 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 4705b6f018..93ca1f7791 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) := TO_UVEC(6001, 16); -- 0x1771 = 6001 + CONSTANT c_eth_tester_udp_dst_port : STD_LOGIC_VECTOR(15 DOWNTO 0) := c_eth_tester_eth1g_II_rx_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