~ruther/vhdl-i2c

ref: 1a805dd2063476e1dff9765995f8058ef4d0a029 vhdl-i2c/run.py -rw-r--r-- 529 bytes
1a805dd2 — Rutherther tests: add slave testbench 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