Skip to content

Commit a01f3f0

Browse files
authored
Merge pull request #364 from efabless/add-pdk-enable-dependencies
Add pdk enable dependencies
2 parents 6101d4b + ffe4d10 commit a01f3f0

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
MAKEFLAGS+=--warn-undefined-variables
1717

1818
export CARAVEL_ROOT?=$(PWD)/caravel
19+
export UPRJ_ROOT?=$(PWD)
1920
PRECHECK_ROOT?=${HOME}/mpw_precheck
2021
export MCW_ROOT?=$(PWD)/mgmt_core_wrapper
2122
SIM?=RTL
@@ -43,7 +44,8 @@ export ROOTLESS
4344

4445
ifeq ($(PDK),sky130A)
4546
SKYWATER_COMMIT=f70d8ca46961ff92719d8870a18a076370b85f6c
46-
export OPEN_PDKS_COMMIT?=6d4d11780c40b20ee63cc98e645307a9bf2b2ab8
47+
export OPEN_PDKS_COMMIT_LVS?=6d4d11780c40b20ee63cc98e645307a9bf2b2ab8
48+
export OPEN_PDKS_COMMIT?=78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc
4749
export OPENLANE_TAG?=2023.07.19-1
4850
MPW_TAG ?= mpw-9j
4951

@@ -61,7 +63,8 @@ endif
6163

6264
ifeq ($(PDK),sky130B)
6365
SKYWATER_COMMIT=f70d8ca46961ff92719d8870a18a076370b85f6c
64-
export OPEN_PDKS_COMMIT?=6d4d11780c40b20ee63cc98e645307a9bf2b2ab8
66+
export OPEN_PDKS_COMMIT_LVS?=6d4d11780c40b20ee63cc98e645307a9bf2b2ab8
67+
export OPEN_PDKS_COMMIT?=78b7bc32ddb4b6f14f76883c2e2dc5b5de9d1cbc
6568
export OPENLANE_TAG?=2023.07.19-1
6669
MPW_TAG ?= mpw-9j
6770

@@ -244,7 +247,7 @@ precheck:
244247
@docker pull efabless/mpw_precheck:latest
245248

246249
.PHONY: run-precheck
247-
run-precheck: check-pdk check-precheck
250+
run-precheck: check-pdk check-precheck enable-lvs-pdk
248251
@if [ "$$DISABLE_LVS" = "1" ]; then\
249252
$(eval INPUT_DIRECTORY := $(shell pwd)) \
250253
cd $(PRECHECK_ROOT) && \
@@ -271,6 +274,9 @@ run-precheck: check-pdk check-precheck
271274
efabless/mpw_precheck:latest bash -c "cd $(PRECHECK_ROOT) ; python3 mpw_precheck.py --input_directory $(INPUT_DIRECTORY) --pdk_path $(PDK_ROOT)/$(PDK)"; \
272275
fi
273276

277+
.PHONY: enable-lvs-pdk
278+
enable-lvs-pdk:
279+
$(UPRJ_ROOT)/venv/bin/volare enable $(OPEN_PDKS_COMMIT_LVS)
274280

275281
BLOCKS = $(shell cd lvs && find * -maxdepth 0 -type d)
276282
LVS_BLOCKS = $(foreach block, $(BLOCKS), lvs-$(block))

openlane/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ list:
6767

6868
.PHONY: $(designs)
6969
$(designs) : export current_design=$@
70-
$(designs) : % : ./%/config.json
70+
$(designs) : % : ./%/config.json enable-openlane-pdk
7171
ifneq (,$(wildcard ./$(current_design)/interactive.tcl))
7272
$(docker_run) \
7373
$(OPENLANE_IMAGE_NAME) sh -c $(openlane_cmd_interactive)
@@ -84,6 +84,10 @@ endif
8484
@cp ./$*/runs/$*/PDK_SOURCES ../signoff/$*/
8585
@cp ./$*/runs/$*/reports/*.csv ../signoff/$*/
8686

87+
.PHONY: enable-openlane-pdk
88+
enable-openlane-pdk:
89+
$(UPRJ_ROOT)/venv/bin/volare enable $(OPEN_PDKS_COMMIT)
90+
8791
.PHONY: openlane
8892
openlane: check-openlane-env
8993
if [ -d "$(OPENLANE_ROOT)" ]; then\

0 commit comments

Comments
 (0)