IFv_C=0THENASSERT(SIGNED(xsub_stats_arr(I))>TO_SIGNED(0,c_longword_w))REPORT"correlation is 0 which is unexpected! at I = "&int_to_str(I)SEVERITYERROR;ENDIF;
ENDLOOP;
-- All XST values (almost) equal, because they use the same WG setting.
-- therefore also verify the expected XST value for all XST.
IFIMODc_nof_complex=0THEN
-- real part
ASSERTalmost_equal(TO_SREAL(xsub_stats_arr(I))/c_exp_subband_xst,1.0,c_max_ratio)REPORT"Wrong XST real value at I = "&int_to_str(I)SEVERITYERROR;
ELSE
-- imag part
ASSERTalmost_zero(TO_SREAL(xsub_stats_arr(I))/c_exp_subband_xst,c_max_ratio)REPORT"Wrong XST imag value at I = "&int_to_str(I)SEVERITYERROR;