-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
55 lines (31 loc) · 1.54 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
DCP = static_routed_v1.dcp
PR_SRCS = conv_test/conv_layer.cpp conv_test/conv_layer.h fc_test/fc_layer.cpp fc_test/fc_layer.h 8v3_shell/create_pr2_nn.tcl 8v3_shell/create_pr2_0.tcl 8v3_shell/create_pr2_1.tcl 8v3_shell/pr_region_2_bd.tcl
all: conv_layer fc_layer hw_conv_layer hw_fc_layer
conv_layer: conv_test/* util/*
g++ conv_test/*.cpp conv_test/*.c util/*.cpp -I conv_test -I./ -o conv_layer -std=c++11
hw_conv_layer: conv_test/* util/*
g++ -DHW_TEST conv_test/*.cpp conv_test/*.c util/*.cpp -I conv_test -I./ -o hw_conv_layer -std=c++11
fc_layer: fc_test/* util/*
g++ fc_test/*.cpp fc_test/*.c util/*.cpp -I fc_test -I./ -o fc_layer -std=c++11
hw_fc_layer: fc_test/* util/*
g++ -DHW_TEST fc_test/*.cpp fc_test/*.c util/*.cpp -I fc_test -I./ -o hw_fc_layer -std=c++11
conv_hls: conv_test/* util/*
vivado_hls hls_proj/conv_hls.tcl
fc_hls: conv_test/* util/*
vivado_hls hls_proj/conv_hls.tcl
pr: $(PR_SRCS) dcp conv_hls fc_hls
vivado -mode tcl -source 8v3_shell/create_pr2_nn.tcl -tclargs $(DCP)
pr_modify: $(PR_SRCS) dcp conv_hls fc_hls
vivado -mode gui -source 8v3_shell/create_pr2_0.tcl -tclargs $(DCP)
static:
vivado -mode tcl -source 8v3_shell/create_mig_shell.tcl
clean_sw:
rm -rf fc_layer hw_fc_layer conv_layer hw_conv_layer
clean_pr:
rm -rf 8v3_shell/pr_region_test
clean_static:
rm -rf 8v3_shell/mig_shell_ila_proj
clean_dcp:
rm -rf 8v3_shell/$(DCP)
dcp:
ls 8v3_shell/$(DCP) 2> /dev/null && echo "File exists" || (wget http://www.eecg.toronto.edu/~tarafda1/hypervisors/adm-8v3/${DCP} && mv ${DCP} 8v3_shell/)