~ruther/vhdl-i2c

ref: b1f70489999e3922af2a934aa5a477a7b477484d vhdl-i2c/run.py -rw-r--r-- 779 bytes
b1f70489 — Rutherther tests: add possibility to check sda stability in mcu_slave 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
22
23
24
25
26
27
#!/usr/bin/env python3

from vunit import VUnit
from pathlib import Path

vu = VUnit.from_argv(compile_builtins = False)

vu.add_vhdl_builtins()

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

mcu_slave_tb_lib = vu.add_library('mcu_slave_tb')
mcu_slave_tb_lib.add_source_files(Path(__file__).parent / 'tb/mcu_slave/**/*.vhd')

utils_lib = vu.add_library('mcu_slave')
utils_lib.add_source_files(Path(__file__).parent / 'src/mcu_slave/**/*.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