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
99b25f66
Commit
99b25f66
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Add func_sdp_bdo_cep_hdr_field_sel_dest().
parent
2c2f46b3
No related branches found
No related tags found
1 merge request
!357
Move func_sdp_bdo_cep_hdr_field_sel_dest() from sdp_bdo_pkg to...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/src/vhdl/sdp_bdo_pkg.vhd
+19
-0
19 additions, 0 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_bdo_pkg.vhd
with
19 additions
and
0 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_bdo_pkg.vhd
+
19
−
0
View file @
99b25f66
...
...
@@ -53,15 +53,34 @@ package sdp_bdo_pkg is
(
others
=>
(
others
=>
'0'
)),
(
others
=>
(
others
=>
'0'
)),
0
,
0
,
0
);
-- Select header destination MAC, IP, UDP field from data path, to support
-- BDO multiple destinations register
function
func_sdp_bdo_cep_hdr_field_sel_dest
(
sl
:
std_logic
)
return
std_logic_vector
;
-- Determine actual nof_destinations and actual nof_blocks_per_packet
function
func_sdp_bdo_parse_nof_destinations
(
nof_destinations
:
natural
)
return
natural
;
function
func_sdp_bdo_nof_blocks_per_packet_look_up_table
return
t_natural_arr
;
-- Determine nof_beamlets_per_block per destination
function
func_sdp_nof_beamlets_per_block_look_up_table
return
t_natural_arr
;
function
func_sdp_nof_beamlets_per_block_look_up_matrix
return
t_natural_matrix
;
end
package
sdp_bdo_pkg
;
package
body
sdp_bdo_pkg
is
function
func_sdp_bdo_cep_hdr_field_sel_dest
(
sl
:
std_logic
)
return
std_logic_vector
is
variable
v_sel
:
std_logic_vector
(
c_sdp_cep_nof_hdr_fields
-
1
downto
0
)
:
=
c_sdp_cep_hdr_field_sel
;
begin
-- Select header destination MAC, IP, UDP field from data path instead of
-- from MM in dp_offload_tx_v3
v_sel
(
38
)
:
=
sl
;
-- eth_dst_mac
v_sel
(
24
)
:
=
sl
;
-- ip_dst_addr
v_sel
(
22
)
:
=
sl
;
-- udp_dst_port
return
v_sel
;
end
func_sdp_bdo_cep_hdr_field_sel_dest
;
function
func_sdp_bdo_parse_nof_destinations
(
nof_destinations
:
natural
)
return
natural
is
begin
-- Parse input nof_destinations value
if
nof_destinations
=
0
then
return
1
;
elsif
nof_destinations
>
c_sdp_bdo_nof_destinations_max
then
...
...
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