Line 38... |
Line 38... |
CC = $(BIN_MIPS)/mips-sde-elf-gcc.exe $(CFLAGS)
|
CC = $(BIN_MIPS)/mips-sde-elf-gcc.exe $(CFLAGS)
|
AS = $(BIN_MIPS)/mips-sde-elf-as
|
AS = $(BIN_MIPS)/mips-sde-elf-as
|
LD = $(BIN_MIPS)/mips-sde-elf-ld
|
LD = $(BIN_MIPS)/mips-sde-elf-ld
|
DUMP = $(BIN_MIPS)/mips-sde-elf-objdump
|
DUMP = $(BIN_MIPS)/mips-sde-elf-objdump
|
COPY = $(BIN_MIPS)/mips-sde-elf-objcopy
|
COPY = $(BIN_MIPS)/mips-sde-elf-objcopy
|
TO_VHDL = python ../bin2hdl.py
|
|
|
|
else
|
else
|
#**** Customize for Linux
|
#**** Customize for Linux
|
|
|
# MIPS GCC cross-toolchain: BuildRoot toolchain in my home directory -- replace with your own
|
# MIPS GCC cross-toolchain: BuildRoot toolchain in my home directory -- replace with your own
|
Line 52... |
Line 51... |
CC = $(BIN_MIPS)/mips-unknown-linux-uclibc-gcc $(CFLAGS)
|
CC = $(BIN_MIPS)/mips-unknown-linux-uclibc-gcc $(CFLAGS)
|
AS = $(BIN_MIPS)/mips-unknown-linux-uclibc-as
|
AS = $(BIN_MIPS)/mips-unknown-linux-uclibc-as
|
LD = $(BIN_MIPS)/mips-unknown-linux-uclibc-ld
|
LD = $(BIN_MIPS)/mips-unknown-linux-uclibc-ld
|
DUMP = $(BIN_MIPS)/mips-unknown-linux-uclibc-objdump
|
DUMP = $(BIN_MIPS)/mips-unknown-linux-uclibc-objdump
|
COPY = $(BIN_MIPS)/mips-unknown-linux-uclibc-objcopy
|
COPY = $(BIN_MIPS)/mips-unknown-linux-uclibc-objcopy
|
TO_VHDL = python ../bin2hdl.py
|
|
|
|
endif
|
endif
|
|
|
|
### VHDL source file manipulation tools ########################################
|
|
ION_TOOLS = ../../tools
|
|
TO_VHDL = python $(ION_TOOLS)/bin2hdl/bin2hdl.py
|
|
VHDL_OBJ_PKG = python $(ION_TOOLS)/build_pkg/build_pkg.py -t $(ION_TOOLS)/build_pkg/templates
|
|
|
### Default system parameters -- to be replaced in application makefile ########
|
### Default system parameters -- to be replaced in application makefile ########
|
|
|
# 'CODE_BRAM' is meant to be a small BRAM (2 to 4KB) used for bootstrapping.
|
# 'CODE_BRAM' is meant to be a small BRAM (2 to 4KB) used for bootstrapping.
|
# 'DATA_BRAM' is a small BRAM connected to the data ports, used for debugging.
|
# 'DATA_BRAM' is a small BRAM connected to the data ports, used for debugging.
|
# 'XRAM' is meant to be the main external RAM, either SRAM or SDRAM.
|
# 'XRAM' is meant to be external SRAM
|
|
|
|
|
# Default location of code BRAM is on the reset vector address
|
# Default location of code BRAM is on the reset vector address
|
CODE_BRAM_ADDRESS = 0
|
CODE_BRAM_ADDRESS = 0
|
# Default size of code BRAM in 32-bit words
|
# Default size of code BRAM in 32-bit words
|
CODE_BRAM_SIZE = 1024
|
CODE_BRAM_SIZE = 1024
|
# Default size of data BRAM in 32-bit words (meant for simulation only)
|
# Default size of data BRAM in 32-bit words (meant for simulation only)
|
DATA_BRAM_SIZE = 256
|
DATA_BRAM_SIZE = 256
|
# Default address of BRAM -- used in some simulation-only tests, see makefiles
|
# Default address of BRAM -- used in some simulation-only tests, see makefiles
|
DATA_BRAM_ADDRESS = 0x10000
|
DATA_BRAM_ADDRESS = 0x10000
|
# Default size of data external RAM (XRAM) in 32-bit words (for simulation)
|
# Default size of data external SRAM (XRAM) in 16-bit words (for simulation)
|
XRAM_SIZE = 2048
|
XRAM_SIZE = 2048
|
# Default address of XRAM
|
# Default address of XRAM
|
XRAM_ADDRESS = 0x80000000
|
XRAM_ADDRESS = 0x80000000
|
|
|
### Project directories -- to be replaced in application makefile ##############
|
### Project directories -- to be replaced in application makefile ##############
|
Line 91... |
Line 94... |
# Link script to be used
|
# Link script to be used
|
LINK_SCRIPT = $(SRC_DIR)/common/flash.lds
|
LINK_SCRIPT = $(SRC_DIR)/common/flash.lds
|
|
|
### Build options -- to be replaced in application makefile ####################
|
### Build options -- to be replaced in application makefile ####################
|
|
|
# Don't use gcc builtin functions, and try to target MIPS-I architecture
|
# Don't use gcc builtin functions, and try to target MIPS-I architecture.
|
# This will prevent usage of unimplemented opcodes but will insert nops after
|
# This will prevent usage of unimplemented opcodes but will insert nops after
|
# load instructions, which Ion does not need.
|
# load instructions, which Ion does not need.
|
# (See comment above about -G0 flag)
|
# (See comment above about -G0 flag)
|
CFLAGS = -O2 -Wall -c -s -fno-builtin -mips1 -G0 -nodefaultlibs -nostdlib
|
CFLAGS = -O2 -Wall -c -s -fno-builtin -mips1 -G0 -nodefaultlibs -nostdlib
|
|
|