2021-10-26 19:06:02 +02:00
|
|
|
GHDL = ghdl
|
2021-12-10 15:45:56 +01: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-11-27 22:16:53 +01:00
|
|
|
shifter_tb : shifter.o shifter_tb.o
|
2021-10-27 11:20:58 +02:00
|
|
|
${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-11-27 22:16:53 +01:00
|
|
|
exec_tb :adder1.o adder32.o alu.o fifo_72b.o shifter.o exec.o exec_tb.o
|
|
|
|
${GHDL} -e -v exec_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-11-27 22:16:53 +01:00
|
|
|
sim_exec : exec_tb
|
|
|
|
${GHDL} -r exec_tb --vcd=exec.vcd
|
|
|
|
|
2021-10-26 19:06:02 +02:00
|
|
|
clean :
|
|
|
|
-rm *.o work-obj93.cf *_tb *.vcd
|