使用GHDL编译VHDL文件时,work库中找不到constant_package包的问题求助
GHDL编译VHDL文件时,work库中找不到constant_package包的问题求助
我现在有多个VHDL文件,其中一个想用来做常量包。理论上我知道只要把所有文件编译到同一个work“库”里就行,但不管是普通功能文件还是测试台文件,我都一直收到这个错误提示:
unit "constant_package" not found in library work
我的常量包代码如下:
library IEEE; use ieee.std_logic_1164.all; package constant_package is -- defining a bunch of constants end package constant_package;
我的普通功能文件和测试台文件开头的引用部分都是这样的:
library IEEE; -- 1 or more use ieee.,,,.all use work.constant_package.ALL; -- rest of the file
我用bash脚本执行编译命令,脚本内容如下:
#!/bin/bash cd /home/path-to-package/Packages/ rm work-*.cf cd /home/path-to-file/Component rm work-*.cf cd /home/path-to-testbench/Testbench rm work-*.cf cd /home/path-to-package/Packages/ ghdl -a constant_package.vhdl cd /home/path-to-file/Component ghdl...
备注:内容来源于stack exchange,提问作者user24805058
相关产品推荐
相关产品推荐

