Skip to content
GitLab
Explore
Sign in
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
f8dd29e0
Commit
f8dd29e0
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Add ip_header_checksum argument to func_sdp_compose_stat_header().
parent
4c1aeea5
No related branches found
No related tags found
1 merge request
!283
Resolve L2SDP-696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
+5
-3
5 additions, 3 deletions
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
with
5 additions
and
3 deletions
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
+
5
−
3
View file @
f8dd29e0
...
...
@@ -42,7 +42,8 @@ PACKAGE tb_sdp_pkg is
-----------------------------------------------------------------------------
-- Statistics offload
-----------------------------------------------------------------------------
FUNCTION
func_sdp_compose_stat_header
(
sdp_info
:
t_sdp_info
;
-- app header
FUNCTION
func_sdp_compose_stat_header
(
ip_header_checksum
:
NATURAL
;
sdp_info
:
t_sdp_info
;
-- app header
g_statistics_type
:
STRING
;
weighted_subbands_flag
:
STD_LOGIC
;
gn_index
:
NATURAL
;
...
...
@@ -89,7 +90,8 @@ PACKAGE BODY tb_sdp_pkg IS
RETURN
c_ip_15_0
;
END
func_sdp_gn_index_to_ip_15_0
;
FUNCTION
func_sdp_compose_stat_header
(
sdp_info
:
t_sdp_info
;
-- app header
FUNCTION
func_sdp_compose_stat_header
(
ip_header_checksum
:
NATURAL
;
sdp_info
:
t_sdp_info
;
-- app header
g_statistics_type
:
STRING
;
weighted_subbands_flag
:
STD_LOGIC
;
gn_index
:
NATURAL
;
...
...
@@ -128,7 +130,7 @@ PACKAGE BODY tb_sdp_pkg IS
v_hdr
.
ip
.
time_to_live
:
=
TO_UVEC
(
127
,
c_network_ip_time_to_live_w
);
v_hdr
.
ip
.
protocol
:
=
TO_UVEC
(
17
,
c_network_ip_protocol_w
);
-- the IP header check sum is calculated in IO eth, so still 0 here
v_hdr
.
ip
.
header_checksum
:
=
TO_UVEC
(
0
,
c_network_ip_header_checksum_w
);
v_hdr
.
ip
.
header_checksum
:
=
TO_UVEC
(
ip_header_checksum
,
c_network_ip_header_checksum_w
);
v_hdr
.
ip
.
src_ip_addr
:
=
c_sdp_stat_ip_src_addr_31_16
&
c_ip_15_0
;
-- c_network_ip_addr_w
v_hdr
.
ip
.
dst_ip_addr
:
=
c_sdp_stat_ip_dst_addr
;
-- c_network_ip_addr_w
...
...
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