-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (31 loc) · 1011 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
halfadder: HalfAdder.vhd HalfAdder_tb.vhd
rm work -rf
mkdir work
ghdl -a --workdir=work HalfAdder.vhd
ghdl -a --workdir=work HalfAdder_tb.vhd
ghdl -e --workdir=work HalfAdder_tb
ghdl -r --workdir=work HalfAdder_tb --vcd=work/halfadder_tb_dump.vcd
fulladder: FullAdder.vhd FullAdder_tb.vhd
rm work -rf
mkdir work
ghdl -a --workdir=work FullAdder.vhd
ghdl -a --workdir=work FullAdder_tb.vhd
ghdl -e --workdir=work FullAdder_tb
ghdl -r --workdir=work FullAdder_tb --vcd=work/fulladder_tb_dump.vcd
add16: FullAdder.vhd Add16.vhd Add16_tb.vhd
rm work -rf
mkdir work
ghdl -a --workdir=work FullAdder.vhd
ghdl -a --workdir=work Add16.vhd
ghdl -a --workdir=work Add16_tb.vhd
ghdl -e --workdir=work Add16_tb
ghdl -r --workdir=work Add16_tb --vcd=work/adder16_tb_dump.vcd
mux: Mux.vhd Mux_tb.vhd
rm work -rf
mkdir work
ghdl -a --workdir=work Mux.vhd
ghdl -a --workdir=work Mux_tb.vhd
ghdl -e --workdir=work Mux_tb
ghdl -r --workdir=work Mux_tb --vcd=work/mux_tb_dump.vcd
clean:
rm work -fr