-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmakefile
More file actions
60 lines (42 loc) · 1.9 KB
/
makefile
File metadata and controls
60 lines (42 loc) · 1.9 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
ifndef debug
#debug :=
endif
TB_DIR=tb
BUILD=build
CONF=conf
FLAGS=-Wall -g2012 -gassertions -gstrict-expr-width
DEFINES=-DMISS_DET -DHEARTBEAT -DMOLD_MSG_IDS $(if $(debug),-DDEBUG -DDEBUG_ID)
WAVE_FILE=wave.vcd
VIEW=gtkwave
WAVE_CONF=wave.conf
all: top run
cnt_ones_thermo : cnt_ones_thermo.v
iverilog ${FLAGS} -s cnt_ones_thermo -o ${BUILD}/cnt_ones_thermo cnt_ones_thermo.v
dispatch: dispatch.v
iverilog ${FLAGS} -s dispatch -o ${BUILD}/dispatch cnt_ones_thermo.v dispatch.v
countdown: countdown.v
iverilog ${FLAGS} -s countdown -o ${BUILD}/countdown countdown.v
len_to_mask: len_to_mask.v
iverilog ${FLAGS} -s len_to_mask -o ${BUILD}/len_to_mask len_to_mask.v
header: header.v endian_flip
iverilog ${FLAGS} -s header -o ${BUILD}/header header.v endian_flip.v
miss_msg_det: miss_msg_det.v
iverilog ${FLAGS} -s miss_msg_det -o ${BUILD}/miss_msg_det_tb miss_msg_det.v
endian_flip: endian_flip.v
iverilog ${FLAGS} -s endian_flip -o ${BUILD}/endian_flip.v endian_flip.v
miss_msg_det_tb: miss_msg_det ${TB_DIR}/miss_msg_det_tb.v
iverilog ${FLAGS} -s miss_msg_det_tb ${DEFINES} -o ${BUILD}/miss_msg_det_tb miss_msg_det.v ${TB_DIR}/miss_msg_det_tb.v
vvp ${BUILD}/miss_msg_det_tb
moldudp64: moldudp64.v dispatch.v cnt_ones_thermo header len_to_mask miss_msg_det countdown endian_flip
iverilog ${FLAGS} -s moldudp64 ${DEFINES} -o ${BUILD}/moldudp64 cnt_ones_thermo.v countdown.v len_to_mask.v endian_flip.v header.v miss_msg_det.v dispatch.v moldudp64.v
tb: moldudp64.v ${TB_DIR}/moldudp64_tb.v dispatch.v cnt_ones_thermo header len_to_mask miss_msg_det countdown endian_flip
iverilog ${FLAGS} -s moldudp64_tb ${DEFINES} -o ${BUILD}/tb cnt_ones_thermo.v countdown.v len_to_mask.v endian_flip.v header.v miss_msg_det.v dispatch.v moldudp64.v ${TB_DIR}/moldudp64_tb.v
lib:top
echo "TODO"
run: tb
mkdir -p wave
vvp ${BUILD}/tb
wave: run
${VIEW} ${BUILD}/${WAVE_FILE} ${CONF}/${WAVE_CONF}
clean:
rm -fr ${BUILD}/*