Update Makefile
diff --git a/Makefile b/Makefile
index b98c199..e7bd7b4 100644
--- a/Makefile
+++ b/Makefile
@@ -63,8 +63,18 @@
simenv:
docker pull efabless/dv:latest
+# Install Sandpiper
+.PHONY: sandpiper
+sandpiper:
+ python3 -m pip install --upgrade sandpiper-saas
+
+# Install Makerchip
+.PHONY: makerchip
+makerchip:
+ python3 -m pip install --upgrade makerchip-app
+
.PHONY: setup
-setup: install check-env install_mcw openlane pdk-with-volare
+setup: install check-env install_mcw openlane pdk-with-volare sandpiper makerchip
# Openlane
blocks=$(shell cd openlane && find * -maxdepth 0 -type d)
@@ -72,25 +82,21 @@
tlv_path=$(shell cd verilog/tlv && pwd)
.PHONY: $(blocks)
$(blocks): % :
- @if [ -v ${CI} ]; then\
- if [ -f $(tlv_path)/$@.tlv ]; then\
- if [ -f $(rtl_path)/$@.v ]; then\
- if [ $(tlv_path)/$@.tlv -nt $(rtl_path)/$@.v ]; then\
- sandpiper-saas -o $@.v -i $(tlv_path)/$@.tlv -pverilog --outdir $(rtl_path) --sv_url_inc --noline;\
- fi;\
- else \
- sandpiper-saas -o $@.v -i $(tlv_path)/$@.tlv -pverilog --outdir $(rtl_path) --sv_url_inc --noline;\
- fi;\
+ @if [ -f $(tlv_path)/$@.tlv ]; then\
+ if [ -f $(rtl_path)/$@.v ]; then\
+ if [ $(tlv_path)/$@.tlv -nt $(rtl_path)/$@.v ]; then\
+ sandpiper-saas -o $@.v -i $(tlv_path)/$@.tlv -pverilog --outdir $(rtl_path) --sv_url_inc --noline;\
fi;\
- else \
- echo "Skipping Sandpiper Execution in CI";\
+ else \
+ sandpiper-saas -o $@.v -i $(tlv_path)/$@.tlv -pverilog --outdir $(rtl_path) --sv_url_inc --noline;\
+ fi;\
fi
$(MAKE) -C openlane $*
dv_patterns=$(shell cd verilog/dv && find * -maxdepth 0 -type d)
dv-targets-rtl=$(dv_patterns:%=verify-%-rtl)
dv-targets-gl=$(dv_patterns:%=verify-%-gl)
-dv-targets-gl-sdf=$(dv_patterns:%=verify-%-gl-sdf)
+dv-targets-gl-sdf=$(dv_patterns q:%=verify-%-gl-sdf)
TARGET_PATH=$(shell pwd)
verify_command="source ~/.bashrc && cd ${TARGET_PATH}/verilog/dv/$* && export SIM=${SIM} && make"
@@ -239,4 +245,3 @@
cd $(CARAVEL_ROOT) && $(MAKE) help
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
-