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 7

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 7 jorisvr
               $(RTLDIR)/spwrecvfront_fast.vhd \
30
               $(RTLDIR)/syncdff.vhd \
31
               $(RTLDIR)/spwram.vhd
32 2 jorisvr
 
33
SPWSTREAM_VHDL = $(SPWLINK_VHDL) \
34 7 jorisvr
                 $(RTLDIR)/spwstream.vhd
35 2 jorisvr
 
36
spwlink_tb: $(TBDIR)/spwlink_tb.vhd $(SPWLINK_VHDL)
37
        $(GHDL) -c $^ -e spwlink_tb
38
 
39
spwlink_tb_all: $(TBDIR)/spwlink_tb_all.vhd $(TBDIR)/spwlink_tb.vhd $(SPWLINK_VHDL)
40
        $(GHDL) -c $^ -e spwlink_tb_all
41
 
42
test_spwlink: spwlink_tb_all
43
        $(GHDL) -r spwlink_tb_all --assert-level=error
44
 
45
streamtest_tb: $(TBDIR)/streamtest_tb.vhd $(RTLDIR)/streamtest.vhd $(SPWSTREAM_VHDL)
46
        $(GHDL) -c $^ -e streamtest_tb
47
 
48
test_streamtest: streamtest_tb
49
        $(GHDL) -r streamtest_tb --assert-level=error
50
 
51
clean:
52
        $(GHDL) --clean
53
        $(RM) e~spwlink_tb.o e~spwlink_tb_all.o e~streamtest_tb.o
54
 

powered by: WebSVN 2.1.0

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