Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
132 lines (94 loc) · 3.07 KB
/
Copy pathMakefile
File metadata and controls
132 lines (94 loc) · 3.07 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
all: half_adder half_adder_utest full_adder full_adder_utest generic_full_adder generic_full_adder_utest d_latch d_latch_utest generic_register generic_register_utest generic_mux_10 generic_mux_10_utest generic_alu generic_alu_utest generic_shifter generic_shifter_utest control_unit control_unit_utest cpu cpu_utest
# RUN THE SIMULATION
run:
ghdl -r cpu_utest --vcd=vcd/cpu_utest.vcd
# RUN ALL TESTS
test: all
ghdl -r half_adder_utest --vcd=vcd/half_adder_utest.vcd
ghdl -r full_adder_utest --vcd=vcd/full_adder_utest.vcd
ghdl -r generic_full_adder_utest --vcd=vcd/generic_full_adder_utest.vcd
ghdl -r d_latch_utest --vcd=vcd/d_latch_utest.vcd
ghdl -r generic_register_utest --vcd=vcd/generic_register_utest.vcd
ghdl -r generic_mux_10_utest --vcd=vcd/generic_mux_10_utest.vcd
ghdl -r generic_alu_utest --vcd=vcd/generic_alu_utest.vcd
ghdl -r generic_shifter_utest --vcd=vcd/generic_shifter_utest.vcd
ghdl -r control_unit_utest --vcd=vcd/control_unit_utest.vcd
ghdl -r cpu_utest --vcd=vcd/cpu_utest.vcd
# HALF ADDER
half_adder: half_adder.vhdl
ghdl -a half_adder.vhdl
ghdl -e half_adder
half_adder_utest: half_adder_utest.vhdl
ghdl -a half_adder_utest.vhdl
ghdl -e half_adder_utest
# FULL ADDER
full_adder: full_adder.vhdl
ghdl -a full_adder.vhdl
ghdl -e full_adder
full_adder_utest: full_adder_utest.vhdl
ghdl -a full_adder_utest.vhdl
ghdl -e full_adder_utest
# GENERIC FULL ADDER
generic_full_adder: generic_full_adder.vhdl
ghdl -a generic_full_adder.vhdl
ghdl -e generic_full_adder
generic_full_adder_utest: generic_full_adder_utest.vhdl
ghdl -a generic_full_adder_utest.vhdl
ghdl -e generic_full_adder_utest
# D LATCH
d_latch: d_latch.vhdl
ghdl -a d_latch.vhdl
ghdl -e d_latch
d_latch_utest: d_latch_utest.vhdl
ghdl -a d_latch_utest.vhdl
ghdl -e d_latch_utest
# GENERIC REGISTER
generic_register: generic_register.vhdl
ghdl -a generic_register.vhdl
ghdl -e generic_register
generic_register_utest: generic_register_utest.vhdl
ghdl -a generic_register_utest.vhdl
ghdl -e generic_register_utest
# GENERIC MUX 10
generic_mux_10: generic_mux_10.vhdl
ghdl -a generic_mux_10.vhdl
ghdl -e generic_mux_10
generic_mux_10_utest: generic_mux_10_utest.vhdl
ghdl -a generic_mux_10_utest.vhdl
ghdl -e generic_mux_10_utest
# GENERIC ALU
generic_alu: generic_alu.vhdl
ghdl -a generic_alu.vhdl
ghdl -e generic_alu
generic_alu_utest: generic_alu_utest.vhdl
ghdl -a generic_alu_utest.vhdl
ghdl -e generic_alu_utest
# GENERIC SHIFTER
generic_shifter: generic_shifter.vhdl
ghdl -a generic_shifter.vhdl
ghdl -e generic_shifter
generic_shifter_utest: generic_shifter_utest.vhdl
ghdl -a generic_shifter_utest.vhdl
ghdl -e generic_shifter_utest
# CONTROL UNIT
control_unit: control_unit.vhdl
ghdl -a control_unit.vhdl
ghdl -e control_unit
control_unit_utest: control_unit_utest.vhdl
ghdl -a control_unit_utest.vhdl
ghdl -e control_unit_utest
# CPU
cpu: cpu.vhdl
ghdl -a cpu.vhdl
ghdl -e cpu
cpu_utest: cpu_utest.vhdl
ghdl -a cpu_utest.vhdl
ghdl -e cpu_utest
# WORKON
hello_world: hello.vhdl
ghdl -a hello.vhdl
ghdl -e hello_world
# CLEAN
clean:
ghdl --clean
rm work-obj93.cf