From 3ef797b6a5e84f68054ac467e3cf8944388b124d Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Mon, 16 Mar 2020 17:09:35 +0100 Subject: [PATCH] Clarified EXIT statement. --- libraries/base/mm/src/vhdl/mm_bus_comb.vhd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/base/mm/src/vhdl/mm_bus_comb.vhd b/libraries/base/mm/src/vhdl/mm_bus_comb.vhd index 20bcd6b326..4fda2cd307 100644 --- a/libraries/base/mm/src/vhdl/mm_bus_comb.vhd +++ b/libraries/base/mm/src/vhdl/mm_bus_comb.vhd @@ -169,7 +169,9 @@ BEGIN ASSERT g_base_arr(I) MOD 2**g_width_arr(I) = 0 REPORT "Slave base address must be a multiple of the slave width." SEVERITY FAILURE; IF v_base = g_base_arr(I) / 2**g_width_arr(I) THEN slave_index_arr(0) <= I; -- return index of addressed slave - EXIT; + EXIT; -- Found addressed slave, no need to loop further. EXIT is + -- not realy needed, because there can only be one + -- addressed slave so loop further will not change the index. END IF; END LOOP; END PROCESS; -- GitLab