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 agoYes - that should work.
the numeric_std has a resize function that will get the correct size for you (though not append bits at the LSB) and if using the signed type, will sign extend the value.