I am designing a FIR filter in Verilog with Quartus II. I need floats for my coefficients so I tried using float however reall is not supported by Quartus so what do I do?
我正在使用Quartus II在Verilog中设计一个FIR滤波器。我需要浮点数用于我的系数所以我尝试使用float但是Quartus不支持reall所以我该怎么办?
Thanks
1 个解决方案
#1
You can't use real, since it is not synthesizeable, follow IEEE-754 format for floating point. can be done by using structural modelling with Altera Megafunctions.
你不能使用real,因为它不可合成,遵循IEEE-754格式的浮点。可以通过使用Altera Megafunctions的结构建模来完成。
Its recommended to use MAC unit, with floating point options.
建议使用MAC单元,具有浮点选项。
check the below link http://quartushelp.altera.com/current/master.htm#mergedProjects/hdl/mega/mega_list_mega_lpm.htm
请查看以下链接http://quartushelp.altera.com/current/master.htm#mergedProjects/hdl/mega/mega_list_mega_lpm.htm
check for
- altfp_mult - multiplier
- altfp_add_sub - adder_subtract, configure for adder.
altfp_mult - 乘数
altfp_add_sub - adder_subtract,为加法器配置。
overall floating point arithmetic pdf link https://www.altera.com/en_US/pdfs/literature/ug/ug_altfp_mfug.pdf
整体浮点运算pdf链接https://www.altera.com/en_US/pdfs/literature/ug/ug_altfp_mfug.pdf
#1
You can't use real, since it is not synthesizeable, follow IEEE-754 format for floating point. can be done by using structural modelling with Altera Megafunctions.
你不能使用real,因为它不可合成,遵循IEEE-754格式的浮点。可以通过使用Altera Megafunctions的结构建模来完成。
Its recommended to use MAC unit, with floating point options.
建议使用MAC单元,具有浮点选项。
check the below link http://quartushelp.altera.com/current/master.htm#mergedProjects/hdl/mega/mega_list_mega_lpm.htm
请查看以下链接http://quartushelp.altera.com/current/master.htm#mergedProjects/hdl/mega/mega_list_mega_lpm.htm
check for
- altfp_mult - multiplier
- altfp_add_sub - adder_subtract, configure for adder.
altfp_mult - 乘数
altfp_add_sub - adder_subtract,为加法器配置。
overall floating point arithmetic pdf link https://www.altera.com/en_US/pdfs/literature/ug/ug_altfp_mfug.pdf
整体浮点运算pdf链接https://www.altera.com/en_US/pdfs/literature/ug/ug_altfp_mfug.pdf