Skip to content
Snippets Groups Projects
Commit a5c4c75e authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Use run_pfir.m instead of one_pfb.m to have specific script for ppf HDL verification.

parent 13506df7
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 11 deletions
......@@ -29,18 +29,18 @@
-- The g_coefs_file_prefix dat-file and g_data_file dat-file are created by
-- the Matlab script:
--
-- $RADIOHDL/applications/apertif/matlab/one_pfb.m
-- $RADIOHDL/applications/apertif/matlab/run_pfir.m
--
-- yields:
--
-- . g_coefs_file_prefix : one_pfb_m_pfir_coeff_fircls1_16taps_128points_16b.dat
-- . g_data_file : one_pfb_m_sinusoid_chirp_8b_16taps_128points_16b_16b.dat
-- . g_coefs_file_prefix : run_pfir_m_pfir_coeff_fircls1_16taps_128points_16b.dat
-- . g_data_file : run_pfir_m_sinusoid_chirp_8b_16taps_128points_16b_16b.dat
--
-- The g_fil_ppf parameters nof_taps, nof_bands (= nof points), c_in_dat_w,
-- out_dat_w and coef_dat_w must match the settings in one_pfb.m.
-- out_dat_w and coef_dat_w must match the settings in run_pfir.m.
--
-- The c_in_dat_w = g_fil_ppf.in_dat_w - c_in_backoff_w = 9 - 1 = 8 bit to
-- fit one_pfb_m_sinusoid_chirp_wg_8b.dat. The c_in_backoff_w = 1 is
-- fit run_pfir_m_sinusoid_chirp_wg_8b.dat. The c_in_backoff_w = 1 is
-- necessary to accommodate the factor 2 overshoot that the PFIR output can
-- have.
--
......@@ -53,13 +53,13 @@
-- the Python script:
--
-- $RADIOHDL/libraries/dsp/filter/src/python/
-- python fil_ppf_create_mifs.py -f ../hex/one_pfb_m_pfir_coeff_fircls1_16taps_128points_16b.dat -t 16 -p 128 -w 1 -c 16
-- python fil_ppf_create_mifs.py -f ../hex/one_pfb_m_pfir_coeff_fircls1_16taps_128points_16b.dat -t 16 -p 128 -w 4 -c 16
-- python fil_ppf_create_mifs.py -f ../hex/run_pfir_m_pfir_coeff_fircls1_16taps_128points_16b.dat -t 16 -p 128 -w 1 -c 16
-- python fil_ppf_create_mifs.py -f ../hex/run_pfir_m_pfir_coeff_fircls1_16taps_128points_16b.dat -t 16 -p 128 -w 4 -c 16
--
-- yields:
--
-- . one_pfb_m_pfir_coeff_fircls1_16taps_128points_16b_1wb_#.mif, where # = 0:15
-- . one_pfb_m_pfir_coeff_fircls1_16taps_128points_16b_4wb_#.mif, where # = 0:64
-- . run_pfir_m_pfir_coeff_fircls1_16taps_128points_16b_1wb_#.mif, where # = 0:15
-- . run_pfir_m_pfir_coeff_fircls1_16taps_128points_16b_4wb_#.mif, where # = 0:64
--
-- The PFIR coefficient dat and mif files are kept in local ../hex
-- The input and expected output dat files are kept in local ../data.
......@@ -116,8 +116,8 @@ entity tb_fil_ppf_wide_file_data is
-- does not remove any of the data in order to be able to verify with the original coefficients values.
-- coef_dat_w : natural; -- = 16, data width of the FIR coefficients
-- end record;
g_coefs_file_prefix : string := "hex/one_pfb_m_pfir_coeff_fircls1";
g_data_file : string := "data/one_pfb_m_sinusoid_chirp_8b_16taps_128points_16b_16b.dat"; -- coefs, input and output data for 1 stream
g_coefs_file_prefix : string := "hex/run_pfir_m_pfir_coeff_fircls1";
g_data_file : string := "data/run_pfir_m_sinusoid_chirp_8b_16taps_128points_16b_16b.dat"; -- coefs, input and output data for 1 stream
g_data_file_nof_lines : natural := 25600; -- number of lines with input data that is available in the g_data_file
g_data_file_nof_read : natural := 5000; -- number of lines with input data to read and simulate, must be <= g_data_file_nof_lines
g_enable_in_val_gaps : boolean := FALSE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment