Forum Discussion
Altera_Forum
Honored Contributor
11 years agoBit widths for addition
Hi, I am trying to write a pipelined adder for a filter design. all the gaussianPixels are 8 bits wide. gaussianPartialSum0 <= ("00" & gaussianPixels(0)) + ('0' & gaussianPixels(3) & '0') ...
Altera_Forum
Honored Contributor
11 years agoIn VHDL, the width of the result is as wide as the largest vector in the sum.
So 4bits + 2 bits + 2 bits + 1bit = 4 bit result. If you need more, just add more bits to the largest operand