Forum Discussion
Altera_Forum
Honored Contributor
15 years agomatrix operation in vhdl
Dear all, Can anyone give me a simple code for matrix operation such as multiply, add, substract or etc.? I am new with vhdl. Many thanks
Altera_Forum
Honored Contributor
15 years agousing negative indexes in arrays should be valid vhdl, but still seems a bit strange. And you you sure you want to use 255*255 matrices?
You could create the array type in a package and then use it for both your ports and the signals inside your architecture. The matrix size could be declared as a generic, as long as you are okay with a fixed size.