~ruther/vhdl-i2c

ref: 74d8f5e0d61065c4b93b2d905314d7b0ad608004 vhdl-i2c/run.py -rw-r--r-- 529 bytes
74d8f5e0 — Rutherther tests: add pull up sda, scl behavior 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