我正在尝试下载ubuntu上的myhld并安装协同模拟。myhdl安装得很好,但在执行协同模拟安装后,我无法正确运行下载包中提供的测试用例。运行生成的测试时出现错误。
我已经使用pip3安装了myhld,安装了myhdl用于协同模拟,我已经进入了我的协同模拟目录
~/.local/share/myhdl/cosimulation/icarus/
点击make,就像makefile告诉我的那样。已创建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
安装后,移至cosimulation after outpout 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‘的模块
发布于 2019-09-25 16:26:27
我刚刚遇到了这个问题。pip install仅在共享下安装cosimulation目录,但test_gray.py会附加路径“../example/manual”。这就是test_gray_properties.py应该在的地方,但不是。
https://stackoverflow.com/questions/57918298
复制相似问题