-
Notifications
You must be signed in to change notification settings - Fork 88
/
test.py
executable file
·33 lines (26 loc) · 1.16 KB
/
test.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
28
29
30
31
32
33
#!/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")
# Uncomment below for testing pixel driver
#lib.add_source_files("src/vhdl/tb_pixel_driver.vhdl")
#lib.add_source_files("src/vhdl/kb_matrix_ram.vhdl")
#lib.add_source_files("src/vhdl/debugtools.vhdl")
#lib.add_source_files("src/vhdl/mega65kbd_to_matrix.vhdl")
#lib.add_source_files("i2c_slave/rtl/vhdl/*.vhdl")
#lib.add_source_files("src/vhdl/pixel_driver.vhdl")
#lib.add_source_files("src/vhdl/frame_generator.vhdl")
#lib.add_source_files("src/vhdl/ghdl_ram32x1024_sync.vhdl")
lib.add_source_files("src/vhdl/tb_sdram.vhdl");
lib.add_source_files("src/vhdl/sdram_controller.vhdl");
lib.add_source_files("src/vhdl/debugtools.vhdl")
lib.add_source_files("src/vhdl/cputypes.vhdl")
lib.add_source_files("src/vhdl/is42s16320f_model.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()