generated from mattvenn/wokwi-verilog-gds-test
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
21 lines (19 loc) · 869 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
WOKWI_PROJECT_ID=341500800901579348
# logic puzzle and muxes
# 4 inverters 334348818476696146
# the clock divider 334335179919196756
fetch:
curl https://wokwi.com/api/projects/$(WOKWI_PROJECT_ID)/verilog > src/user_module_$(WOKWI_PROJECT_ID).v
sed -e 's/USER_MODULE_ID/$(WOKWI_PROJECT_ID)/g' template/scan_wrapper.v > src/scan_wrapper_$(WOKWI_PROJECT_ID).v
sed -e 's/USER_MODULE_ID/$(WOKWI_PROJECT_ID)/g' template/config.tcl > src/config.tcl
echo $(WOKWI_PROJECT_ID) > src/ID
# needs PDK_ROOT and OPENLANE_ROOT, OPENLANE_IMAGE_NAME set from your environment
harden:
docker run --rm \
-v $(OPENLANE_ROOT):/openlane \
-v $(PDK_ROOT):$(PDK_ROOT) \
-v $(CURDIR):/work \
-e PDK_ROOT=$(PDK_ROOT) \
-u $(shell id -u $(USER)):$(shell id -g $(USER)) \
$(OPENLANE_IMAGE_NAME) \
/bin/bash -c "./flow.tcl -overwrite -design /work/src -run_path /work/runs -tag wokwi"