-- Verify expected subband power based on WG power for g_sp
ASSERTsp_subband_sst>c_lo_factor*exp_subband_sstREPORT"Wrong subband power for SP "&NATURAL'IMAGE(g_sp)SEVERITYERROR;
ASSERTsp_subband_sst<c_hi_factor*exp_subband_sstREPORT"Wrong subband power for SP "&NATURAL'IMAGE(g_sp)SEVERITYERROR;
ASSERTsp_subband_sst>c_lo_factor*exp_sp_subband_sstREPORT"Wrong subband power for SP "&NATURAL'IMAGE(g_sp)SEVERITYERROR;
ASSERTsp_subband_sst<c_hi_factor*exp_sp_subband_sstREPORT"Wrong subband power for SP "&NATURAL'IMAGE(g_sp)SEVERITYERROR;
IFg_use_cross_weightTHEN
-- Verify expected subband power based on WG power for c_cross_sp
-- The other WPFB input WG at c_cross_sp is used as cross polarization input, with default
-- unit co-polarization subband weight and zero cross-polarization subband weight.
ASSERTsp_subband_sst_cross>c_lo_factor*c_exp_subband_sst_rawREPORT"Wrong subband power for cross SP "&NATURAL'IMAGE(c_cross_sp)SEVERITYERROR;
ASSERTsp_subband_sst_cross<c_hi_factor*c_exp_subband_sst_rawREPORT"Wrong subband power for cross SP "&NATURAL'IMAGE(c_cross_sp)SEVERITYERROR;
ASSERTsp_cross_subband_sst>c_lo_factor*exp_cross_subband_sstREPORT"Wrong subband power for cross SP "&NATURAL'IMAGE(c_cross_sp)SEVERITYERROR;
ASSERTsp_cross_subband_sst<c_hi_factor*exp_cross_subband_sstREPORT"Wrong subband power for cross SP "&NATURAL'IMAGE(c_cross_sp)SEVERITYERROR;
ENDIF;
IFg_read_all_SSTTHEN
-- Verify expected SNR quality measures
ASSERTsp_subband_sst_leakage=0.0ORsp_subband_sst_leakage_snr_dB>c_exp_subband_sst_leakage_snr_dBREPORT"Wrong too much leakage for SP "&NATURAL'IMAGE(g_sp)SEVERITYERROR;
ASSERTsp_subband_sst_crosstalk=0.0ORsp_subband_sst_crosstalk_snr_dB>c_exp_subband_sst_crosstalk_snr_dBREPORT"Wrong too much crosstalk for SP "&NATURAL'IMAGE(g_sp)SEVERITYERROR;
ASSERTsp_subband_sst_leakage=0.0ORsp_subband_sst_leakage_snr_dB>c_exp_sp_subband_sst_leakage_snr_dBREPORT"Wrong too much leakage for SP "&NATURAL'IMAGE(g_sp)SEVERITYERROR;
IFNOTg_use_cross_weightTHEN
ASSERTsp_subband_sst_crosstalk=0.0ORsp_subband_sst_crosstalk_snr_dB>c_exp_sp_subband_sst_crosstalk_snr_dBREPORT"Wrong too much crosstalk for SP "&NATURAL'IMAGE(g_sp)SEVERITYERROR;