~ruther/vhdl-i2c

0f18a3b34c7ae1dcc9b7fcd090a721df7a9bf53a — Rutherther 1 year, 5 months ago 33d341b
tests: add vunit run.py
1 files changed, 21 insertions(+), 0 deletions(-)

A run.py
A run.py => run.py +21 -0
@@ 0,0 1,21 @@
#!/usr/bin/env python3

from vunit import VUnit
from pathlib import Path

vu = VUnit.from_argv(compile_builtins = False)

vu.add_vhdl_builtins()

testbench_lib = vu.add_library('i2c_tb')
testbench_lib.add_source_files(Path(__file__).parent / 'tb/**/*.vhd')

utils_lib = vu.add_library('utils')
utils_lib.add_source_files(Path(__file__).parent / 'src/utils/**/*.vhd')

i2c_lib = vu.add_library('i2c')
i2c_lib.add_source_files(Path(__file__).parent / 'src/**/*.vhd')

vu.add_compile_option('nvc.a_flags', ['--relaxed'])

vu.main()

Do not follow this link