diff --git a/applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd b/applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd index db5a0922e739a0ff5d873df54fe946cb85492438..ba6961d74ffe2ad8255920e4e12b761f33c8ac17 100644 --- a/applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd +++ b/applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd @@ -48,10 +48,10 @@ USE work.sdp_pkg.ALL; ENTITY tb_sdp_statistics_offload IS GENERIC ( - g_statistics_type : STRING := "SST"; + g_statistics_type : STRING := "XST"; g_offload_time : NATURAL := 500; g_beamset_id : NATURAL := 0; - g_P_sq : NATURAL := c_sdp_P_sq + g_P_sq : NATURAL := 1 --c_sdp_P_sq ); END tb_sdp_statistics_offload; @@ -326,6 +326,9 @@ BEGIN 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 "wront SST sdp_data_id" SEVERITY ERROR;