Ironlord
Member level 3
Hello again, guys!
I am designing a SPWM, which works with a Look-Up Table (LUT) in order to "draw" the sines and a triangular wave.
Now I want to be able to modify the amplitude of the sine, so I was thinking about threating the LUT values as fixed point, so I can multiply it for 0.xx (0-99% of amplitude). If there's a better method, I'm interested aswell.
Good, in order to work with fixed point, I need a library. I have tried with "fixed_pkg_c" following this tutorial: https://vhdlguru.blogspot.com/2010/03/fixed-point-operations-in-vhdl-tutorial.html But it doesn't work for me, Quartus id returning error messages about the compilation.
Error (10481): VHDL Use Clause error at fixed_pkg_c.vhd(23): design library "IEEE_PROPOSED" does not contain primary unit "fixed_float_types". Verify that the primary unit exists in the library and has been successfully compiled.
I have readen it is needed to comile with VHDL-93, I don't know if that's true or not, nor how to change the compilation process. Also, I am working with SoC, so the HPS is needed. I don't know if that's important to say or not.
What do you suggest?
Thank you for your help.
I am designing a SPWM, which works with a Look-Up Table (LUT) in order to "draw" the sines and a triangular wave.
Now I want to be able to modify the amplitude of the sine, so I was thinking about threating the LUT values as fixed point, so I can multiply it for 0.xx (0-99% of amplitude). If there's a better method, I'm interested aswell.
Good, in order to work with fixed point, I need a library. I have tried with "fixed_pkg_c" following this tutorial: https://vhdlguru.blogspot.com/2010/03/fixed-point-operations-in-vhdl-tutorial.html But it doesn't work for me, Quartus id returning error messages about the compilation.
Error (10481): VHDL Use Clause error at fixed_pkg_c.vhd(23): design library "IEEE_PROPOSED" does not contain primary unit "fixed_float_types". Verify that the primary unit exists in the library and has been successfully compiled.
I have readen it is needed to comile with VHDL-93, I don't know if that's true or not, nor how to change the compilation process. Also, I am working with SoC, so the HPS is needed. I don't know if that's important to say or not.
What do you suggest?
Thank you for your help.