-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
40 lines (31 loc) · 1.01 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
# Makefile for the Matrix Multiply Chisel project
# written by Kazutomo Yoshii <[email protected]>
all:
@echo ""
@echo "$ make list # lists test benches and drivers"
@echo "$ make test # runs all Chisel tests"
@echo "$ make verilog # generates Verilog code"
# @echo "$ make simulate # invokes Verilator"
@echo ""
list:
@echo "List test benches"
@sbt "show Test/definedTestNames"
@echo
@echo "List drivers that generates Verilog file"
@sbt "show Compile/discoveredMainClasses"
@echo
t test:
@sbt "testOnly matmul.* -- -l RequiresVerilator"
s simulate:
@sbt "testOnly matmul.* -- -l RequiresTreadle" # run only Verilator
v verilog:
@sbt "runMain matmul.SMatMulDriver"
#s simulate:
# sbt "test:runMain ${PROJ}.TestMain $T --backend-name verilator"
#v verilog:
# SBT_OPTS="-Xms512M -Xmx2048M -Xss8M -XX:MaxMetaspaceSize=1024M" sbt "test:runMain ${PROJ}.TestMain $T:verilog"
clean:
rm -rf project target test_run_dir generated
rm -f *.fir *.anno.json *.class
distclean: clean
rm -f *.v