Commit 9f8d74a5 authored by Matthieu Cattin's avatar Matthieu Cattin

hdl: Fix bug in interrupt controller.

Was setting the interrupt source bits regardless of the interrupt mask.
Now a source bit is set only if the corresponding mask bit is set.
parent f02a2fdf
......@@ -147,7 +147,7 @@ begin
for I in 0 to irq_pending'length-1 loop
if rst_n_i = '0' then
irq_pending(I) <= '0';
elsif irq_src_p_i(I) = '1' then
elsif irq_src_p_i(I) = '1' and irq_en_mask(I) = '1' then
irq_pending(I) <= '1';
elsif irq_src_rst_en = '1' and irq_src_rst(I) = '1' then
irq_pending(I) <= '0';
......
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