Forum Discussion
CLyna
New Contributor
7 years agoHi guys I am writing code for shifting rows section in an AES algorithm stuck getting errors.
I am trying to create a matrix from a vector using for loops then mapping a matrix to move them to there required positions. but i keep getting the error Error (10028): Can't resolve multiple constan...
sstrell
Super Contributor
7 years agoI think the problem is you have your reset and loading of matrix1 in two separate processes, causing multiple drivers into matrix1. The code should probably look like this:
process (reset, clock)
BEGIN
if(reset) then
for i in 15 downto 0 loop
matrix1(15-i) <= (others => '0');
matrix2(15-i) <= (others => '0');
end loop;
elsif (start and rising_edge(clock)) then
FOR i IN 15 downto 0 LOOP
matrix1(15-i) <= data_in((8*i)+(7 downto (8*i)));
END LOOP;
else matrix1 <= matrix1;
end if;
end process;
#iwork4intel