Forum Discussion
6 Replies
- Altera_Forum
Honored Contributor
Your code has floating point type, which is more for DSP processors. You have to use fixed-point to approximate the REAL value.
- Altera_Forum
Honored Contributor
how can I convert floating point to fixed point?
- Altera_Forum
Honored Contributor
You can manually convert them
OR Write Matlab script to do that Either case, you need to determine how may bits you need to use for. But this is a topic for DSP. Once you setting down on number of bit in the system. You need to run simulation probably in Matlab to verify the filter response. - Altera_Forum
Honored Contributor
I got it now, thanks.
- Altera_Forum
Honored Contributor
you can also take a look at the VHDL-2008 fixed point package. there's a version floating around that compiles in QII in VHDL-1993 mode. the package has features to convert float data to fixed point
- Altera_Forum
Honored Contributor
Sorry, I am not that experienced with VHDL-2008. Thanks for bring that up. Quartus II 9.1 SP1 or later supports VHDL-2008. I don't know if it supports the WHOLE VHDL-2008 yet.