Forum Discussion
Altera_Forum
Honored Contributor
10 years ago16 bits to 8 bits
Hi guys. I want to do multiplication operation. My data a is 8 bits and data B also 8 bits. Then, the width will be 16 bits when I used lpm_mult. Is there any method to reduce the output to 8 b...
Altera_Forum
Honored Contributor
10 years agoIn any case by reducing the output to 8 bit you lose some information.
You can take the higher 8bits of the result and discard the low significant digits (bits) Or you can take the lower 8bits if you need to keep the same units as inputs, but in most cases your result would overflow. In general you xtract any 8bit part at a convenient offset. The choice depends on what's the multiplication and result purpose.