ASSERTalmost_equal(TO_SREAL(rx_sdp_stat_re)/c_exp_subband_xst,1.0,c_max_ratio)REPORT"Wrong XST real value at subband = "&int_to_str(v_subband_ix)SEVERITYERROR;
ELSE
-- WG is only in one subband, so expect almost zero in the other subbands
ASSERTalmost_zero(TO_SREAL(rx_sdp_stat_re)/c_exp_subband_xst,c_max_ratio)REPORT"Too large XST real value at subband = "&int_to_str(v_subband_ix)SEVERITYERROR;
ENDIF;
ENDIF;
IFrx_sdp_stat_im_val='1'THEN
-- All WG have same phase, so expect zero imaginary part.
-- . The imag part is exactly zero for signal inputs a and b that are both connected to the corresponding input of the WPFB.
-- . The imag part is almost zero for signal inputs a and b that are both connected to the opposite inputs of the WPFB, due
-- to crosstalk rounding difference from input a to b or from input b to a of the complex FFT.
ASSERTSIGNED(rx_sdp_stat_im)=0REPORT"Non zero XST imaginary value at subband = "&int_to_str(v_subband_ix)SEVERITYERROR;
ELSE
ASSERTalmost_zero(TO_SREAL(rx_sdp_stat_im)/c_exp_subband_xst,c_max_ratio)REPORT"Too large XST imaginary value at subband = "&int_to_str(v_subband_ix)SEVERITYERROR;