Algorithm for fixed-point multiply and dividing

Status
Not open for further replies.

ali_th

Member level 3
Joined
Mar 30, 2007
Messages
60
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Activity points
1,630
Hello my dear friends
I need an algorithm that act flouting multiply and dividing with fixed point system. All register have 32 bits.
Thanks
 

i need this agorithm as soon as posible. please help me.
thanks alot
 

Hi

There was a project on opencores for IEEE745 "floating point" in behavioral verilog.
you can understand it and implement it in SW
If you need to do it from the beginning you need to study the IEEE745 standard for floating point representation.
a very simple approach is to shift the offset and modify the mentessa with this shift until the two numbers have the same mentessa and do divide between the two offsets and then renormalize the result for correct representaation
you should also take care of special cases and special numbers representations.

you can also check this course at stanford
https://www.stanford.edu/class/ee486/

Salam
Hossam Alzomor
www(.)i-g(.)org
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…