Error : 'math_real' is not compiled in library ieee
Error : 'math_real' is not compiled in library ieee
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
use IEEE.math_real.all;
这就是我在 VHDL 代码中声明库的方式。但是该工具给我一个错误提示:
Error : 'math_real' is not compiled in library ieee
我正在使用 Cadence 的 JasperGold。在那,我正在使用 FPV 应用程序。
跟工具有关系吗?还是有其他问题?
我找到了这个问题的答案。
我不得不在 Jaspergold 中使用开关选项 -lib
和名称 IEEE 再次分析它。
analyze -vhdl93 -lib ieee \
${ROOT_PATH}/resources/IEEE/rtl/vhdl/math_real_p.vhd \
${ROOT_PATH}/resources/IEEE/rtl/vhdl/math_real_b.vhd
其他包被编译到 IEEE 库中(例如 std_logic_1164
),无需再次编译。
由于math_real
不可合成,JasperGold一开始就忽略了它。
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
use IEEE.math_real.all;
这就是我在 VHDL 代码中声明库的方式。但是该工具给我一个错误提示:
Error : 'math_real' is not compiled in library ieee
我正在使用 Cadence 的 JasperGold。在那,我正在使用 FPV 应用程序。
跟工具有关系吗?还是有其他问题?
我找到了这个问题的答案。
我不得不在 Jaspergold 中使用开关选项 -lib
和名称 IEEE 再次分析它。
analyze -vhdl93 -lib ieee \
${ROOT_PATH}/resources/IEEE/rtl/vhdl/math_real_p.vhd \
${ROOT_PATH}/resources/IEEE/rtl/vhdl/math_real_b.vhd
其他包被编译到 IEEE 库中(例如 std_logic_1164
),无需再次编译。
由于math_real
不可合成,JasperGold一开始就忽略了它。