Skip to content

Commit c57c4c4

Browse files
authoredFeb 25, 2025
Merge branch 'main' into cocotb
2 parents d4d1a15 + bb1ed2f commit c57c4c4

24 files changed

+2511719
-3239051
lines changed
 

‎Makefile

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export PDKPATH?=$(PDK_ROOT)/$(PDK)
3636
.PHONY: setup
3737
setup: check_dependencies install-frigate pdk-with-volare setup-cocotb
3838

39+
3940
.PHONY: check_dependencies
4041
check_dependencies:
4142
@if [ ! -d "$(PWD)/dependencies" ]; then \
@@ -58,20 +59,6 @@ install-volare:
5859
./venv/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir pip
5960
./venv/bin/$(PYTHON_BIN) -m pip install --upgrade --no-cache-dir volare
6061

61-
# Include mgmt should be cloned by make install repos inside frigate
62-
# .PHONY: install-mcw
63-
# install-mcw:
64-
# if [ -d "$(MGMT_ROOT)" ]; then\
65-
# MAKE_DIR="$(PWD)"; \
66-
# echo "Updating $(MGMT_ROOT)"; \
67-
# cd $(MGMT_ROOT) && \
68-
# git checkout $(MGMT_BRANCH) && git pull; \
69-
# cd "$$MAKE_DIR"; \
70-
# else \
71-
# echo "Cloning $(MGMT_REPO_URL) -b $(MGMT_BRANCH)"; \
72-
# git clone -b $(MGMT_BRANCH) $(MGMT_REPO_URL) $(MGMT_ROOT) --depth=1 --single-branch; \
73-
# fi
74-
7562
# Include frigate
7663
.PHONY: install-frigate
7764
install-frigate:
@@ -143,13 +130,12 @@ echo-var:
143130

144131

145132
# Harden with Openlane2
146-
OPENLANE2_TAG ?= 2.3.3
133+
OPENLANE2_TAG ?= 2.3.5
147134
OPENLANE2_IMAGE_NAME ?= efabless/openlane:$(OPENLANE2_TAG)
148135
OPENLANE2_RUN_TAG = $(shell date '+%y_%m_%d_%H_%M')
149136
OPENLANE2_USE_NIX ?= 1
150137
ROOTLESS ?= 0
151138
USER_ARGS = -u $$(id -u $$USER):$$(id -g $$USER)
152-
designs = $(shell cd $(PROJECT_ROOT)/openlane && find * -maxdepth 0 -type d)
153139
current_design = null
154140

155141
ifeq ($(ROOTLESS), 1)
@@ -208,17 +194,29 @@ list:
208194
@echo $(designs)
209195

210196
# export PYTHONPATH=$(PROJECT_ROOT)/openlane_plugin_Frigate:\$$PYTHONPATH
211-
.PHONY: $(designs)
212-
$(designs) : export current_design=$@
213-
$(designs) : % : $(PROJECT_ROOT)/openlane/%/config.yaml
214-
# $(current_design)
215-
@rm -rf $(PROJECT_ROOT)/openlane/$*/runs/$(OPENLANE2_RUN_TAG)
197+
designs = $(shell cd $(PROJECT_ROOT)/openlane && find * -maxdepth 0 -type d ! -name "user_project_wrapper")
216198
ifeq ($(OPENLANE2_USE_NIX),1)
217-
nix develop --command openlane $(openlane_args) $(openlane_extra_args)
199+
openlane_cmd=nix develop --command openlane $(openlane_args) $(openlane_extra_args)
218200
else
219-
$(PROJECT_ROOT)/openlane2-venv/bin/python3 -m openlane $(docker_mounts) $(openlane_extra_args) --dockerized $(openlane_args) $(openlane_extra_args)
201+
openlane_cmd=$(PROJECT_ROOT)/openlane2-venv/bin/python3 -m openlane $(docker_mounts) $(openlane_extra_args) --dockerized $(openlane_args) $(openlane_extra_args)
220202
endif
221-
@sh $(PROJECT_ROOT)/openlane/copy_views.sh $(PROJECT_ROOT) $* $(OPENLANE2_RUN_TAG)
203+
204+
define run_openlane
205+
rm -rf $(PROJECT_ROOT)/openlane/$*/runs/$(OPENLANE2_RUN_TAG)
206+
$(openlane_cmd) $1
207+
endef
208+
209+
.PHONY: user_project_wrapper
210+
user_project_wrapper: % : $(PROJECT_ROOT)/openlane/user_project_wrapper/config.yaml
211+
$(call run_openlane,$(PROJECT_ROOT)/openlane/user_project_wrapper/fixed_config.yaml)
212+
# $(openlane_cmd) $(PROJECT_ROOT)/openlane/user_project_wrapper/fixed_config.yaml -c "step"=Frigate.CustomApplyDEFTemplate
213+
sh $(PROJECT_ROOT)/openlane/copy_views.sh $(PROJECT_ROOT) $* $(OPENLANE2_RUN_TAG)
214+
215+
.PHONY: $(designs)
216+
$(designs) : export current_design=$@
217+
$(designs) : % : $(PROJECT_ROOT)/openlane/%/config.yaml
218+
$(call run_openlane)
219+
sh $(PROJECT_ROOT)/openlane/copy_views.sh $(PROJECT_ROOT) $* $(OPENLANE2_RUN_TAG)
222220

223221
.PHONY: harden
224222
harden: $(designs)

‎def/user_project_wrapper.def

Lines changed: 0 additions & 752244 deletions
This file was deleted.

‎def/user_project_wrapper.def.gz

4.84 MB
Binary file not shown.

‎gds/user_project_wrapper.gds.gz

108 KB
Binary file not shown.

0 commit comments

Comments
 (0)