forked from MEGA65/mega65-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_r5_i2c.py
executable file
·27 lines (21 loc) · 904 Bytes
/
test_r5_i2c.py
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
#!/bin/env python3
from vunit import VUnit
# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv()
# Create library 'lib'
lib = vu.add_library("lib")
lib.add_source_files("src/vhdl/tb_r5_i2c.vhdl");
lib.add_source_files("src/vhdl/i2c_master.vhdl");
lib.add_source_files("src/vhdl/i2c_slave_frank_buss.vhdl");
lib.add_source_files("src/vhdl/pca9555.vhdl");
lib.add_source_files("src/vhdl/mp8869.vhdl");
lib.add_source_files("src/vhdl/debounce.vhdl");
lib.add_source_files("src/vhdl/mega65r5_board_i2c.vhdl");
lib.add_source_files("src/vhdl/debugtools.vhdl")
lib.add_source_files("src/vhdl/cputypes.vhdl")
vu.set_compile_option("ghdl.a_flags", ["-frelaxed-rules"])
vu.set_compile_option("ghdl.flags", ["-frelaxed-rules"])
vu.set_sim_option("ghdl.elab_flags", ["-frelaxed-rules"])
vu.set_sim_option("ghdl.sim_flags", ["--ieee-asserts=disable"])
# Run vunit function
vu.main()