~ruther/vhdl-i2c

ref: 5a7785ce711b4cc5ae47a59e38c3fa186d6945f2 vhdl-i2c/run.py -rw-r--r-- 529 bytes
5a7785ce — Rutherther tests: rename startstop_condition_detector testbench to contain tb 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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