1

我正在尝试在 ubuntu 上下载 myhld 并安装 cosimulation。myhdl 安装得很好,但是在进行 cosimulation 安装时,我无法正确运行下载包中提供的测试用例。运行 make 测试时出现错误。

我已经使用 pip3 install myhdl 安装了 myhld 以进行协同仿真 我已经进入我的协同仿真目录

~/.local/share/myhdl/cosimulation/icarus/

就像makefile告诉我的那样点击make。创建了一个 myhdl.vpi。我将该 myhdl.vpi 文件复制到测试目录中

~/.local/share/myhdl/cosimulation/icarus/test

在这里,我使用 cmd python3 test_all.py 运行了 test_all.py

http://www.myhdl.org/start/installation.html

pip3 安装 myhdl

安装后移动到 cosimulator 输出目录 cd ~/.local/share/myhdl/cosimulation/icarus

制作 cp myhdl.vpi 测试/

python3 test_all.py

我希望测试通过,但未能产生错误

回溯(最近一次调用最后一次):文件“test_gray.py”,第 27 行,导入 test_gray_properties,test_gray_original ModuleNotFoundError:没有名为“test_gray_properties”的模块

4

1 回答 1

0

我刚遇到这个问题。pip install 只安装了共享下的 cosimulation 目录,但是 test_gray.py 附加了路径“../../../example/manual”。这是 test_gray_properties.py 的位置,但不是。

于 2019-09-25T08:26:26.603 回答