From 5fcbd240919bb7da98f53e78414ffed43f9e4c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Mon, 28 Aug 2023 11:13:48 +0200 Subject: [PATCH] chore: add vunit run configuration python file --- run.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 run.py diff --git a/run.py b/run.py new file mode 100644 index 0000000000000000000000000000000000000000..054a13f6934c55c364b127b971b5601e1f1a821c --- /dev/null +++ b/run.py @@ -0,0 +1,15 @@ +from vunit import VUnit +from pathlib import Path + +vu = VUnit.from_argv(compile_builtins = False) + +vu.add_vhdl_builtins() +vu.add_json4vhdl() + +testbench_lib = vu.add_library('spi_tb') +testbench_lib.add_source_files(Path(__file__).parent / 'testbench/*.vhd') + +spi_lib = vu.add_library('spi') +spi_lib.add_source_files(Path(__file__).parent / 'src/**/*.vhd') + +vu.main()