同时使用std_logic_arith和NUMERIC_std时的库冲突 [英] Library conflict when using both std_logic_arith and numeric_std
本文介绍了同时使用std_logic_arith和NUMERIC_std时的库冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将std_logic_arith
算术库和numeric_std
库一起声明?
因为当我删除它们时,代码不起作用,但当我同时使用它们时,它会给出一个错误,表明这两个库之间存在冲突。
推荐答案
std_logic_arith
和numeric_std
包都声明了名为unsigned
的类型。
因此,如果use
两个包都使用.all
,则很可能会遇到冲突。
numeric_std
,跳过使用非标准包std_logic_arith
。尽管ieee
包位于ieee
库中,但std_logic_arith
包不是VHDL语言标准,而是Synopsys的开源包。
这篇关于同时使用std_logic_arith和NUMERIC_std时的库冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文