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

Subversion Repositories spacewire_light

[/] [spacewire_light/] [trunk/] [sim/] [spwamba_leon3/] [Makefile] - Blame information for rev 5

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

Line No. Rev Author Line
1 5 jorisvr
#
2
# Makefile for building SpaceWire AMBA testbench.
3
#
4
 
5
 
6
# Change this to your local GRLIB directory.
7
GRLIB = /data/leon3/grlib-gpl-1.0.22-b4095
8
 
9
 
10
RTLDIR = ../../rtl/vhdl
11
TBDIR  = ../../bench/vhdl
12
SWDIR  = ../../sw/spwamba_test
13
 
14
SWDEFS = -DTXCLKFREQ=40 -DDESCTABLESIZE=5 -DQUEUEFILL=672 -DLOOPBACKSWITCH=1
15
 
16
TOP = spwamba_tb
17
VHDLSIMFILES = \
18
  $(RTLDIR)/spwpkg.vhd      \
19
  $(RTLDIR)/spwlink.vhd     \
20
  $(RTLDIR)/spwrecv.vhd     \
21
  $(RTLDIR)/spwxmit.vhd     \
22
  $(RTLDIR)/spwxmit_fast.vhd \
23
  $(RTLDIR)/spwrecvfront_generic.vhd \
24
  $(RTLDIR)/spwrecvfront_fast.vhd \
25
  $(RTLDIR)/spwambapkg.vhd  \
26
  $(RTLDIR)/spwamba.vhd     \
27
  $(RTLDIR)/spwahbmst.vhd   \
28
  $(TBDIR)/ahbram_loadfile.vhd \
29
  spwamba_tb.vhd
30
 
31
TECHLIBS = inferred
32
LIBSKIP = contrib cypress eth fmf gleichmann gsi hynix micron openchip opencores spansion spw
33
DIRSKIP = ata can ddr greth spacewire
34
FILESKIP = i2cmst.vhd i2cmst_gen.vhd
35
 
36
include $(GRLIB)/bin/Makefile
37
 
38
all:
39
        @echo " specific information for SPWAMBA:"
40
        @echo
41
        @echo " make ghdl                 : compile test bench with GHDL"
42
        @echo " make spwamba_test.srec    : compile test software (requires sparc-elf-4.4.2)"
43
        @echo " make ghdl-launch          : run test software in test bench"
44
        @echo
45
 
46
ghdl-run ghdl-launch: spwamba_test.srec
47
 
48
spwamba_test.srec: spwamba_test.elf
49
        sparc-elf-objcopy -O srec $< $@
50
 
51
spwamba_test.elf: init_sys.o spwamba_test.o
52
        sparc-elf-gcc -msoft-float -s $^ -o $@
53
 
54
spwamba_test.o: $(SWDIR)/spwamba_test.c
55
        sparc-elf-gcc -msoft-float -Wall -Os -I$(SWDIR) $(SWDEFS) -c $<
56
 
57
init_sys.o: $(SWDIR)/init_sys.S
58
        sparc-elf-gcc -c $<
59
 
60
.PHONY: my-clean
61
clean: my-clean
62
my-clean:
63
        $(RM) spwamba_test.o init_sys.o spwamba_test.elf
64
 

powered by: WebSVN 2.1.0

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