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
57f14bdc
Commit
57f14bdc
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Treat beamlet_index modulo c_sdp_S_sub_bf, so per beamset.
parent
22e529a5
No related branches found
No related tags found
1 merge request
!195
Resolve L2SDP-564
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
+4
-1
4 additions, 1 deletion
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
with
4 additions
and
1 deletion
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
+
4
−
1
View file @
57f14bdc
...
...
@@ -117,6 +117,7 @@ PACKAGE BODY tb_sdp_pkg IS
FUNCTION
func_sdp_verify_cep_header
(
in_hdr
,
exp_hdr
:
t_sdp_cep_header
)
RETURN
BOOLEAN
IS
VARIABLE
v_beamlet_index
:
NATURAL
;
BEGIN
-- eth header
ASSERT
in_hdr
.
eth
.
dst_mac
=
exp_hdr
.
eth
.
dst_mac
REPORT
"Wrong beamlet eth.dst_mac"
SEVERITY
ERROR
;
...
...
@@ -160,7 +161,9 @@ PACKAGE BODY tb_sdp_pkg IS
ASSERT
in_hdr
.
app
.
sdp_reserved
=
exp_hdr
.
app
.
sdp_reserved
REPORT
"Wrong beamlet app.sdp_reserved"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_beamlet_scale
=
exp_hdr
.
app
.
sdp_beamlet_scale
REPORT
"Wrong beamlet app.sdp_beamlet_scale"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_beamlet_index
=
exp_hdr
.
app
.
sdp_beamlet_index
REPORT
"Wrong beamlet app.sdp_beamlet_index"
SEVERITY
ERROR
;
-- Treat beamlet_index modulo c_sdp_S_sub_bf, because the beamlet packets from different beamsets may arrive in arbitrary order
v_beamlet_index
:
=
TO_UINT
(
in_hdr
.
app
.
sdp_beamlet_index
)
MOD
c_sdp_S_sub_bf
;
ASSERT
v_beamlet_index
=
TO_UINT
(
exp_hdr
.
app
.
sdp_beamlet_index
)
REPORT
"Wrong beamlet app.sdp_beamlet_index"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_nof_blocks_per_packet
=
exp_hdr
.
app
.
sdp_nof_blocks_per_packet
REPORT
"Wrong beamlet app.sdp_nof_blocks_per_packet"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_nof_beamlets_per_block
=
exp_hdr
.
app
.
sdp_nof_beamlets_per_block
REPORT
"Wrong beamlet app.sdp_nof_beamlets_per_block"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_block_period
=
exp_hdr
.
app
.
sdp_block_period
REPORT
"Wrong beamlet app.sdp_block_period"
SEVERITY
ERROR
;
...
...
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