Skip to content

Commit

Permalink
Add explicit python3 prefix to all python paths in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrie committed Dec 7, 2023
1 parent 38915fb commit e0a2c84
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tb/axi_crossbar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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();' > $@
Expand Down
2 changes: 1 addition & 1 deletion tb/axi_crossbar/test_axi_crossbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tb/axi_interconnect/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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();' > $@
Expand Down
2 changes: 1 addition & 1 deletion tb/axi_interconnect/test_axi_interconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tb/axil_crossbar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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();' > $@
Expand Down
2 changes: 1 addition & 1 deletion tb/axil_crossbar/test_axil_crossbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def test_axil_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()

Expand Down
2 changes: 1 addition & 1 deletion tb/axil_interconnect/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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();' > $@
Expand Down
2 changes: 1 addition & 1 deletion tb/axil_interconnect/test_axil_interconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def test_axil_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()

Expand Down

0 comments on commit e0a2c84

Please sign in to comment.