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
19403eed
Commit
19403eed
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Verify bsn via exp_hdr.dp_bsn.
parent
824b3c63
No related branches found
No related tags found
1 merge request
!175
Added t_sdp_sim. Add func_sdp_get_stat_*() functions to determine the header...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
+6
-8
6 additions, 8 deletions
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
with
6 additions
and
8 deletions
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_pkg.vhd
+
6
−
8
View file @
19403eed
...
@@ -34,19 +34,19 @@ PACKAGE tb_sdp_pkg is
...
@@ -34,19 +34,19 @@ PACKAGE tb_sdp_pkg is
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Statistics offload
-- Statistics offload
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
FUNCTION
func_sdp_verify_stat_header
(
g_statistics_type
:
STRING
;
in_hdr
,
exp_hdr
:
t_sdp_stat_header
;
sdp_info
:
t_sdp_info
;
exp_bsn
:
NATURAL
)
RETURN
BOOLEAN
;
FUNCTION
func_sdp_verify_stat_header
(
g_statistics_type
:
STRING
;
in_hdr
,
exp_hdr
:
t_sdp_stat_header
;
sdp_info
:
t_sdp_info
)
RETURN
BOOLEAN
;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Beamlet output via 10GbE to CEP (= central processor)
-- Beamlet output via 10GbE to CEP (= central processor)
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
FUNCTION
func_sdp_verify_cep_header
(
in_hdr
,
exp_hdr
:
t_sdp_cep_header
;
sdp_info
:
t_sdp_info
;
exp_bsn
:
NATURAL
)
RETURN
BOOLEAN
;
FUNCTION
func_sdp_verify_cep_header
(
in_hdr
,
exp_hdr
:
t_sdp_cep_header
;
sdp_info
:
t_sdp_info
)
RETURN
BOOLEAN
;
END
PACKAGE
tb_sdp_pkg
;
END
PACKAGE
tb_sdp_pkg
;
PACKAGE
BODY
tb_sdp_pkg
IS
PACKAGE
BODY
tb_sdp_pkg
IS
FUNCTION
func_sdp_verify_stat_header
(
g_statistics_type
:
STRING
;
in_hdr
,
exp_hdr
:
t_sdp_stat_header
;
sdp_info
:
t_sdp_info
;
exp_bsn
:
NATURAL
)
RETURN
BOOLEAN
IS
FUNCTION
func_sdp_verify_stat_header
(
g_statistics_type
:
STRING
;
in_hdr
,
exp_hdr
:
t_sdp_stat_header
;
sdp_info
:
t_sdp_info
)
RETURN
BOOLEAN
IS
BEGIN
BEGIN
-- eth header
-- eth header
ASSERT
in_hdr
.
eth
.
dst_mac
=
exp_hdr
.
eth
.
dst_mac
REPORT
"Wrong "
&
g_statistics_type
&
" eth.dst_mac"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
eth
.
dst_mac
=
exp_hdr
.
eth
.
dst_mac
REPORT
"Wrong "
&
g_statistics_type
&
" eth.dst_mac"
SEVERITY
ERROR
;
...
@@ -111,13 +111,12 @@ PACKAGE BODY tb_sdp_pkg IS
...
@@ -111,13 +111,12 @@ PACKAGE BODY tb_sdp_pkg IS
ASSERT
in_hdr
.
app
.
sdp_nof_statistics_per_packet
=
exp_hdr
.
app
.
sdp_nof_statistics_per_packet
REPORT
"Wrong "
&
g_statistics_type
&
" app.sdp_nof_statistics_per_packet"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_nof_statistics_per_packet
=
exp_hdr
.
app
.
sdp_nof_statistics_per_packet
REPORT
"Wrong "
&
g_statistics_type
&
" app.sdp_nof_statistics_per_packet"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_block_period
=
sdp_info
.
block_period
REPORT
"Wrong "
&
g_statistics_type
&
" app.sdp_block_period"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_block_period
=
sdp_info
.
block_period
REPORT
"Wrong "
&
g_statistics_type
&
" app.sdp_block_period"
SEVERITY
ERROR
;
-- . TODO see L2SDP-210: bsn is not fully received (bit 0-15 is missing) because 32 bit allignment not working in dp_offload_rx.vhd.
ASSERT
in_hdr
.
app
.
dp_bsn
=
exp_hdr
.
app
.
dp_bsn
REPORT
"Wrong "
&
g_statistics_type
&
" app.dp_bsn"
SEVERITY
ERROR
;
--ASSERT in_hdr.app.dp_bsn = TO_UVEC(exp_bsn, 64) REPORT "Wrong " & g_statistics_type & " app.dp_bsn" SEVERITY ERROR;
RETURN
TRUE
;
RETURN
TRUE
;
END
func_sdp_verify_stat_header
;
END
func_sdp_verify_stat_header
;
FUNCTION
func_sdp_verify_cep_header
(
in_hdr
,
exp_hdr
:
t_sdp_cep_header
;
sdp_info
:
t_sdp_info
;
exp_bsn
:
NATURAL
)
RETURN
BOOLEAN
IS
FUNCTION
func_sdp_verify_cep_header
(
in_hdr
,
exp_hdr
:
t_sdp_cep_header
;
sdp_info
:
t_sdp_info
)
RETURN
BOOLEAN
IS
BEGIN
BEGIN
-- eth header
-- eth header
ASSERT
in_hdr
.
eth
.
dst_mac
=
exp_hdr
.
eth
.
dst_mac
REPORT
"Wrong beamlet eth.dst_mac"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
eth
.
dst_mac
=
exp_hdr
.
eth
.
dst_mac
REPORT
"Wrong beamlet eth.dst_mac"
SEVERITY
ERROR
;
...
@@ -166,8 +165,7 @@ PACKAGE BODY tb_sdp_pkg IS
...
@@ -166,8 +165,7 @@ PACKAGE BODY tb_sdp_pkg IS
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_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
=
sdp_info
.
block_period
REPORT
"Wrong beamlet app.sdp_block_period"
SEVERITY
ERROR
;
ASSERT
in_hdr
.
app
.
sdp_block_period
=
sdp_info
.
block_period
REPORT
"Wrong beamlet app.sdp_block_period"
SEVERITY
ERROR
;
-- . TODO see L2SDP-210: bsn is not fully received (bit 0-15 is missing) because 32 bit allignment not working in dp_offload_rx.vhd.
ASSERT
in_hdr
.
app
.
dp_bsn
=
exp_hdr
.
app
.
dp_bsn
REPORT
"Wrong beamlet app.dp_bsn"
SEVERITY
ERROR
;
--ASSERT in_hdr.app.dp_bsn = TO_UVEC(exp_bsn, 64) REPORT "Wrong beamlet app.dp_bsn" SEVERITY ERROR;
RETURN
TRUE
;
RETURN
TRUE
;
END
func_sdp_verify_cep_header
;
END
func_sdp_verify_cep_header
;
...
...
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