Skip to content
Snippets Groups Projects
Commit eea34f0a authored by Pepping's avatar Pepping
Browse files

Forces disbaled inputs to zeros instead of ones

parent fd13e86f
No related branches found
No related tags found
No related merge requests found
...@@ -372,7 +372,7 @@ BEGIN ...@@ -372,7 +372,7 @@ BEGIN
VARIABLE v_siso_arr_src : t_dp_siso_arr(g_nof_input-1 DOWNTO 0); 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_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 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 BEGIN
-- default semi-constant v_siso_arr controls taking account of the dynamic r.in_en_arr -- 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); 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 ...@@ -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_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_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_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; nxt_r.src_out_arr <= v_sosi_arr;
-- <<< End of same code as in s_data -- <<< End of same code as in s_data
...@@ -488,7 +488,7 @@ BEGIN ...@@ -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_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_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_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; nxt_r.src_out_arr <= v_sosi_arr;
-- at end of every block -- at end of every block
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment