Forum Discussion
19 Replies
- Altera_Forum
Honored Contributor
Altera have megafunctions for doing floating point arithmatic, so there is no conversion. There is a floating to fixed point megafunction too if you want to do fixed point instead.
- Altera_Forum
Honored Contributor
Quartus uses IEEE standard float format, as described in detail in the altfp_xxx Megafunctions manual.
- Altera_Forum
Honored Contributor
Here is the link:
http://www.altera.com/literature/ug/ug_altfp_mfug.pdf - Altera_Forum
Honored Contributor
Thanks everyone.:o
I was plan to use cyclone II as family devices and do a simple twice multiplication between twiddle factor and any input values. I am using Quartus II ver.8.1 currently. Is it possible to do so?:( - Altera_Forum
Honored Contributor
floating point is never simple. The floating point mega functions are quite large and have a few clocks of latency. But a couple inside a cyclone 2 should be fine.
- Altera_Forum
Honored Contributor
I also using NIOS II to boot in the program into DE2 Board. can it work?
- Altera_Forum
Honored Contributor
Yes - you can do a lot with FPGAs.
- Altera_Forum
Honored Contributor
Tricky, I am new with MegaFunction. What is the different between the VHDL coding in Megafunction and normal VHDL that I usually use in the lectures? How should i start my VHDL of floating point multiplication program?
- Altera_Forum
Honored Contributor
A megafunction is a block of Altera IP. Most of it is written in VHDL and/or verilog, so you can simulate it alongside your own bits of HDL. You can create megafunction blocks via the Megawizard in the tools menu. The megawizard will create VHDL files with all of the setup parameters already specified (or if you are more confident, instantiate them straight from your VHDL - you can get all the parameters in the megafunction help section). These can be instantiated in your VHDL. You just treat them as a black box.
- Altera_Forum
Honored Contributor
I still can't get it. is it first need to create a new custom megafunction variation?