# # Write the Wideband Poly Phase Filter Bank input stimuli to the BG # ############################################################################### # Prepare stimuli order for block generator xf_real = [] xf_imag = [] for i in range(c_nof_streams): xf_real.append(dsp_test.create_waveform(sel=c_real_select, ampl=c_real_ampl, phase=c_real_phase, freq=c_real_freq, timeIndex=c_real_index, seed=c_real_seed, noiseLevel=c_real_noiselevel, length=c_channel_length)) xf_imag.append(dsp_test.create_waveform(sel=c_imag_select, ampl=c_imag_ampl, phase=c_imag_phase, freq=c_imag_freq, timeIndex=c_imag_index, seed=c_imag_seed, noiseLevel=c_imag_noiselevel, length=c_channel_length)) xq_real=[] xq_imag=[] for i in range(c_nof_streams): xq_real.append(dsp_test.adc_quantize_waveform(xf_real[i])) xq_imag.append(dsp_test.adc_quantize_waveform(xf_imag[i])) streams = [] for i in range(c_nof_streams): streams.append(dsp_test.concatenate_two_lists(xq_real[i], xq_imag[i], g_in_dat_w)) # Apply the alternated order due to the channels and create the wb_streams wb_stream = [] for h in range(g_nof_wb_streams): chnl_stream = [] for i in range(c_channel_length): for j in range(c_nof_input_channels): chnl_stream.append(streams[h*c_nof_input_channels + j][i]) wb_stream.append(chnl_stream)
# ############################################################################### # Prepare data time-series stimuli that can be indexed like : series[channel_nr][time_nr] of real and imag values or complex values, where time_nr is 0:c_channel_length-1 # Create a floating point real and imag input signal xf. xf_real_series=[] xf_imag_series=[] for i in range(c_nof_input_channels): xf_real_series.append(dsp_test.create_waveform(sel=c_real_select, ampl=c_real_ampl, phase=c_real_phase, freq=c_real_freq+i, timeIndex=c_real_index+i, seed=c_real_seed+i, noiseLevel=c_real_noiselevel, length=c_channel_length)) xf_imag_series.append(dsp_test.create_waveform(sel=c_imag_select, ampl=c_imag_ampl, phase=c_imag_phase, freq=c_imag_freq+i, timeIndex=c_imag_index+i, seed=c_imag_seed+i, noiseLevel=c_imag_noiselevel, length=c_channel_length)) # Quantize xf --> ADC --> xq] xq_real_series=[] xq_imag_series=[] for i in range(c_nof_input_channels): xq_real_series.append(dsp_test.adc_quantize_waveform(xf_real_series[i])) xq_imag_series.append(dsp_test.adc_quantize_waveform(xf_imag_series[i])) # Convert to complex array xf_complex_series=[] xq_complex_series=[] for i in range(c_nof_input_channels): xf_complex_series.append(dsp_test.to_complex_list(xf_real_series[i], xf_imag_series[i])) xq_complex_series.append(dsp_test.to_complex_list(xq_real_series[i], xq_imag_series[i])) ############################################################################### # # Write the Wideband Poly Phase Filter Bank input stimuli to the BG # ############################################################################### # Prepare xq stimuli order for block generator : list[time_nr * channel_nr]