Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIf your tool understands and supports the following:
sum = (num1 + num2)/2**4; Then it is equivalent to discarding 4 bits from result unless it goes silly and creates a division module. alternatively if you can accept truncation errors then: sum <= num1(6 downto 4) + num2(6 downto 4); is almost equivalent but division is done on operands.