Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Floating point operations in vhdl.
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 11th August 16:09
mariuszk
External User
 
Posts: 1
Default Floating point operations in vhdl.



Hello,
I am looking for effectiv vhdl floating point type.
I need make "+" and "*" operations.
It would be fine if that type had changed (as parameter) bit precision
had 8 to 20 bits.

Thank you for any answer.

Best regards,
Mariusz
  Reply With Quote


 


2 11th August 16:09
External User
 
Posts: 1
Default Floating point operations in vhdl.



Hi

Try float_pkg_c.vhd from http://www.eda-stds.org/fphdl/

David Bishop is working on fixed and floating point libraries which
will be part of VHDL-2006 from IEEE. The file above is a compatibility
version of these libraries designed to work with current synthesis and
simulation tools (which naturally don't support VHDL-2006).

I use the fixed point version and it works great. The nice part is that
it will soon be part of a IEEE standard.

If you plan to synthesize, be warned that floating point operations in
general take up plenty of space.

If you have trouble getting the library to compile, let me know.
Richard
  Reply With Quote


 


3 11th August 16:10
mariuszk
External User
 
Posts: 1
Default Floating point operations in vhdl.


rnbrady@gmail.com napisal(a):


Hello,
Thanks. It is looks very interesting.

But how is libraries behave in case multiplication "*"?
What is frequency?
I don't find any pipeline option (make multiplication with higher
freqency but in few clock tact).
Thank you for answer
Mariusz
  Reply With Quote
4 11th August 16:10
ben jones
External User
 
Posts: 1
Default Floating point operations in vhdl.


If you are targeting Xilinx FPGAs, there are Floating Point operator cores
available from the core generator. They are fully parameterizable in both
precision and latency. You can instantiate them in VHDL (they won't be
automatically inserted by synthesis, I'm afraid).

If you are targeting some other FPGA or ASIC technology, then of course this
will not help you!

Cheers,

-Ben-
  Reply With Quote
5 11th August 16:10
mariuszk
External User
 
Posts: 1
Default Floating point operations in vhdl.


Ben Jones napisal(a):

Hello,
I want use Xilinx FPGAs.
Could you precise where can I find that core generator.
What tools do you use?

Sorry. I do not understand yours sentence.
"You can instantiate them in VHDL (they won't be automatically inserted
by synthesis, I'm afraid)."

Best Regards
Mariusz
  Reply With Quote
6 2nd September 02:34
ben jones
External User
 
Posts: 1
Default Floating point operations in vhdl.


Hi Mariusz,


The Core Generator is part of the ISE tool suite from Xilinx. It is also
available from the free "Webpack" edition of the tools. You can read all
about it at the Xilinx website.


So what I mean is, to use these operators you would have to instantiate them
as components and wire up the ports into your design. You cannot just write
"c <= a * b" and have the synthesis tool create a floating-point multiplier
(not yet, anyway). Instead you would write something like:

my_mult : fp_multiplier
generic map (...) port map
( clk => clock,
a => a,
b => b,
result => c
...
);

Hope that helps.

-Ben-
  Reply With Quote
Reply


Thread Tools
Display Modes




666