1

想尝试VUnit,因此遵循入门 1-2-3

对于博客 1,我安装了 Python 版本。3.6 并使用 ModelSim 版本。10.5a。

对于博客 2,我下载了示例项目udp_ip_stack-master.zip 示例项目,但是当我运行时:

python run.py --compile

结果是如下所示的错误:

C:\work\udp_ip_stack-master>python run.py --compile
  ERROR - Cannot add library named work. work is a reference to the current library. http://www.sigasi.com/content/work-not-vhdl-library
Traceback (most recent call last):
  File "C:\Python36\lib\site-packages\vunit\ui.py", line 728, in main
    all_ok = self._main()
  File "C:\Python36\lib\site-packages\vunit\ui.py", line 765, in _main
    return self._main_compile_only()
  File "C:\Python36\lib\site-packages\vunit\ui.py", line 820, in _main_compile_only
    self._compile(simulator_if)
  File "C:\Python36\lib\site-packages\vunit\ui.py", line 855, in _compile
    continue_on_error=self._keep_compiling)
  File "C:\Python36\lib\site-packages\vunit\simulator_interface.py", line 133, in compile_project
    self.setup_library_mapping(project)
  File "C:\Python36\lib\site-packages\vunit\modelsim_interface.py", line 143, in setup_library_mapping
    project.add_library(library_name, library_dir, is_external=True)
  File "C:\Python36\lib\site-packages\vunit\project.py", line 68, in add_library
    self._validate_library_name(logical_name)
  File "C:\Python36\lib\site-packages\vunit\project.py", line 60, in _validate_library_name
    raise RuntimeError("Illegal library name 'work'")
RuntimeError: Illegal library name 'work'

该项目不应定义任何名为 的库work,并且作为示例项目,我希望它开箱即用。可能是什么问题?

4

1 回答 1

1

“modelsim.ini”文件包含:

work = work

这使得 VUnit 因上述错误而中断。

我怀疑相当多的模拟使用 work 作为实际库名称,例如vlib work在 ModelSim 中,这实际上工作正常,所以可能值得在 VUnit 中允许这样做,除非有充分的理由不允许这样做。

于 2017-03-06T15:18:05.857 回答