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

Default set bg_src_out_arr and mux_src_out_arr to c_dp_sosi_rst when they are...

Default set bg_src_out_arr and mux_src_out_arr to c_dp_sosi_rst when they are not used, to avoid X in out_sosi_arr.
parent 992dd8d6
No related branches found
No related tags found
No related merge requests found
......@@ -194,6 +194,8 @@ BEGIN
no_bg : IF g_use_bg=FALSE GENERATE
reg_bg_ctrl_miso <= c_mem_miso_rst;
ram_bg_data_miso <= c_mem_miso_rst;
bg_src_out_arr <= (OTHERS=>c_dp_sosi_rst);
END GENERATE;
gen_bg : IF g_use_bg=TRUE GENERATE
......@@ -287,28 +289,25 @@ BEGIN
END GENERATE;
no_dp_mux : IF c_use_mux=FALSE GENERATE
---------------------------------------------------------------------------
-- User input only
---------------------------------------------------------------------------
gen_usr_input : IF g_use_usr_input=TRUE GENERATE
usr_siso_arr <= mux_src_in_arr;
mux_src_out_arr <= usr_sosi_arr;
END GENERATE;
---------------------------------------------------------------------------
-- BG only
---------------------------------------------------------------------------
gen_bg : IF g_use_bg=TRUE GENERATE
bg_src_in_arr <= mux_src_in_arr;
mux_src_out_arr <= bg_src_out_arr;
END GENERATE;
---------------------------------------------------------------------------
-- No multiplexer, so only one input or no input at all
---------------------------------------------------------------------------
no_dp_mux : IF c_use_mux=FALSE GENERATE -- so g_use_usr_input and g_use_bg are not both TRUE
-- default pass on flow control
usr_siso_arr <= mux_src_in_arr;
bg_src_in_arr <= mux_src_in_arr;
-- User input only, BG only or no input
mux_src_out_arr <= usr_sosi_arr WHEN g_use_usr_input=TRUE ELSE
bg_src_out_arr WHEN g_use_bg=TRUE ELSE
(OTHERS=>c_dp_sosi_rst);
END GENERATE;
-----------------------------------------------------------------------------
-- Multiplex user input and BG
-----------------------------------------------------------------------------
gen_dp_mux : IF c_use_mux=TRUE GENERATE
gen_dp_mux : IF c_use_mux=TRUE GENERATE -- so g_use_usr_input and g_use_bg are both TRUE
gen_streams : FOR I IN 0 TO g_nof_streams-1 GENERATE
-- Add user xon flow control if the user input does not already support it
u_dp_xonoff : ENTITY dp_lib.dp_xonoff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment