-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathtest-iec-c128.py
executable file
·30 lines (24 loc) · 1.04 KB
/
test-iec-c128.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
#!/bin/env python3
from vunit import VUnit
# Create VUnit instance by parsing command line arguments
vu = VUnit.from_argv(compile_builtins=False)
vu.add_vhdl_builtins()
# Create library 'lib'
lib = vu.add_library("lib")
lib.add_source_files("src/vhdl/tb_iec_serial_1581.vhdl");
lib.add_source_files("src/vhdl/iec_serial.vhdl");
lib.add_source_files("src/vhdl/debugtools.vhdl")
lib.add_source_files("src/vhdl/cputypes.vhdl")
lib.add_source_files("src/vhdl/victypes.vhdl")
lib.add_source_files("src/vhdl/ghdl_ram8x4096_sync.vhdl")
lib.add_source_files("src/vhdl/internal1581.vhdl")
lib.add_source_files("src/vhdl/dpram8x8192.vhdl")
lib.add_source_files("src/vhdl/driverom1581.vhdl")
lib.add_source_files("src/vhdl/d81.vhdl")
lib.add_source_files("src/vhdl/simple_cpu6502.vhdl")
lib.add_source_files("src/vhdl/cia1581.vhdl")
vu.set_compile_option("ghdl.a_flags", ["-frelaxed-rules","-fsynopsys"])
vu.set_sim_option("ghdl.elab_flags", ["-frelaxed-rules","-fsynopsys"])
vu.set_sim_option("ghdl.sim_flags", ["--ieee-asserts=disable"])
# Run vunit function
vu.main()