Guest
hello,
i am having a small problem with this pc of code, can anyone help me
with it.
during simulation i get an error - Index 8 out of bound 0 to 7 on line
4
for count in 0 to 2 loop
for row in 0 to 7 loop
tempc := 0;
for col in 0 to (temp - 1) loop
mat2(row)(col) <= (mat1(row)(tempc) + mat1(row)(tempc + 1)) / 2;
mat2(row)(col + temp) <= (mat1(row)(tempc) - mat1(row)(tempc + 1)) /
2;
tempc := tempc + 2;
end loop;
end loop;
mat1 <= mat2;
temp := temp/2;
end loop;
i am having a small problem with this pc of code, can anyone help me
with it.
during simulation i get an error - Index 8 out of bound 0 to 7 on line
4
for count in 0 to 2 loop
for row in 0 to 7 loop
tempc := 0;
for col in 0 to (temp - 1) loop
mat2(row)(col) <= (mat1(row)(tempc) + mat1(row)(tempc + 1)) / 2;
mat2(row)(col + temp) <= (mat1(row)(tempc) - mat1(row)(tempc + 1)) /
2;
tempc := tempc + 2;
end loop;
end loop;
mat1 <= mat2;
temp := temp/2;
end loop;