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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
be016343
Commit
be016343
authored
3 years ago
by
Reinier van der Walle
Browse files
Options
Downloads
Patches
Plain Diff
set ip total length based on stats type
parent
20ceefcc
No related branches found
No related tags found
1 merge request
!141
Resolve L2SDP-473
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
+1
-1
1 addition, 1 deletion
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd
+3
-0
3 additions, 0 deletions
.../lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd
with
4 additions
and
1 deletion
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
+
1
−
1
View file @
be016343
...
...
@@ -155,7 +155,7 @@ PACKAGE sdp_pkg is
CONSTANT
c_sdp_xst_udp_src_port_15_8
:
STD_LOGIC_VECTOR
(
7
DOWNTO
0
)
:
=
x"D2"
;
-- TBC
CONSTANT
c_sdp_stat_nof_hdr_fields
:
NATURAL
:
=
1
+
3
+
12
+
4
+
20
+
1
;
-- 608b; 19 32b words
CONSTANT
c_sdp_stat_hdr_field_sel
:
STD_LOGIC_VECTOR
(
c_sdp_stat_nof_hdr_fields
-1
DOWNTO
0
)
:
=
"1"
&
"101"
&
"111
1
11111001"
&
"0101"
&
"0100"
&
"000000000"
&
"0000100"
&
"0"
;
-- 0=data path, 1=MM controlled TODO
CONSTANT
c_sdp_stat_hdr_field_sel
:
STD_LOGIC_VECTOR
(
c_sdp_stat_nof_hdr_fields
-1
DOWNTO
0
)
:
=
"1"
&
"101"
&
"111
0
11111001"
&
"0101"
&
"0100"
&
"000000000"
&
"0000100"
&
"0"
;
-- 0=data path, 1=MM controlled TODO
--CONSTANT c_sdp_stat_hdr_field_sel : STD_LOGIC_VECTOR(c_sdp_stat_nof_hdr_fields-1 DOWNTO 0) := "0"&"100"&"000000010001"&"0100"&"0100"&"000000010"&"1000000"&"0"; -- 0=data path, 1=MM controlled TODO
CONSTANT
c_sdp_stat_hdr_field_arr
:
t_common_field_arr
(
c_sdp_stat_nof_hdr_fields
-1
DOWNTO
0
)
:
=
(
...
...
This diff is collapsed.
Click to expand it.
applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd
+
3
−
0
View file @
be016343
...
...
@@ -101,6 +101,8 @@ ARCHITECTURE str OF sdp_statistics_offload IS
CONSTANT
c_nof_data
:
NATURAL
:
=
sel_a_b
(
g_statistics_type
=
"BST"
,
c_sdp_N_pol
*
c_sdp_S_sub_bf
,
sel_a_b
(
g_statistics_type
=
"XST"
,
c_sdp_S_pn
*
c_sdp_S_pn
*
c_nof_complex
,
c_sdp_N_sub
));
-- SST
CONSTANT
c_ip_total_length
:
NATURAL
:
=
60
+
c_nof_data
*
c_longword_sz
;
CONSTANT
c_udp_total_length
:
NATURAL
:
=
40
+
c_nof_data
*
c_longword_sz
;
CONSTANT
c_block_size
:
NATURAL
:
=
c_nof_data
*
c_step_size
;
...
...
@@ -165,6 +167,7 @@ BEGIN
dp_header_info
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"eth_src_mac"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"eth_src_mac"
))
<=
eth_src_mac
;
dp_header_info
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"udp_src_port"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"udp_src_port"
))
<=
udp_src_port
;
dp_header_info
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_src_addr"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_src_addr"
))
<=
ip_src_addr
;
dp_header_info
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_total_length"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_total_length"
))
<=
TO_UVEC
(
c_ip_total_length
,
16
);
dp_header_info
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"udp_total_length"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"udp_total_length"
))
<=
TO_UVEC
(
c_udp_total_length
,
16
);
dp_header_info
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_marker"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_marker"
))
<=
TO_UVEC
(
c_marker
,
8
);
dp_header_info
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_observation_id"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_observation_id"
))
<=
sdp_info
.
observation_id
;
...
...
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