-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
111 lines (83 loc) · 2.99 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
SBT = sbt
CUR_DIR = $(shell pwd)
OBJDIR = $(CUR_DIR)/obj
PROJECTDIR = $(CUR_DIR)/project
TARGETDIR = $(CUR_DIR)/target
hdl: unzip top movev update_kernel
top:
$(SBT) -mem 51200 "runMain HBMGraph.Top"
python add_init.py
movev:
cp Top.v ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/FinalBFS_32_ex.srcs/sources_1/imports/bfs_u280/
creat_kernel:
cd ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/;\
echo "exit" >> bfs_project.tcl
vivado -mode tcl -source bfs_project.tcl
mv -f FinalBFS_32_ex ../
cd ../../../
unzip:
unzip ScalaBFS-proj.zip
rm -rf ScalaBFS-proj.zip
update_kernel:
rm -f ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/exports/FinalBFS_32.xo
echo "open_project ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/FinalBFS_32_ex.xpr" > update_kernel.tcl
echo "update_compile_order -fileset sources_1" >> update_kernel.tcl
echo "source -notrace ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/imports/package_kernel.tcl" >> update_kernel.tcl
echo "package_project ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/FinalBFS_32 mycompany.com kernel FinalBFS_32" >> update_kernel.tcl
echo "package_xo -xo_path ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/exports/FinalBFS_32.xo -kernel_name FinalBFS_32 -ip_directory ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/FinalBFS_32 -kernel_xml ScalaBFS-proj/workspace/FinalBFS_32/vivado_rtl_kernel/FinalBFS_32_ex/imports/kernel.xml" >> update_kernel.tcl
echo "file mkdir ScalaBFS-proj/workspace/FinalBFS_32/src/vitis_rtl_kernel/FinalBFS_32" >> update_kernel.tcl
echo "exit" >> update_kernel.tcl
vivado -mode tcl -source update_kernel.tcl
movecpp:
cp -f /space/graph_data/HBMGraph/hostcpp/* ScalaBFS-proj/workspace/FinalBFS_32/src/vitis_rtl_kernel/FinalBFS_32/
testall: testp1 testp2 testp3 testp4 testmem testreq testmaster testres move
testp1:
$(SBT) "runMain HBMGraph.Testp1"
testp2:
$(SBT) "runMain HBMGraph.Testp2"
testmem_write:
$(SBT) "runMain HBMGraph.TestMem_write"
testmemory:
$(SBT) "runMain HBMGraph.TestMemory"
testv:
$(SBT) "runMain HBMGraph.Testv"
testw:
$(SBT) "runMain HBMGraph.Testwrite_frontier_and_level"
testreq:
$(SBT) "runMain HBMGraph.Testreq"
testmaster:
$(SBT) "runMain HBMGraph.Testmaster"
testres:
$(SBT) "runMain HBMGraph.Testres"
test:
$(SBT) "runMain HBMGraph.bfsTester"
testbram:
$(SBT) "runMain HBMGraph.Testbram"
testbram2:
$(SBT) "runMain HBMGraph.Testbram2"
testfrontier:
$(SBT) "runMain HBMGraph.Testfrontier"
move0:
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi;
mv *.v $(OBJDIR)/
mv *.json $(OBJDIR)/
mv *.fir $(OBJDIR)/
clean:
rm -f *.v
rm -f *.json
rm -f *.fir
rm -f .*.swo
rm -f .*.swp
rm -rf $(OBJDIR)
rm -rf $(PROJECTDIR)
rm -rf $(TARGETDIR)
rm -f *.log
clear:
rm -f *.json
rm -f *.fir
rm -f .*.swo
rm -f .*.swp
rm -f $(OBJDIR)/*.json
rm -f $(OBJDIR)/*.fir
rm -f $(OBJDIR)/.*.swo
rm -f $(OBJDIR)/.*.swp