-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (35 loc) · 820 Bytes
/
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
# HACOGen makefile
# written by Kazutomo Yoshii <[email protected]>
T=shcomp
all:
@echo "To run HACOGen:"
@echo "$ make TARGET"
@echo ""
@echo "To generate Verilog file"
@echo "$ make TARGET.v "
@echo ""
@echo "To simulate using Verilator"
@echo "$ make TARGET.vcd"
@echo ""
@echo "To list target available modules:"
@echo "$ make list"
@echo ""
% : %.scala
@./run.sh test $@
%.v : %.scala
@./run.sh verilog $(@:.v=)
%.vcd : %.scala
@./run.sh simulate $(@:.vcd=)
@find -type f -name $@
l list:
@./run.sh list
#
# utility
#
Estimator: Estimator.scala EstimatorAppParams.scala EstimatorPrev.scala RawImageTool.scala Localutils.scala RefComp.scala
@mkdir -p classes
fsc -d classes $^
clean:
rm -rf project target test_run_dir generated *.class
rm -rf *.fir *.anno.json
rm -rf classes