Skip to content
Snippets Groups Projects
Commit 0e5aa57d authored by Mikael Henriksson's avatar Mikael Henriksson :runner:
Browse files

Make VUnit VHDL-tests working directory insensitive, closes #197

parent 98df396f
No related branches found
No related tags found
1 merge request!294Make VUnit VHDL-tests working directory insensitive, closes #197
Pipeline #94332 passed
#!/usr/bin/env python3
from os.path import abspath, dirname
from sys import argv
from vunit import VUnit
vu = VUnit.from_argv()
# Absolute path of the testbench directory
testbench_path = dirname(abspath(__file__))
vu = VUnit.from_argv(argv=['--output-path', f'{testbench_path}/vunit_out'] + argv[1:])
lib = vu.add_library("lib")
lib.add_source_files(
[
"*.vhdl",
f'{testbench_path}/*.vhdl',
]
)
lib.set_compile_option("modelsim.vcom_flags", ["-2008"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment