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 6

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 6 jorisvr
SWDEFS = -DTXCLKFREQ=40 -DDESCTABLESIZE=5 -DQUEUEFILL=700 -DLOOPBACKSWITCH=1
15 5 jorisvr
 
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
spwamba_test.srec: spwamba_test.elf
47
        sparc-elf-objcopy -O srec $< $@
48
 
49
spwamba_test.elf: init_sys.o spwamba_test.o
50
        sparc-elf-gcc -msoft-float -s $^ -o $@
51
 
52
spwamba_test.o: $(SWDIR)/spwamba_test.c
53
        sparc-elf-gcc -msoft-float -Wall -Os -I$(SWDIR) $(SWDEFS) -c $<
54
 
55
init_sys.o: $(SWDIR)/init_sys.S
56
        sparc-elf-gcc -c $<
57
 
58
.PHONY: my-clean
59
clean: my-clean
60
my-clean:
61
        $(RM) spwamba_test.o init_sys.o spwamba_test.elf
62
 

powered by: WebSVN 2.1.0

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