1
library IEEE;  
use IEEE.std_logic_1164.all;  
use IEEE.std_logic_arith.all;  
use IEEE.math_real.all;  

这就是我在 VHDL 代码中声明库的方式。但是该工具给了我一个错误说:

错误:“math_real”未在库 ieee 中编译

我正在使用 Cadence 的 JasperGold。在那,我正在使用 FPV 应用程序。

和工具有关系吗?还是有其他问题?

4

1 回答 1

3

我找到了这个问题的解决方案。-lib我不得不在 Jaspergold 中使用 switch 选项和名称 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 一开始就忽略了它。

于 2016-05-13T06:25:40.497 回答