From eea34f0a6fc410e308074c6287ffe7ed6d0e2f50 Mon Sep 17 00:00:00 2001 From: Pepping <pepping> Date: Thu, 17 Nov 2016 17:19:15 +0000 Subject: [PATCH] Forces disbaled inputs to zeros instead of ones --- libraries/base/dp/src/vhdl/dp_bsn_align.vhd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/base/dp/src/vhdl/dp_bsn_align.vhd b/libraries/base/dp/src/vhdl/dp_bsn_align.vhd index 8c7110b46a..8f530c9253 100644 --- a/libraries/base/dp/src/vhdl/dp_bsn_align.vhd +++ b/libraries/base/dp/src/vhdl/dp_bsn_align.vhd @@ -372,7 +372,7 @@ BEGIN VARIABLE v_siso_arr_src : t_dp_siso_arr(g_nof_input-1 DOWNTO 0); VARIABLE v_sosi_arr : t_dp_sosi_arr(g_nof_input-1 DOWNTO 0); -- auxiliary sosi variable VARIABLE v_blk_buf : t_dp_sosi; -- auxiliary sosi variable - CONSTANT c_init_all_ones : STD_LOGIC_VECTOR(c_dp_stream_dsp_data_w-1 DOWNTO 0) := array_init('1', c_dp_stream_dsp_data_w); + CONSTANT c_init_all_zeros : STD_LOGIC_VECTOR(c_dp_stream_dsp_data_w-1 DOWNTO 0) := array_init('0', c_dp_stream_dsp_data_w); BEGIN -- default semi-constant v_siso_arr controls taking account of the dynamic r.in_en_arr v_siso_arr_hold := func_dp_stream_arr_select(r.in_en_arr, c_dp_siso_hold, c_dp_siso_flush); @@ -446,7 +446,7 @@ BEGIN v_sosi_arr := func_dp_stream_arr_select(r.in_en_arr, next_src_buf_arr, v_sosi_arr); v_sosi_arr := func_dp_stream_arr_set_control(v_sosi_arr, v_blk_buf); v_sosi_arr := func_dp_stream_arr_copy_valid_bsn(v_sosi_arr, r.in_en_arr); -- Copy the BSN of one of the valid streams to all other streams - v_sosi_arr := func_dp_stream_set_data(v_sosi_arr, c_init_all_ones, "ALL", r.in_en_arr); -- Fill the RE and IM fields of the disabled channels with ones. + v_sosi_arr := func_dp_stream_set_data(v_sosi_arr, c_init_all_zeros, "ALL", r.in_en_arr); -- Fill the RE and IM fields of the disabled channels with ones. nxt_r.src_out_arr <= v_sosi_arr; -- <<< End of same code as in s_data @@ -488,7 +488,7 @@ BEGIN v_sosi_arr := func_dp_stream_arr_select(r.in_en_arr, next_src_buf_arr, v_sosi_arr); -- output the pending input frame of all enabled user inputs v_sosi_arr := func_dp_stream_arr_set_control(v_sosi_arr, v_blk_buf); -- use the same reference block sosi control for all outputs v_sosi_arr := func_dp_stream_arr_copy_valid_bsn(v_sosi_arr, r.in_en_arr); -- Copy the BSN of one of the valid streams to all other streams - v_sosi_arr := func_dp_stream_set_data(v_sosi_arr, c_init_all_ones, "ALL", r.in_en_arr); -- Fill the RE and IM fields of the disabled channels with ones. + v_sosi_arr := func_dp_stream_set_data(v_sosi_arr, c_init_all_zeros, "ALL", r.in_en_arr); -- Fill the RE and IM fields of the disabled channels with ones. nxt_r.src_out_arr <= v_sosi_arr; -- at end of every block -- GitLab