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
f3cbd90b
Commit
f3cbd90b
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Use only func_sdp_verify_stat_header() in p_verify_header.
parent
804ffa12
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_statistics_offload.vhd
+0
-80
0 additions, 80 deletions
...ofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd
with
0 additions
and
80 deletions
applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd
+
0
−
80
View file @
f3cbd90b
...
@@ -308,86 +308,6 @@ BEGIN
...
@@ -308,86 +308,6 @@ BEGIN
BEGIN
BEGIN
IF
test_offload_sosi
.
eop
=
'1'
THEN
IF
test_offload_sosi
.
eop
=
'1'
THEN
-- bsn is not fully received (bit 0-15 is missing) because 32 bit allignment not working in dp_offload_rx.vhd.
-- bsn is not fully received (bit 0-15 is missing) because 32 bit allignment not working in dp_offload_rx.vhd.
-- Check fixed settings.
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"eth_dst_mac"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"eth_dst_mac"
))
=
x"001B217176B9"
REPORT
"wrong eth_dst_mac"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"eth_type"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"eth_type"
))
=
x"0800"
REPORT
"wrong eth_type"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_version"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_version"
))
=
TO_UVEC
(
4
,
4
)
REPORT
"wrong ip_version"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_header_length"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_header_length"
))
=
TO_UVEC
(
5
,
4
)
REPORT
"wrong ip_header_length"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_services"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_services"
))
=
TO_UVEC
(
0
,
8
)
REPORT
"wrong ip_services"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
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
)
REPORT
"wrong ip_total_length"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_identification"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_identification"
))
=
TO_UVEC
(
0
,
16
)
REPORT
"wrong ip_identification"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_flags"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_flags"
))
=
TO_UVEC
(
2
,
3
)
REPORT
"wrong ip_flags"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_fragment_offset"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_fragment_offset"
))
=
TO_UVEC
(
0
,
13
)
REPORT
"wrong ip_fragment_offset"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_time_to_live"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_time_to_live"
))
=
TO_UVEC
(
127
,
8
)
REPORT
"wrong ip_time_to_live"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_protocol"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_protocol"
))
=
TO_UVEC
(
17
,
8
)
REPORT
"wrong ip_protocol"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_dst_addr"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_dst_addr"
))
=
x"0A6300FE"
REPORT
"wrong ip_dst_addr"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"udp_dst_port"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"udp_dst_port"
))
=
TO_UVEC
(
5001
,
16
)
REPORT
"wrong udp_dst_port"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
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
)
REPORT
"wrong udp_total_length"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_version_id"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_version_id"
))
=
TO_UVEC
(
5
,
8
)
REPORT
"wrong sdp_version_id"
SEVERITY
ERROR
;
-- Check settings set by mm interface in this test bench.
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"eth_src_mac"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"eth_src_mac"
))
=
c_eth_src_mac
REPORT
"wrong eth_src_mac"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"ip_src_addr"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"ip_src_addr"
))
=
c_ip_src_addr
REPORT
"wrong ip_src_addr"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"udp_src_port"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"udp_src_port"
))
=
c_udp_src_port
REPORT
"wrong udp_src_port"
SEVERITY
ERROR
;
-- Check g_statistics_type settings set by sdp_statistics_offload.vhd.
ASSERT
rx_hdr_fields_raw
(
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
)
REPORT
"wrong sdp_marker"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_nof_signal_inputs"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_nof_signal_inputs"
))
=
TO_UVEC
(
c_nof_signal_inputs
,
8
)
REPORT
"wrong sdp_nof_signal_inputs"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_nof_statistics_per_packet"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_nof_statistics_per_packet"
))
=
TO_UVEC
(
c_nof_statistics_per_packet
,
16
)
REPORT
"wrong sdp_nof_statistics_per_packet: "
SEVERITY
ERROR
;
-- Check some values from sdp_source_info.
ASSERT
rx_hdr_fields_raw
(
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
REPORT
"wrong sdp_observation_id"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_station_id"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_station_id"
))
=
sdp_info
.
station_id
REPORT
"wrong sdp_station_id"
SEVERITY
ERROR
;
ASSERT
SL
(
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_antenna_band_id"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_antenna_band_id"
)))
=
sdp_info
.
antenna_band_index
REPORT
"wrong sdp_source_info_antenna_band_id"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_nyquist_zone_id"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_nyquist_zone_id"
))
=
sdp_info
.
nyquist_zone_index
REPORT
"wrong sdp_source_info_nyquist_zone_id"
SEVERITY
ERROR
;
ASSERT
SL
(
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_f_adc"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_f_adc"
)))
=
sdp_info
.
f_adc
REPORT
"wrong sdp_source_info_f_adc"
SEVERITY
ERROR
;
ASSERT
SL
(
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_fsub_type"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_fsub_type"
)))
=
sdp_info
.
fsub_type
REPORT
"wrong sdp_source_info_fsub_type"
SEVERITY
ERROR
;
ASSERT
SL
(
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_beam_repositioning_flag"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_beam_repositioning_flag"
)))
=
sdp_info
.
beam_repositioning_flag
REPORT
"wrong sdp_source_info_beam_repositioning_flag"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_gn_id"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_source_info_gn_id"
))
=
TO_UVEC
(
gn_index
,
5
)
REPORT
"wrong sdp_source_info_gn_id"
SEVERITY
ERROR
;
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_block_period"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_block_period"
))
=
sdp_info
.
block_period
REPORT
"wrong sdp_block_period"
SEVERITY
ERROR
;
-- Check variable header info.
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_integration_interval"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_integration_interval"
))
=
TO_UVEC
(
c_nof_block_per_sync
,
24
)
REPORT
"wrong sdp_integration_interval"
SEVERITY
ERROR
;
IF
g_statistics_type
=
"SST"
THEN
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_data_id"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_data_id"
))
=
TO_UVEC
(
rx_block_cnt
+
c_sdp_S_pn
*
gn_index
,
32
)
REPORT
"wrong SST sdp_data_id"
SEVERITY
ERROR
;
ELSIF
g_statistics_type
=
"BST"
THEN
ASSERT
rx_hdr_fields_raw
(
field_hi
(
c_sdp_stat_hdr_field_arr
,
"sdp_data_id"
)
DOWNTO
field_lo
(
c_sdp_stat_hdr_field_arr
,
"sdp_data_id"
))
=
TO_UVEC
(
c_beamlet_id
,
32
)
REPORT
"wrong BST sdp_data_id"
SEVERITY
ERROR
;
--ELSIF g_statistics_type = "XST" THEN --TODO: RW define check
END
IF
;
v_bool
:
=
func_sdp_verify_stat_header
(
g_statistics_type
,
rx_sdp_stat_header
,
exp_sdp_stat_header
,
sdp_info
,
rx_bsn
);
v_bool
:
=
func_sdp_verify_stat_header
(
g_statistics_type
,
rx_sdp_stat_header
,
exp_sdp_stat_header
,
sdp_info
,
rx_bsn
);
...
...
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