URL
https://opencores.org/ocsvn/ion/ion/trunk
[/] [ion/] [trunk/] [src/] [memtest/] [makefile] - Diff between revs 50 and 66
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 50 |
Rev 66 |
Line 4... |
Line 4... |
# Get common makefile stuff (toolchain & system config)
|
# Get common makefile stuff (toolchain & system config)
|
include ..\\common\\makefile
|
include ..\\common\\makefile
|
|
|
# We'll run the simulation for long enough to complete the test
|
# We'll run the simulation for long enough to complete the test
|
SIM_LENGTH = 20000
|
SIM_LENGTH = 20000
|
# We'll give the program some more space than by defaut
|
|
|
# FPGA Block RAM parameters
|
|
BRAM_START = 0xbfc00000
|
CODE_BRAM_SIZE = 2048
|
CODE_BRAM_SIZE = 2048
|
# This XRAM size is used in simulation only
|
# External RAM parameters (size in words)
|
XRAM_SIZE = 1024
|
XRAM_SIZE = 1024
|
|
XRAM_START = 0x00000000
|
|
|
|
|
|
LFLAGS = -Ttext $(BRAM_START) -Tdata $(XRAM_START) -eentry -I elf32-big
|
|
|
|
|
clean:
|
clean:
|
-$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data
|
-$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data
|
|
|
memtest:
|
memtest:
|
$(AS_MIPS) -o memtest.o memtest.s
|
$(AS_MIPS) -defsym XRAM_BASE=$(XRAM_START) -o memtest.o memtest.s
|
$(LD_MIPS) -Ttext 0 -eentry -Map memtest.map -s -N -o memtest.axf memtest.o
|
$(LD_MIPS) $(LFLAGS) -Map memtest.map -s -N -o memtest.axf memtest.o
|
-@$(DUMP_MIPS) -I elf32-big --disassemble memtest.axf > memtest.lst
|
-@$(DUMP_MIPS) -I elf32-big --disassemble memtest.axf > memtest.lst
|
# Dump code and data to separate binaries (data binary will be empty but TB2 needs it)
|
# Dump code and data to separate binaries (data binary will be empty but TB2 needs it)
|
$(COPY_MIPS) -I elf32-big -j .text -j .rodata -O binary memtest.axf memtest.code
|
$(COPY_MIPS) -I elf32-big -j .text -j .rodata -O binary memtest.axf memtest.code
|
$(COPY_MIPS) -I elf32-big -j .sbss -j .data -j .bss -O binary memtest.axf memtest.data
|
$(COPY_MIPS) -I elf32-big -j .sbss -j .data -j .bss -O binary memtest.axf memtest.data
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.