我正在尝试在ubuntu上下载myhld并安装协同仿真。 myhdl的安装正常,但是在进行协同仿真安装后,我无法正确运行下载包中提供的测试用例。运行已进行的测试时会出现错误。
我已经使用pip3 install myhdl安装了myhld 对于协同仿真,我已经进入了我的协同仿真目录,
〜/ .local / share / myhdl / cosimulation / icarus /
hit 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
在安装后移至用于协同模拟器输出的目录 cd〜/ .local / share / myhdl / cosimulation / icarus
制作 cp myhdl.vpi测试/
python3 test_all.py
我希望测试能够通过,但未能产生错误
回溯(最近通话最近): 在第27行的文件“ test_gray.py”中 导入test_gray_properties,test_gray_original ModuleNotFoundError:没有名为“ test_gray_properties”的模块
答案 0 :(得分:0)
我刚遇到这个问题。 pip安装仅将共享目录安装在共享目录下,但是test_gray.py附加路径“ ../../../example/manual”。这是test_gray_properties.py的位置,但不是。