Altera_Forum
Honored Contributor
14 years agoBest way for a 3d matrix
Hi, I need to use a matrix of 8x8, wich each position have a 8bits number. Something like 8x8x8.
I would like to know how can i do that. I actually did a test project using the following method: TYPE array1 IS ARRAY (0 TO 7, 0 TO 7, 0 TO 7) OF STD_LOGIC; SIGNAL matrix: array1; It compiles fine and seems to work, but when I simulate, I get unknown values in every position. For example, I have a 2x2x2 matrix input and a 2x2x2 matrix output. And I assign every position of the input to the same position to the output. On the simulator, I get all outputs as unknown, not the actuall 0 or 1. Is this the best way to declare a 3d matrix? If so, how can I fix the simulator? Thank You!!