简体   繁体   English

myhdl协同仿真测试失败

[英]myhdl cosimulation test fail

I am trying to download myhld on ubuntu and also install the cosimulation. 我正在尝试在ubuntu上下载myhld并安装协同仿真。 myhdl was installed fine but when following the cosimulation installation i am unable to properly run the test case provided within the download package. myhdl的安装正常,但是在进行协同仿真安装后,我无法正确运行下载包中提供的测试用例。 an error is coming when running the made test. 运行进行的测试时出现错误。

I have installed myhld using pip3 install myhdl for co simulation I have gone into my cosimulation directory in 我已经使用pip3 install myhdl安装了myhld进行协同仿真,我已经进入了我的协同仿真目录

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

hit make just like the makefile told me. 就像makefile告诉我一样,打make。 a myhdl.vpi was created. myhdl.vpi已创建。 I copied that myhdl.vpi file into the test directory 我将myhdl.vpi文件复制到测试目录中

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

here I ran the test_all.py using the cmd python3 test_all.py 在这里我使用cmd python3 test_all.py运行了test_all.py

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

pip3 install myhdl pip3安装myhdl

after installing move to directory for cosimulator outpout cd ~/.local/share/myhdl/cosimulation/icarus 安装后移至协模拟器输出目录cd〜/ .local / share / myhdl / cosimulation / icarus

make cp myhdl.vpi test/ 使cp myhdl.vpi测试/

python3 test_all.py python3 test_all.py

I expected the test to pass but it failed to produce an error 我希望测试通过,但无法产生错误

Traceback (most recent call last): File "test_gray.py", line 27, in import test_gray_properties, test_gray_original ModuleNotFoundError: No module named 'test_gray_properties' 追溯(最近一次调用):文件“ test_gray.py”,第27行,在导入test_gray_properties,test_gray_original ModuleNotFoundError中:没有名为“ test_gray_properties”的模块

I just had this issue. 我刚遇到这个问题。 The pip install only installs the cosimulation directory under the shares, but the test_gray.py appends the path "../../../example/manual". pip安装仅将共享目录安装在共享目录下,但是test_gray.py附加路径“ ../../../example/manual”。 This is where the test_gray_properties.py would be, but isn't. 这是test_gray_properties.py的位置,但不是。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM