FPGA synthesizable verilog code with floating point numbers

Status
Not open for further replies.

akipro

Newbie level 6
Joined
Mar 14, 2013
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,361
I'm trying to implement a linear programming problem on FPGA. I have used real data type to generate floating point numbers. The program compiled fine, but when I'm trying to synthesize it for my Xilinx Spartan-3E FPGA board it shows error that real is not supported by verilog. It seems that we cannot use real for synthesizable codes. So any suggestions on how to remove this error.
 

real type is not synthesizable.
Generally use real library for generating constants in code only. You have to convert floating point numbers to fixed point.
 

Real is not floating point. Floating point is synthesizable by using respective libraries (IP blocks, coregenerator, Megafunctions whatsover). But it's very resource consuming and fixed point is the better solution in many cases.
 

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