Quartus II中的浮点数

时间:2022-12-07 12:17:24

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

  1. altfp_mult - multiplier
  2. altfp_mult - 乘数

  3. altfp_add_sub - adder_subtract, configure for adder.
  4. 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

  1. altfp_mult - multiplier
  2. altfp_mult - 乘数

  3. altfp_add_sub - adder_subtract, configure for adder.
  4. 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