forked from XS-MLVP/UnityChipForXiangShan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 822 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: dut rtl
export PYTHONPATH := $(shell pwd):$(shell picker --show_xcom_lib_location_python):$(PYTHONPATH)
export ENABLE_XINFO := 0
export CFG := ""
export DUTS := "*"
export REPORT := "--toffee-report"
all: rtl dut test_all
update_python_deps:
pip3 uninstall -y -r requirements.txt
pip3 install -r requirements.txt
clean:
rm -rf out/*
clean_dut:
cd dut && ls | grep -v __init__.py | xargs rm -rf
clean_rtl:
cd rtl && ls | grep -v README.md | xargs rm -rf
test_all: dut
@python3 run.py --config $(CFG) $(KV) -- $(REPORT) -vs ut_*/ $(args)
test: dut
@python3 run.py --config $(CFG) $(KV) -- $(REPORT) -vs $(target) $(args)
dut: rtl
@python3 run.py --config $(CFG) --build $(DUTS) $(args)
rtl:
@python3 run.py --config $(CFG) --download-rtl $(args)
doc:
cd documents && hugo server --bind 0.0.0.0