diff --git a/Makefile b/Makefile index c8203d045..57feb89dd 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ MAKEFLAGS+=--warn-undefined-variables export CARAVEL_ROOT?=$(PWD)/caravel +export UPRJ_ROOT?=$(PWD) PRECHECK_ROOT?=${HOME}/mpw_precheck export MCW_ROOT?=$(PWD)/mgmt_core_wrapper SIM?=RTL @@ -43,7 +44,8 @@ export ROOTLESS ifeq ($(PDK),sky130A) SKYWATER_COMMIT=f70d8ca46961ff92719d8870a18a076370b85f6c - export OPEN_PDKS_COMMIT?=6d4d11780c40b20ee63cc98e645307a9bf2b2ab8 + export OPEN_PDKS_COMMIT_LVS?=6d4d11780c40b20ee63cc98e645307a9bf2b2ab8 + export OPEN_PDKS_COMMIT?=78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc export OPENLANE_TAG?=2023.07.19-1 MPW_TAG ?= mpw-9j @@ -61,7 +63,8 @@ endif ifeq ($(PDK),sky130B) SKYWATER_COMMIT=f70d8ca46961ff92719d8870a18a076370b85f6c - export OPEN_PDKS_COMMIT?=6d4d11780c40b20ee63cc98e645307a9bf2b2ab8 + export OPEN_PDKS_COMMIT_LVS?=6d4d11780c40b20ee63cc98e645307a9bf2b2ab8 + export OPEN_PDKS_COMMIT?=78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc export OPENLANE_TAG?=2023.07.19-1 MPW_TAG ?= mpw-9j @@ -244,7 +247,7 @@ precheck: @docker pull efabless/mpw_precheck:latest .PHONY: run-precheck -run-precheck: check-pdk check-precheck +run-precheck: check-pdk check-precheck enable-lvs-pdk @if [ "$$DISABLE_LVS" = "1" ]; then\ $(eval INPUT_DIRECTORY := $(shell pwd)) \ cd $(PRECHECK_ROOT) && \ @@ -271,6 +274,9 @@ run-precheck: check-pdk check-precheck efabless/mpw_precheck:latest bash -c "cd $(PRECHECK_ROOT) ; python3 mpw_precheck.py --input_directory $(INPUT_DIRECTORY) --pdk_path $(PDK_ROOT)/$(PDK)"; \ fi +.PHONY: enable-lvs-pdk +enable-lvs-pdk: + $(UPRJ_ROOT)/venv/bin/volare enable $(OPEN_PDKS_COMMIT_LVS) BLOCKS = $(shell cd lvs && find * -maxdepth 0 -type d) LVS_BLOCKS = $(foreach block, $(BLOCKS), lvs-$(block)) diff --git a/openlane/Makefile b/openlane/Makefile index d2a52864c..c9cb42c89 100644 --- a/openlane/Makefile +++ b/openlane/Makefile @@ -67,7 +67,7 @@ list: .PHONY: $(designs) $(designs) : export current_design=$@ -$(designs) : % : ./%/config.json +$(designs) : % : ./%/config.json enable-openlane-pdk ifneq (,$(wildcard ./$(current_design)/interactive.tcl)) $(docker_run) \ $(OPENLANE_IMAGE_NAME) sh -c $(openlane_cmd_interactive) @@ -84,6 +84,10 @@ endif @cp ./$*/runs/$*/PDK_SOURCES ../signoff/$*/ @cp ./$*/runs/$*/reports/*.csv ../signoff/$*/ +.PHONY: enable-openlane-pdk +enable-openlane-pdk: + $(UPRJ_ROOT)/venv/bin/volare enable $(OPEN_PDKS_COMMIT) + .PHONY: openlane openlane: check-openlane-env if [ -d "$(OPENLANE_ROOT)" ]; then\