diff --git a/Makefile b/Makefile index a0413ac72..fe1a59ee3 100644 --- a/Makefile +++ b/Makefile @@ -334,14 +334,14 @@ setup-timing-scripts: $(TIMING_ROOT) .PHONY: install-caravel-cocotb install-caravel-cocotb: - rm -rf ./venv-cocotb + rm -rf $(PROJECT_ROOT)/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 + $(PROJECT_ROOT)/venv-cocotb/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir pip + $(PROJECT_ROOT)/venv-cocotb/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir caravel-cocotb .PHONY: setup-cocotb-env setup-cocotb-env: - @(python3 $(PROJECT_ROOT)/verilog/dv/setup-cocotb.py $(CARAVEL_ROOT) $(MCW_ROOT) $(PDK_ROOT) $(PDK) $(PROJECT_ROOT)) + @($(PROJECT_ROOT)/venv-cocotb/bin/$(PYTHON_BIN) $(PROJECT_ROOT)/verilog/dv/setup-cocotb.py $(CARAVEL_ROOT) $(MCW_ROOT) $(PDK_ROOT) $(PDK) $(PROJECT_ROOT)) .PHONY: setup-cocotb setup-cocotb: install-caravel-cocotb setup-cocotb-env simenv-cocotb @@ -426,4 +426,4 @@ caravel-sta: ./env/spef-mapping.tcl @echo ================================================================================================= @echo "You can find results for all corners in $(CUP_ROOT)/signoff/caravel/openlane-signoff/timing/" @echo "Check summary.log of a specific corner to point to reports with reg2reg violations" - @echo "Cap and slew violations are inside summary.log file itself" \ No newline at end of file + @echo "Cap and slew violations are inside summary.log file itself"