shaiko
Advanced Member level 5
Hello,
I'd like to compare two memory arrays in real time (the elements of the array are changing) and output a true or false flag accordingly. Will the following code work:
process (memory_array_1, memory_array_2, flag) is
begin
for i in 0 to memory_depth - 1 loop
if memory_array_1(i) = memory_array_2(i) then
flag <= '1';
else
flag <= '1';
end if;
end loop;
end process;
I'd like to compare two memory arrays in real time (the elements of the array are changing) and output a true or false flag accordingly. Will the following code work:
process (memory_array_1, memory_array_2, flag) is
begin
for i in 0 to memory_depth - 1 loop
if memory_array_1(i) = memory_array_2(i) then
flag <= '1';
else
flag <= '1';
end if;
end loop;
end process;