Commit 48a4a5db authored by Tristan Gingold's avatar Tristan Gingold

vme_funct_match: fix the function priority encoder.

In the previous code, a function that is selected but not supported for the AM was masking any
following function.
parent 1527b8f9
......@@ -95,9 +95,11 @@ begin
s_decode_start_1 <= '1';
for i in ader_i'range loop
if s_function(i) = '1' then
if s_function(i) = '1' and s_ader_am_valid(i) = '1' then
-- The function can be used when both it is selected and the AM
-- is supported.
s_function_sel <= i;
s_function_sel_valid <= s_ader_am_valid(i);
s_function_sel_valid <= '1';
end if;
end loop;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment