From e4d056a1635b20c75d07e2b02827679c29d20283 Mon Sep 17 00:00:00 2001 From: Dylan Barrie Date: Thu, 7 Dec 2023 00:03:01 -0800 Subject: [PATCH] Add python3 to all python paths to allow tests to be run under WSL correctly --- tb/axi_crossbar/Makefile | 2 +- tb/axi_crossbar/test_axi_crossbar.py | 2 +- tb/axi_interconnect/Makefile | 2 +- tb/axi_interconnect/test_axi_interconnect.py | 2 +- tb/axil_crossbar/Makefile | 2 +- tb/axil_interconnect/Makefile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tb/axi_crossbar/Makefile b/tb/axi_crossbar/Makefile index f3b292b..bcff12e 100644 --- a/tb/axi_crossbar/Makefile +++ b/tb/axi_crossbar/Makefile @@ -83,7 +83,7 @@ endif include $(shell cocotb-config --makefiles)/Makefile.sim $(WRAPPER).v: ../../rtl/$(DUT)_wrap.py - $< -p $(PARAM_S_COUNT) $(PARAM_M_COUNT) + python3 $< -p $(PARAM_S_COUNT) $(PARAM_M_COUNT) iverilog_dump.v: echo 'module iverilog_dump();' > $@ diff --git a/tb/axi_crossbar/test_axi_crossbar.py b/tb/axi_crossbar/test_axi_crossbar.py index c1730e1..9658b39 100644 --- a/tb/axi_crossbar/test_axi_crossbar.py +++ b/tb/axi_crossbar/test_axi_crossbar.py @@ -243,7 +243,7 @@ def test_axi_crossbar(request, s_count, m_count, data_width): wrapper_file = os.path.join(tests_dir, f"{wrapper}.v") if not os.path.exists(wrapper_file): subprocess.Popen( - [os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{s_count}", f"{m_count}"], + ["python3", os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{s_count}", f"{m_count}"], cwd=tests_dir ).wait() diff --git a/tb/axi_interconnect/Makefile b/tb/axi_interconnect/Makefile index 8034966..d063ba7 100644 --- a/tb/axi_interconnect/Makefile +++ b/tb/axi_interconnect/Makefile @@ -78,7 +78,7 @@ endif include $(shell cocotb-config --makefiles)/Makefile.sim $(WRAPPER).v: ../../rtl/$(DUT)_wrap.py - $< -p $(PARAM_S_COUNT) $(PARAM_M_COUNT) + python3 $< -p $(PARAM_S_COUNT) $(PARAM_M_COUNT) iverilog_dump.v: echo 'module iverilog_dump();' > $@ diff --git a/tb/axi_interconnect/test_axi_interconnect.py b/tb/axi_interconnect/test_axi_interconnect.py index 7c48d72..fbcaf64 100644 --- a/tb/axi_interconnect/test_axi_interconnect.py +++ b/tb/axi_interconnect/test_axi_interconnect.py @@ -237,7 +237,7 @@ def test_axi_interconnect(request, s_count, m_count, data_width): wrapper_file = os.path.join(tests_dir, f"{wrapper}.v") if not os.path.exists(wrapper_file): subprocess.Popen( - [os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{s_count}", f"{m_count}"], + ["python3", os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{s_count}", f"{m_count}"], cwd=tests_dir ).wait() diff --git a/tb/axil_crossbar/Makefile b/tb/axil_crossbar/Makefile index 20ef120..e48f495 100644 --- a/tb/axil_crossbar/Makefile +++ b/tb/axil_crossbar/Makefile @@ -71,7 +71,7 @@ endif include $(shell cocotb-config --makefiles)/Makefile.sim $(WRAPPER).v: ../../rtl/$(DUT)_wrap.py - $< -p $(PARAM_S_COUNT) $(PARAM_M_COUNT) + python3 $< -p $(PARAM_S_COUNT) $(PARAM_M_COUNT) iverilog_dump.v: echo 'module iverilog_dump();' > $@ diff --git a/tb/axil_interconnect/Makefile b/tb/axil_interconnect/Makefile index 8c51c9f..472cf50 100644 --- a/tb/axil_interconnect/Makefile +++ b/tb/axil_interconnect/Makefile @@ -66,7 +66,7 @@ endif include $(shell cocotb-config --makefiles)/Makefile.sim $(WRAPPER).v: ../../rtl/$(DUT)_wrap.py - $< -p $(PARAM_S_COUNT) $(PARAM_M_COUNT) + python3 $< -p $(PARAM_S_COUNT) $(PARAM_M_COUNT) iverilog_dump.v: echo 'module iverilog_dump();' > $@