首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在ghdl安装中缺少vhld 2008库

在ghdl安装中缺少vhld 2008库
EN

Stack Overflow用户
提问于 2020-04-14 15:36:11
回答 2查看 978关注 0票数 1

sudo apt-get install ghdl

似乎一切都安装正确,但没有VHDL2008库。如何添加这些内容?

代码语言:javascript
复制
/usr/bin/ghdl -i   --std=08 --work=work /home/user/Projects/endian_swapper/tests/../hdl/endian_swapper.vhdl && \
/usr/bin/ghdl -m   --std=08 --work=work endian_swapper_vhdl
/usr/bin/ghdl-gcc:warning: library ieee does not exists for v08
/usr/bin/ghdl-gcc:warning: library ieee does not exists for v08
/home/user/Projects/endian_swapper/tests/../hdl/endian_swapper.vhdl:42:9:error: cannot find resource library "ieee"
/home/user/Projects/endian_swapper/tests/../hdl/endian_swapper.vhdl:44:10:error: unit "std_logic_1164" not found in library "ieee"
/home/user/Projects/endian_swapper/tests/../hdl/endian_swapper.vhdl:45:10:error: unit "numeric_std" not found in library "ieee"

~

EN

回答 2

Stack Overflow用户

发布于 2020-04-28 05:16:20

您安装的GHDL包似乎是使用"openieee“构建的,而不是包含来自IEEE的库。这是因为许可/分发问题。您需要安装GHDL语言的“常规”版本,或者从https://github.com/ghdl/ghdl/tree/master/libraries下载并构建/安装库。

根据https://github.com/ghdl/ghdl/issues/1255#issuecomment-619308878的说法,在未来,用于VHDL2008的开源IEEE库将与GHDL2008的"openieee“版本一起分发。

票数 0
EN

Stack Overflow用户

发布于 2021-06-01 23:01:33

我也会在GHDL-v0.37中讨论这个问题。尝试安装开发人员版本。

代码语言:javascript
复制
git clone https://github.com/ghdl/ghdl.git
cd ghdl
sudo apt install gnat
./configure --prefix=/usr/local
make
make install

参考资料:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61202750

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档