Add Makefile for simulation with GHDL.

This commit is contained in:
Joris van Rantwijk 2016-03-24 23:55:32 +01:00
parent e078fffd3e
commit 7703971a4d
1 changed files with 23 additions and 0 deletions

23
sim/Makefile Normal file
View File

@ -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