1/1

|
FPU core
by Unknown on Mar 13, 2008 |
Not available! | ||
|
Hi all,
In my VHDL design I need to operate using float. I think I am going to use
FPU core of opencores. The problem is that I need to multiply unsigned
integer (16 bits) with float (32 bits single precision floating point), so I
suppose I have first to convert integer into float. What is the simplest way
to do this conversion?Is there some library or core?
The whole operation is: (it is use to calibrate Power received in a SFP)
a_4(32 bit float) * rxPwr^4(16 bit unsigned integer) + a_3(32 bit float) *
rxPwr^3(16 bit unsigned integer) + a_2(32 bit float) * rxPwr^2(16 bit
unsigned integer) + a_1(32 bit float) * rxPwr(16 bit unsigned integer) +
a_0(32 bit float)
Thanks in advance
--
Taho Dorta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.opencores.org/forums.cgi/cores/attachments/20080313/215d86ca/attachment.htm
|
|||
|
FPU core
by Unknown on Mar 14, 2008 |
Not available! | ||
|
On an aside on the Rx power question,
Put another way is this
aX^4 + bX^3 + cX^2 + dX^1 + e,
I seem to remember for school ( a long time ago ) that there is a real neat
way of solving and calculating this .
would that make the maths any easier ?
-----Original Message-----
From: cores-bounces at opencores.org [mailto:cores-bounces at opencores.org] On
Behalf Of Taho Dorta
Sent: 13 March 2008 08:56
To: cores at opencores.org
Subject: [oc] FPU core
Hi all,
In my VHDL design I need to operate using float. I think I am going to use
FPU core of opencores. The problem is that I need to multiply unsigned
integer (16 bits) with float (32 bits single precision floating point), so I
suppose I have first to convert integer into float. What is the simplest way
to do this conversion?Is there some library or core?
The whole operation is: (it is use to calibrate Power received in a SFP)
a_4(32 bit float) * rxPwr^4(16 bit unsigned integer) + a_3(32 bit float) *
rxPwr^3(16 bit unsigned integer) + a_2(32 bit float) * rxPwr^2(16 bit
unsigned integer) + a_1(32 bit float) * rxPwr(16 bit unsigned integer) +
a_0(32 bit float)
Thanks in advance
--
Taho Dorta
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 14/03/2008
12:33
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 14/03/2008
12:33
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.opencores.org/forums.cgi/cores/attachments/20080314/637108c7/attachment.htm
|
|||
1/1

