From 8f0df84224cf544ee468f507eafce94559a9ba89 Mon Sep 17 00:00:00 2001 From: Jeff DiCorpo <42048757+jeffdi@users.noreply.github.com> Date: Sat, 1 Jun 2024 08:56:13 -0700 Subject: [PATCH 1/3] add pdk enable dependency --- openlane/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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\ From 8dcf3ff820c0aed8ffaa285262874a32fa540a06 Mon Sep 17 00:00:00 2001 From: Jeff DiCorpo <42048757+jeffdi@users.noreply.github.com> Date: Sat, 1 Jun 2024 08:58:02 -0700 Subject: [PATCH 2/3] add pdk dependencies for lvs --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c8203d045..f3c1bb5ea 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 @@ -244,7 +246,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 +273,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)) From ffe4d102e99f1856532f9cb3d5f8457cc5b070b4 Mon Sep 17 00:00:00 2001 From: Jeff DiCorpo <42048757+jeffdi@users.noreply.github.com> Date: Sat, 1 Jun 2024 09:01:11 -0700 Subject: [PATCH 3/3] change for sky130B --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f3c1bb5ea..57feb89dd 100644 --- a/Makefile +++ b/Makefile @@ -63,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