2021-10-26 19:06:02 +02:00
|
|
|
GHDL = ghdl
|
2021-10-27 11:20:58 +02:00
|
|
|
all : sim_alu #sim_shifter
|
2021-10-26 19:06:02 +02:00
|
|
|
|
2021-10-27 11:20:58 +02:00
|
|
|
%.o : %.vhdl
|
|
|
|
${GHDL} -a -g -v $^
|
2021-10-26 19:06:02 +02:00
|
|
|
|
2021-10-27 11:20:58 +02:00
|
|
|
adder32_tb : adder1.o adder32.o adder32_tb.o
|
|
|
|
${GHDL} -e -v adder32_tb
|
2021-10-26 19:06:02 +02:00
|
|
|
|
2021-10-27 11:20:58 +02:00
|
|
|
shifter_tb : shitfter.o shitfter_tb.o
|
|
|
|
${GHDL} -e -v shifter_tb
|
2021-10-26 19:06:02 +02:00
|
|
|
|
2021-10-27 11:20:58 +02:00
|
|
|
alu_tb : adder1.o adder32.o alu.o alu_tb.o
|
2021-10-26 19:06:02 +02:00
|
|
|
${GHDL} -e -v alu_tb
|
|
|
|
|
2021-10-27 11:20:58 +02:00
|
|
|
sim_adder32 : adder32_tb
|
|
|
|
${GHDL} -r adder32_tb --vcd=adder32.vcd
|
2021-10-26 19:06:02 +02:00
|
|
|
|
2021-10-27 11:20:58 +02:00
|
|
|
sim_alu : alu_tb
|
2021-10-26 19:06:02 +02:00
|
|
|
${GHDL} -r alu_tb --vcd=alu.vcd
|
|
|
|
|
2021-10-27 11:20:58 +02:00
|
|
|
sim_shifter : shifter_tb
|
|
|
|
${GHDL} -r shifter_tb --vcd=shifter.vcd
|
|
|
|
|
2021-10-26 19:06:02 +02:00
|
|
|
clean :
|
|
|
|
-rm *.o work-obj93.cf *_tb *.vcd
|