Line 32... |
Line 32... |
-- > Run python script in separate terminal: "python tc_mmf_fft_r2_par.py --unb 0 --bn 0 --sim"
|
-- > Run python script in separate terminal: "python tc_mmf_fft_r2_par.py --unb 0 --bn 0 --sim"
|
-- > Check the results of the python script.
|
-- > Check the results of the python script.
|
-- > Stop the simulation manually in Modelsim by pressing the stop-button.
|
-- > Stop the simulation manually in Modelsim by pressing the stop-button.
|
|
|
|
|
LIBRARY IEEE, common_pkg_lib, unb_common_lib, mm_lib, diag_lib, dp_pkg_lib, rTwoSDF_lib;
|
LIBRARY IEEE, common_pkg_lib, unb_common_lib, astron_mm_lib, astron_diagnostics_lib, dp_pkg_lib, astron_r2sdf_fft_lib;
|
USE IEEE.std_logic_1164.ALL;
|
USE IEEE.std_logic_1164.ALL;
|
USE IEEE.numeric_std.ALL;
|
USE IEEE.numeric_std.ALL;
|
USE common_pkg_lib.common_pkg.ALL;
|
USE common_pkg_lib.common_pkg.ALL;
|
USE common_lib.common_mem_pkg.ALL;
|
USE common_lib.common_mem_pkg.ALL;
|
USE common_pkg_lib.common_str_pkg.ALL;
|
USE common_pkg_lib.common_str_pkg.ALL;
|
USE common_pkg_lib.tb_common_pkg.ALL;
|
USE common_pkg_lib.tb_common_pkg.ALL;
|
USE common_lib.tb_common_mem_pkg.ALL;
|
USE common_lib.tb_common_mem_pkg.ALL;
|
USE mm_lib.mm_file_unb_pkg.ALL;
|
USE astron_mm_lib.mm_file_unb_pkg.ALL;
|
USE mm_lib.mm_file_pkg.ALL;
|
USE astron_mm_lib.mm_file_pkg.ALL;
|
USE dp_pkg_lib.dp_stream_pkg.ALL;
|
USE dp_pkg_lib.dp_stream_pkg.ALL;
|
USE rTwoSDF_lib.rTwoSDFPkg.all;
|
USE astron_r2sdf_fft_lib.rTwoSDFPkg.all;
|
USE work.fft_pkg.all;
|
USE work.fft_pkg.all;
|
|
|
ENTITY tb_mmf_fft_r2_par IS
|
ENTITY tb_mmf_fft_r2_par IS
|
GENERIC(
|
GENERIC(
|
g_fft : t_fft := (true, false, false, 0, 1, 0, 64, 8, 14, 0, c_dsp_mult_w, 2, true, 56, 2)
|
g_fft : t_fft := (true, false, false, 0, 1, 0, 64, 8, 14, 0, c_dsp_mult_w, 2, true, 56, 2)
|
Line 179... |
Line 179... |
PORT MAP(mm_rst, mm_clk, reg_diag_data_buf_im_mosi, reg_diag_data_buf_im_miso);
|
PORT MAP(mm_rst, mm_clk, reg_diag_data_buf_im_mosi, reg_diag_data_buf_im_miso);
|
|
|
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
-- Source: block generator
|
-- Source: block generator
|
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
u_bg : ENTITY diag_lib.mms_diag_block_gen
|
u_bg : ENTITY astron_diagnostics_lib.mms_diag_block_gen
|
GENERIC MAP(
|
GENERIC MAP(
|
g_nof_output_streams => c_nof_streams,
|
g_nof_output_streams => c_nof_streams,
|
g_buf_dat_w => c_nof_complex*g_fft.in_dat_w,
|
g_buf_dat_w => c_nof_complex*g_fft.in_dat_w,
|
g_buf_addr_w => c_bg_buf_adr_w, -- Waveform buffer size 2**g_buf_addr_w nof samples
|
g_buf_addr_w => c_bg_buf_adr_w, -- Waveform buffer size 2**g_buf_addr_w nof samples
|
g_file_index_arr => c_bg_data_file_index_arr,
|
g_file_index_arr => c_bg_data_file_index_arr,
|
Line 240... |
Line 240... |
END GENERATE;
|
END GENERATE;
|
|
|
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
-- Sink: data buffer real
|
-- Sink: data buffer real
|
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
u_data_buf_re : ENTITY diag_lib.mms_diag_data_buffer
|
u_data_buf_re : ENTITY astron_diagnostics_lib.mms_diag_data_buffer
|
GENERIC MAP (
|
GENERIC MAP (
|
g_nof_streams => c_nof_streams,
|
g_nof_streams => c_nof_streams,
|
g_data_w => g_fft.out_dat_w,
|
g_data_w => g_fft.out_dat_w,
|
g_buf_nof_data => 1024,
|
g_buf_nof_data => 1024,
|
g_buf_use_sync => FALSE
|
g_buf_use_sync => FALSE
|
Line 269... |
Line 269... |
);
|
);
|
|
|
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
-- Sink: data buffer imag
|
-- Sink: data buffer imag
|
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
u_data_buf_im : ENTITY diag_lib.mms_diag_data_buffer
|
u_data_buf_im : ENTITY astron_diagnostics_lib.mms_diag_data_buffer
|
GENERIC MAP (
|
GENERIC MAP (
|
g_nof_streams => c_nof_streams,
|
g_nof_streams => c_nof_streams,
|
g_data_w => g_fft.out_dat_w,
|
g_data_w => g_fft.out_dat_w,
|
g_buf_nof_data => 1024,
|
g_buf_nof_data => 1024,
|
g_buf_use_sync => FALSE
|
g_buf_use_sync => FALSE
|