想要尝试VUnit,因此遵循Getting Started 1-2-3。
对于博客1,我安装了Python ver。 3.6并使用ModelSim ver。 10.5A。
对于博客2,我下载了示例项目udp_ip_stack-master.zip example project,但是当我运行时:
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
的库,作为示例项目我希望它开箱即用。可能是什么问题?
答案 0 :(得分:1)
" modelsim.ini"包含的文件:
work = work
这使得VUnit破坏了上述错误。
我怀疑相当多的模拟使用工作作为实际的库名,例如在ModelSim中做vlib work
,这实际上工作正常,所以可能值得在VUnit中允许这个,除非有充分的理由不允许这样做。