-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (30 loc) · 989 Bytes
/
Makefile
File metadata and controls
44 lines (30 loc) · 989 Bytes
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
PACK_NAME?=aeshpc_32bit_d${NSHARES}_lib
PACKAGE_DIR = $(abspath $(PACK_NAME))
AES_HPC_HDL_DIR = ./aes_enc128_32bits_hpc2
VERILOG_TOP = ${AES_HPC_HDL_DIR}/aes_enc128_32bits_hpc2.v
NSHARES=2
VERILOG_PARAMS = d=$(NSHARES)
VERILOG_SRC_DIRS = \
${AES_HPC_HDL_DIR} \
${AES_HPC_HDL_DIR}/masked_gadgets \
${AES_HPC_HDL_DIR}/rnd_gen \
${AES_HPC_HDL_DIR}/sbox
SIMU_FILE = simu_aeshpc_32bit.cpp
REQU_FILE = ../setup/requirements.txt
all: verime upd-setup clean
verime:
verime \
$(addprefix -y ,$(VERILOG_SRC_DIRS)) \
-g $(VERILOG_PARAMS) \
--top $(VERILOG_TOP) \
--pack $(PACK_NAME) \
--build-dir $(PACKAGE_DIR) \
--simu $(SIMU_FILE)
make -C $(PACKAGE_DIR)
upd-setup:
echo $(notdir $(shell find $(PACKAGE_DIR) -name '*.whl'))
sed -i '1 s/.*/$(notdir $(shell find $(PACKAGE_DIR) -name '*.whl'))/' $(REQU_FILE)
cp $(shell find $(PACKAGE_DIR) -name '*.whl') ../setup
clean:
rm -rf $(PACKAGE_DIR)
.PHONY: verime upd-setup clean all