Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
5b511e42
Commit
5b511e42
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Redefine UDP port for eth_tester.
parent
d03ec2e7
No related branches found
No related tags found
1 merge request
!297
Resolve L2SDP-837 "B"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/io/eth/src/vhdl/eth_tester_pkg.vhd
+4
-2
4 additions, 2 deletions
libraries/io/eth/src/vhdl/eth_tester_pkg.vhd
libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd
+1
-1
1 addition, 1 deletion
libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd
with
5 additions
and
3 deletions
libraries/io/eth/src/vhdl/eth_tester_pkg.vhd
+
4
−
2
View file @
5b511e42
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
libraries/io/eth/tb/vhdl/tb_eth_tester_pkg.vhd
+
1
−
1
View file @
5b511e42
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment