-
Notifications
You must be signed in to change notification settings - Fork 78
/
Makefile
44 lines (28 loc) · 805 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
#
# Building Chisel examples without too much sbt/scala/... stuff
#
# sbt looks for default into a folder ./project and . for build.sdt and Build.scala
# sbt creates per default a ./target folder
SBT = sbt
# Generate Verilog code
alu:
$(SBT) "runMain simple.AluMain"
knight:
$(SBT) "runMain simple.KnightMain"
uart:
$(SBT) "runMain uart.UartMain"
# Generate the C++ simulation and run the tests
alu-test:
$(SBT) "testOnly simple.AluTester"
counter-test:
$(SBT) "testOnly simple.CounterTester"
knight-test:
$(SBT) "testOnly simple.KnightTester"
fifo-test:
$(SBT) "testOnly fifo.FifoSpec"
fifo-view:
gtkwave test_run_dir/BubbleFifo_should_pass/BubbleFifo.vcd --save=bubble.gtkw
fifo: fifo-test fifo-view
# clean everything (including IntelliJ project settings)
clean:
git clean -fd