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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [hello/] [makefile] - Diff between revs 49 and 66

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 49 Rev 66
Line 3... Line 3...
include ../common/makefile
include ../common/makefile
 
 
# We'll run the simulation for 2000 clock cycles
# We'll run the simulation for 2000 clock cycles
SIM_LENGTH = 20000
SIM_LENGTH = 20000
 
 
 
# FPGA Block RAM parameters
 
BRAM_START = 0xbfc00000
 
CODE_BRAM_SIZE = 2048
 
# External RAM parameters (size in words)
 
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
 
 
hello:
hello:
        $(AS_MIPS) -o boot.o $(SRC_DIR)/common/boot.s
        $(AS_MIPS) -o boot.o $(SRC_DIR)/common/boot.s
        $(GCC_MIPS) -o no_os.o $(SRC_DIR)/common/no_os.c
        $(GCC_MIPS) -o no_os.o $(SRC_DIR)/common/no_os.c
        $(GCC_MIPS) -o hello.o hello.c
        $(GCC_MIPS) -o hello.o hello.c
        $(LD_MIPS) $(LFLAGS_BOOT) -Map hello.map -s -N -o hello.axf boot.o hello.o no_os.o
        $(LD_MIPS) $(LFLAGS) -Map hello.map -s -N -o hello.axf boot.o hello.o no_os.o
        -@$(DUMP_MIPS) -m mips --disassemble hello.axf > hello.lst
        -@$(DUMP_MIPS) -m mips --disassemble hello.axf > hello.lst
# Extract object code to be placed in code space (see link script)
# Extract object code to be placed in code space
        $(COPY_MIPS) -I elf32-big -O binary hello.axf hello.code
        $(COPY_MIPS) -I elf32-big -O binary hello.axf hello.code
#       $(COPY_MIPS) -I elf32-big -j.text -O binary hello.axf hello.code
# Extract object code to be placed in data space
# Extract object code to be placed in data space (see link script)
 
        $(COPY_MIPS) -I elf32-big -j.data -j.bss -O binary hello.axf hello.data
        $(COPY_MIPS) -I elf32-big -j.data -j.bss -O binary hello.axf hello.data
 
 
 
 
# Create VHDL file for simulation test bench using TB2 template
# Create VHDL file for simulation test bench using TB2 template
hello_sim: hello
hello_sim: hello

powered by: WebSVN 2.1.0

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