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

Clarified EXIT statement.

parent f124d215
No related branches found
No related tags found
2 merge requests!28Master,!15Resolve L2SDP-27
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment