diff --git a/Makefile b/Makefile index 9b434786e..a0413ac72 100644 --- a/Makefile +++ b/Makefile @@ -334,10 +334,10 @@ setup-timing-scripts: $(TIMING_ROOT) .PHONY: install-caravel-cocotb install-caravel-cocotb: - rm -rf ./venv - $(PYTHON_BIN) -m venv ./venv - ./venv/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir pip - ./venv/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir caravel-cocotb + rm -rf ./venv-cocotb + $(PYTHON_BIN) -m venv ./venv-cocotb + ./venv-cocotb/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir pip + ./venv-cocotb/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir caravel-cocotb .PHONY: setup-cocotb-env setup-cocotb-env: @@ -348,17 +348,17 @@ setup-cocotb: install-caravel-cocotb setup-cocotb-env simenv-cocotb .PHONY: cocotb-verify-all-rtl cocotb-verify-all-rtl: - @(cd $(PROJECT_ROOT)/verilog/dv/cocotb && caravel_cocotb -tl user_proj_tests/user_proj_tests.yaml ) + @(cd $(PROJECT_ROOT)/verilog/dv/cocotb && $(PROJECT_ROOT)/venv-cocotb/bin/caravel_cocotb -tl user_proj_tests/user_proj_tests.yaml ) .PHONY: cocotb-verify-all-gl cocotb-verify-all-gl: - @(cd $(PROJECT_ROOT)/verilog/dv/cocotb && caravel_cocotb -tl user_proj_tests/user_proj_tests_gl.yaml -verbosity quiet) + @(cd $(PROJECT_ROOT)/verilog/dv/cocotb && $(PROJECT_ROOT)/venv-cocotb/bin/caravel_cocotb -tl user_proj_tests/user_proj_tests_gl.yaml -verbosity quiet) $(cocotb-dv-targets-rtl): cocotb-verify-%-rtl: - @(cd $(PROJECT_ROOT)/verilog/dv/cocotb && caravel_cocotb -t $* ) + @(cd $(PROJECT_ROOT)/verilog/dv/cocotb && $(PROJECT_ROOT)/venv-cocotb/bin/caravel_cocotb -t $* ) $(cocotb-dv-targets-gl): cocotb-verify-%-gl: - @(cd $(PROJECT_ROOT)/verilog/dv/cocotb && caravel_cocotb -t $* -verbosity quiet) + @(cd $(PROJECT_ROOT)/verilog/dv/cocotb && $(PROJECT_ROOT)/venv-cocotb/bin/caravel_cocotb -t $* -verbosity quiet) ./verilog/gl/user_project_wrapper.v: $(error you don't have $@)