Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- but 1/b also has a division then how can it accept?. or how to do it --- Quote End --- you can look at 'a' as an 8 bit integer, say 51 which is 00110011 say you wanted to divide by 3. we will actually multiply by 1/3 in 8 bits fractional, so 'b' is 0.010101 00110011 x 0.010101 = 000010001.0000100 51 * 0.328125 = 17.03125 the decimal point is an abstraction. anyhow, this may work for your application (maybe if 'b' only has a few possible values) and only uses a 9 bit signed multiplier. hopefully someone can double check my work, its been awhile...