Forum Discussion
Altera_Forum
Honored Contributor
14 years agoMatrix Adder
Hello, I have one captious question. I need to buil-up matrix adder. Totally 1920x1080=2073600 cells able to do three different operations with 24bit integer value: 1/ A+B=C 2/ A-B=C ...
Altera_Forum
Honored Contributor
14 years agoa - b == a + (-b) == a + (~b + 1) == (a << 1 | 1) + (~b << 1 | 1) >> 1 So changing from add to subtract just involves flipping a bit. You'll need to treat video data as a linear value stream - not a full frame 2d matrix. It is probably possibly to buffer some adjacent lines.