-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 927 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
all:controller
controller: buildFolder src/controller.v tests/controller_test.v
@echo "Testing controller"
iverilog -o build/controller.o -s controller_tb src/clk_divider.v src/controller.v src/fifo.v \
src/interpreter.v src/memory.v src/reset.v src/uart_rx.v src/uart_tx.v src/uart.v tests/controller_test.v
vvp build/controller.o
fifo: buildFolder src/fifo.v tests/fifo_test.v
@echo "Testing fifo"
iverilog -o build/fifo.o -s fifo_tb src/fifo.v tests/fifo_test.v
vvp build/fifo.o
clk_divider: buildFolder src/clk_divider.v tests/clk_divider_test.v
@echo "Testing clk_divider"
iverilog -o build/clk_divider.o -s clk_divider_tb src/clk_divider.v tests/clk_divider_test.v
vvp build/clk_divider.o
reset_test: buildFolder src/reset.v tests/reset_test.v
@echo "Testing reset"
iverilog -o build/reset.o -s reset_tb src/reset.v tests/reset_test.v
vvp build/reset.o
buildFolder:
mkdir -p build
clean:
rm -rf build