From 7703971a4d99a615ace96490f553b727e3eb0975 Mon Sep 17 00:00:00 2001 From: Joris van Rantwijk Date: Thu, 24 Mar 2016 23:55:32 +0100 Subject: [PATCH] Add Makefile for simulation with GHDL. --- sim/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sim/Makefile diff --git a/sim/Makefile b/sim/Makefile new file mode 100644 index 0000000..2077858 --- /dev/null +++ b/sim/Makefile @@ -0,0 +1,23 @@ + +GHDL = ghdl +GHDLFLAGS = + +.PHONY: all +all: sim_sincos_d18_p20_probe + +sim_sincos_d18_p20_probe: sim_sincos_d18_p20_probe.o sincos_gen_d18_p20.o sincos_gen.o + $(GHDL) $(GHDLFLAGS) -e $@ + +sincos_gen.o: ../rtl/sincos_gen.vhdl + $(GHDL) $(GHDLFLAGS) -a $< + +sincos_gen_d18_p20.o: ../rtl/sincos_gen_d18_p20.vhdl sincos_gen.o + $(GHDL) $(GHDLFLAGS) -a $< + +sim_sincos_d18_p20_probe.o: sim_sincos_d18_p20_probe.vhdl sincos_gen_d18_p20.o + $(GHDL) $(GHDLFLAGS) -a $< + +.PHONY: clean +clean: + $(GHDL) --remove +