Commit b86ede3d 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 8b9e164d
...@@ -95,9 +95,11 @@ begin ...@@ -95,9 +95,11 @@ begin
else else
s_decode_start_1 <= '1'; s_decode_start_1 <= '1';
for i in ader_i'range loop 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 <= i;
s_function_sel_valid <= s_ader_am_valid(i); s_function_sel_valid <= '1';
exit; exit;
end if; end if;
end loop; 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