-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (34 loc) · 928 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
38
39
40
41
42
43
default: all
sim:
ifneq ($(fw),)
@echo ">>> Build FW <<<"
ifeq ($(fw),coremark)
make -C ./fw/$(fw) PORT_DIR=../coremark_port secondary-outputs
else
make -C ./fw/$(fw) sim=1 clean all
endif
endif
make -C $(MAKECMDGOALS) $(target)
tb_%:
make -C sim $@
arch:
@echo ">>> Run architecture tests <<<"
make -C sim tests
bit:
make -C proj/quartus
python sim_common/results.py results.json parse_quartus proj/quartus/output_files/riscv_soc
python sim_common/results.py results.json html
clean:
@echo ">>> Clean all <<<"
make -C ./fw/test clean
make -C ./fw/dhrystone clean
make -C sim clean
make -C proj/quartus clean
wave:
gtkwave -a sim/top.gtkw -6 -7 --rcfile=sim/gtkwaverc sim/run/logs_top/wave.fst
results:
python sim_common/results.py results.json parse_quartus proj/quartus/output_files/riscv_soc
python sim_common/results.py results.json html
all: clean arch bit results
.PHONY: sim clean
$(V).SILENT: