Forum Discussion
Altera_Forum
Honored Contributor
15 years agomultiplication of two 14bits number
Hi, i need to multiply two numbers of 14 bits and the result should have the same number of bits, how can i do this?
Altera_Forum
Honored Contributor
15 years agoThe problem isn't particularly related to FPGA arithmetic and signal processing. I suggest to clarify the intended behaviour by utilizing pencil, paper and a pocket calculator.
P:S.: For the more technical "how can I do", you can either decide for the "big" solution IEEE fixed point package, perform all saturation, truncation and rounding inline in your code (rather inconvenient, I think) or have one or more functions wrapping it.