Multiplication of Decimal numbers in VHDL

Status
Not open for further replies.

ahsan

Member level 2
Joined
Jul 24, 2004
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Texas, USA
Activity points
512
Hi

If i want to perform multiplication of decimal numbers (like 22.75 * 3.142) in VHDL, then how it is possible ?
For performing such multiplication, I cannot use floating point type as they are non-sysnthesizable. If i use Booth algorithm, then it is for whole numbers, not for decimal numbers......so how can i do it.
 

Hello Ahsan,

Yes, You can not do the direct Decimal Multiplication in VHDL.
There are Two alternates for you,
1) You need to use functions to convert from Decimal to Bit type and then follow the algorithms, I dont know what algorithms u use.

2) You need to follow the IEEE representation of the Floating Point Representation, for representing the Decimal Numbers, and then use the algorithms for the implementataion.
You can refer to the IEEE 754 format. It is available in any of the Computer Organization Books, or you get in Google also.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…