1
\$\begingroup\$

Is the Verilog real data type synthesisable for a generic Xilinx FPGA? If not, what alternatives do I have for real number manipulation in synthesisable Verilog?

\$\endgroup\$
2
  • \$\begingroup\$ It depends on what tool you're using for synthesis... \$\endgroup\$
    – Ben Voigt
    Apr 11, 2012 at 14:55
  • \$\begingroup\$ @BenVoigt: I'm using ISE. \$\endgroup\$
    – Randomblue
    Apr 11, 2012 at 15:00

2 Answers 2

3
\$\begingroup\$

Short answer: No.

Your best bet would be to build your own floating-point block. There are open-source examples. While you can make it IEEE754 compatible, there is no need to. It all depends on your application.

Some applications requires the range provided by single/double-precision IEEE754 numbers. However, other applications only require a small range that can be emulated with fixed-point numbers instead.

\$\endgroup\$
1
\$\begingroup\$

No, but some FPGAs have a core that works with built-in hardware for floating point. This Altera white paper discusses some details. However you would have to instantiate them; they can't be inferred by ISE or most other tools.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.