Forum Discussion
Altera_Forum
Honored Contributor
9 years agoFloating Point multiplication problem!
Hello! I'm trying to mult 10-bit bus with floating point constant 0.5. To do this I am using a IP FP arithmetic blocks. First - conversion 10 bit bus to 32 float, then - multiplication block (3...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- I think thats may be a good idea, but I dont know how to do this. I'am a newbie. Can I do this with IP cores from Quartus? --- Quote End --- to multiply by fraction you scale say by 2^10 then discard 10 lsb fro result, e.g. 0.13 => round(0.13 x 2^10) = 133 In FPGA, you multiply input by 133 then discard 10 lsbs