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 12

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 12 jorisvr
GRLIB = /data/leon3/grlib-gpl-1.2.2-b4123
8 5 jorisvr
 
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 7 jorisvr
  $(RTLDIR)/syncdff.vhd     \
26
  $(RTLDIR)/spwram.vhd      \
27 5 jorisvr
  $(RTLDIR)/spwambapkg.vhd  \
28
  $(RTLDIR)/spwamba.vhd     \
29
  $(RTLDIR)/spwahbmst.vhd   \
30
  $(TBDIR)/ahbram_loadfile.vhd \
31
  spwamba_tb.vhd
32
 
33
TECHLIBS = inferred
34
LIBSKIP = contrib cypress eth fmf gleichmann gsi hynix micron openchip opencores spansion spw
35
DIRSKIP = ata can ddr greth spacewire
36 7 jorisvr
FILESKIP = i2cmst.vhd i2cmst_gen.vhd ahbtrace_mb.vhd
37 5 jorisvr
 
38
include $(GRLIB)/bin/Makefile
39
 
40
all:
41
        @echo " specific information for SPWAMBA:"
42
        @echo
43
        @echo " make ghdl                 : compile test bench with GHDL"
44
        @echo " make spwamba_test.srec    : compile test software (requires sparc-elf-4.4.2)"
45
        @echo " make ghdl-launch          : run test software in test bench"
46
        @echo
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.