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 ago --- Quote Start --- using negative indexes in arrays should be valid vhdl, but still seems a bit strange. --- Quote End --- Not completly strange. If you're doing image processing it can make your life easier when the centre pixel (which will probably be the output location) is (0,0), rather than (128, 128), then you can use the indices as the offset. But I agree with the other comment, 256x256 is an extreme array, you're essentially transposing an entire RAM. I get the feeling the OP is a software programmer with little hardware understanding.