-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 886 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
ISA : ISA.v add.v alu.v clock.v decoder.v memory.v mux.v pcsave.v program.v programcounter.v signextend.v wreg.v
iverilog -Wall -g2012 -o $@ $^ -s Simulate_All
test_alu : alu.v test_alu.v
iverilog -Wall -g2012 -o $@ $^
test_decoder : test_decoder.v decoder.v
iverilog -Wall -g2012 -o $@ $^
test_memory : test_memory.v memory.v clock.v wreg.v
iverilog -Wall -g2012 -o $@ $^
test_mux : test_mux.v mux.v
iverilog -Wall -g2012 -o $@ $^
test_pcsave : test_pcsave.v pcsave.v
iverilog -Wall -g2012 -o $@ $^
test_program : test_program.v program.v
iverilog -Wall -g2012 -o $@ $^
docs.pdf : readme.rst
rst2pdf $< $@
.PHONY: docs
docs: docs.pdf
.PHONY: clean
clean:
rm -f *.vcd ISA test_alu test_decoder test_memory test_mux test_pcsave test_program docs.pdf
.PHONY: run
run: ISA
./ISA
.PHONY: all
all: ISA test_alu test_decoder test_memory test_mux test_pcsave test_program