OpenCores
URL https://opencores.org/ocsvn/spacewire_light/spacewire_light/trunk

Subversion Repositories spacewire_light

[/] [spacewire_light/] [trunk/] [sim/] [ghdl/] [Makefile] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jorisvr
#
2
# Makefile for building and running RTL simulation with GHDL.
3
#
4
# Simulation has been tested with GHDL 0.29.
5
# GHDL is available from http://ghdl.free.fr/
6
#
7
 
8
GHDL = ghdl
9
RTLDIR = ../../rtl/vhdl
10
TBDIR  = ../../bench/vhdl
11
 
12
.PHONY: default test_spwlink test_streamtest clean
13
 
14
default:
15
        @echo "Targets:"
16
        @echo "  make spwlink_tb        Build default spwlink testbench"
17
        @echo "  make spwlink_tb_all    Build spwlink mega testbench"
18
        @echo "  make test_spwlink      Run spwlink mega testbench"
19
        @echo "  make streamtest_tb     Build spwstream testbench"
20
        @echo "  make test_streamtest   Run spwstream testbench"
21
        @echo "  make clean             Remove build files"
22
 
23
SPWLINK_VHDL = $(RTLDIR)/spwpkg.vhd    \
24
               $(RTLDIR)/spwlink.vhd   \
25
               $(RTLDIR)/spwrecv.vhd   \
26
               $(RTLDIR)/spwxmit.vhd   \
27
               $(RTLDIR)/spwxmit_fast.vhd \
28
               $(RTLDIR)/spwrecvfront_generic.vhd \
29
               $(RTLDIR)/spwrecvfront_fast.vhd
30
 
31
SPWSTREAM_VHDL = $(SPWLINK_VHDL) \
32
                 $(RTLDIR)/spwstream.vhd \
33
                 $(RTLDIR)/spwram.vhd
34
 
35
spwlink_tb: $(TBDIR)/spwlink_tb.vhd $(SPWLINK_VHDL)
36
        $(GHDL) -c $^ -e spwlink_tb
37
 
38
spwlink_tb_all: $(TBDIR)/spwlink_tb_all.vhd $(TBDIR)/spwlink_tb.vhd $(SPWLINK_VHDL)
39
        $(GHDL) -c $^ -e spwlink_tb_all
40
 
41
test_spwlink: spwlink_tb_all
42
        $(GHDL) -r spwlink_tb_all --assert-level=error
43
 
44
streamtest_tb: $(TBDIR)/streamtest_tb.vhd $(RTLDIR)/streamtest.vhd $(SPWSTREAM_VHDL)
45
        $(GHDL) -c $^ -e streamtest_tb
46
 
47
test_streamtest: streamtest_tb
48
        $(GHDL) -r streamtest_tb --assert-level=error
49
 
50
clean:
51
        $(GHDL) --clean
52
        $(RM) e~spwlink_tb.o e~spwlink_tb_all.o e~streamtest_tb.o
53
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.