iverilog - myhdl 协同仿真测试失败
问题描述
我正在尝试在 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”的模块
解决方案
我刚遇到这个问题。pip install 只安装了共享下的 cosimulation 目录,但是 test_gray.py 附加了路径“../../../example/manual”。这是 test_gray_properties.py 的位置,但不是。
推荐阅读
- azure - 在“训练对话框”的“对话学习者”中,我可以添加多个“动作”作为对一个“用户输入”的回答吗?
- hdfs - 使用不带 hadoop 的 Flume 将数据从本地目录传输到 Azure Data Lake 存储
- swift - 预期 ')' 完成 '#selector' 表达式
- javascript - 我可以在javascript中按键后阻止按键事件吗?
- c# - 如何获得表格的正确宽度?
- tableau-api - 表格计算字段中的 IF 部分未执行
- javascript - Angular ng-repeat 导致多个循环
- javascript - Firebase 实时数据库和 HTTP 请求:多轴上的复杂查询
- hyperledger-fabric - Hyperledger Fabric v1.3 - 共识
- svg - 带有过滤器的 SVG 图像 - 过滤器覆盖的区域大于图像