g_fft_out_dat_w:NATURAL:=18;-- = W_subband, number of output bits
g_fft_out_dat_w:NATURAL:=18;-- = W_subband, number of output bits
g_fft_out_gain_w:NATURAL:=0;-- = 1, output gain factor applied after the last stage output, before requantization to out_dat_w
g_fft_out_gain_w:NATURAL:=1;-- = 1, output gain factor applied after the last stage output, before requantization to out_dat_w
g_fft_stage_dat_w:NATURAL:=18;-- = c_dsp_mult_w = 18, number of bits that are used inter-stage
g_fft_stage_dat_w:NATURAL:=27;-- = c_dsp_mult_w = 18, number of bits that are used inter-stage
g_fft_guard_w:NATURAL:=1;-- = 2
g_fft_guard_w:NATURAL:=1;-- = 2
g_switch_en:STD_LOGIC:='0';-- two real input decorrelation option in PFB2
g_switch_en:STD_LOGIC:='0';-- two real input decorrelation option in PFB2
g_r2_mul_extra_w:NATURAL:=0;-- = 2, WPFB extra bits at rTwoWMul output in rTwoSDFStage to improve rTwoSDFStage output requantization in fft_r2_pipe in wpfb_unit_dev
g_r2_mul_extra_w:NATURAL:=0;-- = 2, WPFB extra bits at rTwoWMul output in rTwoSDFStage to improve rTwoSDFStage output requantization in fft_r2_pipe in wpfb_unit_dev
...
@@ -246,8 +246,8 @@ ARCHITECTURE tb OF tb_verify_pfb_wg IS
...
@@ -246,8 +246,8 @@ ARCHITECTURE tb OF tb_verify_pfb_wg IS
CONSTANTc_nof_channels:NATURAL:=2**c_wpfb.nof_chan;-- = 2**0 = 1, so no time multiplexing of inputs
CONSTANTc_nof_channels:NATURAL:=2**c_wpfb.nof_chan;-- = 2**0 = 1, so no time multiplexing of inputs
CONSTANTc_nof_sync:NATURAL:=5;-- nof sync intervals to simulate
CONSTANTc_nof_sync:NATURAL:=5;-- nof sync intervals to simulate
CONSTANTc_pfb_sub_scaling:REAL:=2.0**REAL(g_fft_out_dat_w-g_fil_in_dat_w-1);-- expected subband amplitude gain relative to input WG amplitude
CONSTANTc_pfb_sub_scaling:REAL:=2.0**REAL(g_fft_out_dat_w+g_fft_out_gain_w-g_fil_in_dat_w-1);-- expected subband amplitude gain relative to input WG amplitude
-- -1 for divide by 2 in two real input separate (Ampl --> Ampl/2)
-- -1 for divide by 2 in two real input separate (Ampl --> Ampl/2)
print_str(". sst_noise_b = "&real_to_str(sst_noise_b,15,3));-- FFT cross talk power from a to b (if g_amplitude_b = 0)
print_str(". sst_noise_b = "&real_to_str(sst_noise_b,15,3)&" = "&real_to_str(sst_noise_b_dB,7,2)&" [dB]");-- FFT cross talk power from a to b (if g_amplitude_b = 0)
print_str(". sst_noise_a = "&real_to_str(sst_noise_a,15,3));-- FFT cross talk power from b to a (if g_amplitude_a = 0)
print_str(". sst_noise_a = "&real_to_str(sst_noise_a,15,3)&" = "&real_to_str(sst_noise_a_dB,7,2)&" [dB]");-- FFT cross talk power from b to a (if g_amplitude_a = 0)