forked from riscv/riscv-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 1.34 KB
/
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
ifndef REPO_HOME
$(error "Please run 'source ./bin/conf.sh' to setup the project workspace")
endif
specs:
$(MAKE) -C $(REPO_HOME)/doc/ specs
OPCODES_SPEC_SCALAR = $(REPO_HOME)/tools/opcodes-crypto-scalar-both \
$(REPO_HOME)/tools/opcodes-crypto-scalar-rv32 \
$(REPO_HOME)/tools/opcodes-crypto-scalar-rv64
OPCODES_SPEC_VECTOR = $(REPO_HOME)/tools/opcodes-crypto-vector
PARSEOPCODES = python3 $(REPO_HOME)/bin/better_parse_opcodes.py
opcodes:
$(PARSEOPCODES) verilog $(OPCODES_SPEC_SCALAR) > build/decode_scalar.v
$(PARSEOPCODES) verilog $(OPCODES_SPEC_VECTOR) > build/decode_vector.v
$(PARSEOPCODES) spike $(OPCODES_SPEC_SCALAR) > build/spike_scalar.h
$(PARSEOPCODES) spike $(OPCODES_SPEC_VECTOR) > build/spike_vector.h
$(PARSEOPCODES) binutils $(OPCODES_SPEC_SCALAR) > build/binutils_scalar.h
$(PARSEOPCODES) binutils $(OPCODES_SPEC_VECTOR) > build/binutils_vector.h
$(PARSEOPCODES) normal-parse-opcodes $(OPCODES_SPEC_SCALAR) > build/opcodes_scalar
$(PARSEOPCODES) normal-parse-opcodes $(OPCODES_SPEC_VECTOR) > build/opcodes_vector
$(PARSEOPCODES) sail $(OPCODES_SPEC_SCALAR) > build/scalar.sail
#$(PARSEOPCODES) sail $(OPCODES_SPEC_VECTOR) > build/vector.sail
clean:
$(MAKE) -C $(REPO_HOME)/doc/ clean
$(MAKE) -C $(REPO_HOME)/benchmarks/hash/sha3 clean
doxygen:
doxygen benchmarks/doxygen.conf