Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Floating point in VHDL and FPGA

Status
Not open for further replies.

mmp131316

Junior Member level 1
Joined
Mar 6, 2011
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,427
Hello everybody,

Does anyone know how to implement signed floating point operations like addition or multiplication in vhdl that would be synthesizable for FPGAs? And if there aren't any libraries available any hints how to represent in vhdl(for FPGA) this floating numbers? Code samples would be highly appreciated :-D.

Thanks for your time;-)!
 

Xilinx and Altera both supply IP cores for floating point. The answer is simply connect the cores to the algorithm you want.

But I ask do you really need floating point? FPGAs are not ideal for floating point as it takes a lot of resources and has a high latency. Fixed point is much much easier and uses much fewer resources!
 

Xilinx and Altera both supply IP cores for floating point. The answer is simply connect the cores to the algorithm you want.

But I ask do you really need floating point? FPGAs are not ideal for floating point as it takes a lot of resources and has a high latency. Fixed point is much much easier and uses much fewer resources!

Fixed point is also good, and does xilinx have a library for this fixed point representation?
 

There is no need for any special libraries as fixed point is simply integer arithmatic. It can be done simply in VHDL like:

a <= b + c;
d <= e * f;

etc.
 

Hi the VHDL-2008 revision now provides Floating point calculations library from ieee both testbench and for Synthesis. I have attached a zip which contains new libraries.
 

Attachments

  • altera.zip
    112.6 KB · Views: 59

Yes it does, but I wouldnt use it. It doesnt provide any pipelining that is required for floating point operations.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top