Skip to content
Snippets Groups Projects
Commit ec2baa63 authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

-Used RESIZE_DP_DSP_DATA to extend the real and imaginary data to make it

 human readable in the wave window.
parent 6e370e7e
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,8 @@ END corr_multiplier; ...@@ -49,6 +49,8 @@ END corr_multiplier;
ARCHITECTURE str OF corr_multiplier IS ARCHITECTURE str OF corr_multiplier IS
SIGNAL common_complex_mult_src_out_arr : t_dp_sosi_arr(g_nof_inputs-1 DOWNTO 0);
BEGIN BEGIN
gen_common_complex_mult : FOR i IN 0 TO g_nof_inputs-1 GENERATE gen_common_complex_mult : FOR i IN 0 TO g_nof_inputs-1 GENERATE
...@@ -77,10 +79,15 @@ BEGIN ...@@ -77,10 +79,15 @@ BEGIN
in_br => snk_in_2arr_2(i)(1).re(g_data_w-1 DOWNTO 0), in_br => snk_in_2arr_2(i)(1).re(g_data_w-1 DOWNTO 0),
in_bi => snk_in_2arr_2(i)(1).im(g_data_w-1 DOWNTO 0), in_bi => snk_in_2arr_2(i)(1).im(g_data_w-1 DOWNTO 0),
in_val => snk_in_2arr_2(i)(0).valid, in_val => snk_in_2arr_2(i)(0).valid,
out_pr => src_out_arr(i).re(2*g_data_w-1 DOWNTO 0), out_pr => common_complex_mult_src_out_arr(i).re(2*g_data_w-1 DOWNTO 0),
out_pi => src_out_arr(i).im(2*g_data_w-1 DOWNTO 0), out_pi => common_complex_mult_src_out_arr(i).im(2*g_data_w-1 DOWNTO 0),
out_val => src_out_arr(i).valid out_val => common_complex_mult_src_out_arr(i).valid
); );
src_out_arr(i).re <= RESIZE_DP_DSP_DATA(common_complex_mult_src_out_arr(i).re(2*g_data_w-1 DOWNTO 0));
src_out_arr(i).im <= RESIZE_DP_DSP_DATA(common_complex_mult_src_out_arr(i).im(2*g_data_w-1 DOWNTO 0));
src_out_arr(i).valid <= common_complex_mult_src_out_arr(i).valid;
END GENERATE; END GENERATE;
END str; END str;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment