对于博客 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
,并且作为示例项目,我希望它开箱即用。可能是什么问题?