Skip to content
Snippets Groups Projects
Commit 19403eed authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Verify bsn via exp_hdr.dp_bsn.

parent 824b3c63
No related branches found
No related tags found
1 merge request!175Added t_sdp_sim. Add func_sdp_get_stat_*() functions to determine the header...
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment