# The CC_X86 is for compiling tools on your PC.
|
# The CC_X86 is for compiling tools on your PC.
|
# The GCC_MIPS is for compiling code on the target.
|
# The GCC_MIPS is for compiling code on the target.
|
# Convert_bin changes test.axf into code.txt which is used by the VHDL.
|
# Convert_bin changes test.axf into code.txt which is used by the VHDL.
|
# Convert_bin == "objcopy -I elf32-big -O binary test.axf test.bin"
|
# Convert_bin == "objcopy -I elf32-big -O binary test.axf test.bin"
|
|
|
|
|
ifeq ($(LANG),)
|
ifeq ($(LANG),)
|
|
|
# Customize for Windows
|
# Customize for Windows
|
# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler.
|
# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler.
|
CC_X86 = cl /O1 /nologo
|
CC_X86 = cl /O1 /nologo
|
CP = copy
|
CP = copy
|
RM = del
|
RM = del
|
DWIN32 = -DWIN32
|
DWIN32 = -DWIN32
|
BIN_MIPS = ..\gccmips_elf
|
BIN_MIPS = ..\gccmips_elf
|
VHDL_DIR = ..\vhdl
|
VHDL_DIR = ..\vhdl
|
LINUX_PWD =
|
LINUX_PWD =
|
GCC_MIPS = $(BIN_MIPS)\gcc $(CFLAGS)
|
GCC_MIPS = $(BIN_MIPS)\gcc $(CFLAGS)
|
AS_MIPS = $(BIN_MIPS)\as
|
AS_MIPS = $(BIN_MIPS)\as
|
LD_MIPS = $(BIN_MIPS)\ld
|
LD_MIPS = $(BIN_MIPS)\ld
|
DUMP_MIPS = $(BIN_MIPS)\objdump
|
DUMP_MIPS = $(BIN_MIPS)\objdump
|
CONVERT_BIN = $(LINUX_PWD)convert_bin.exe
|
CONVERT_BIN = $(LINUX_PWD)convert_bin.exe
|
|
|
else
|
else
|
|
|
# Customized for Linux
|
# Customized for Linux
|
# See http://www.opencores.com/projects.cgi/web/mips/linux_tools.htm
|
# See http://www.opencores.com/projects.cgi/web/mips/linux_tools.htm
|
CC_X86 = gcc -Wall -O -g
|
CC_X86 = gcc -Wall -O -g
|
CP = cp
|
CP = cp
|
RM = rm -rf
|
RM = rm -rf
|
DWIN32 =
|
DWIN32 =
|
BIN_MIPS =
|
BIN_MIPS =
|
VHDL_DIR = ../vhdl
|
VHDL_DIR = ../vhdl
|
LINUX_PWD = ./
|
LINUX_PWD = ./
|
GCC_MIPS = $(BIN_MIPS)mips-elf-gcc $(CFLAGS)
|
GCC_MIPS = $(BIN_MIPS)mips-elf-gcc $(CFLAGS)
|
AS_MIPS = $(BIN_MIPS)mips-elf-as
|
AS_MIPS = $(BIN_MIPS)mips-elf-as
|
LD_MIPS = $(BIN_MIPS)mips-elf-ld
|
LD_MIPS = $(BIN_MIPS)mips-elf-ld
|
DUMP_MIPS = $(BIN_MIPS)mips-elf-objdump
|
DUMP_MIPS = $(BIN_MIPS)mips-elf-objdump
|
CONVERT_BIN = $(LINUX_PWD)convert_bin.exe
|
CONVERT_BIN = $(LINUX_PWD)convert_bin.exe
|
#CONVERT_BIN = $(BIN_MIPS)mips-elf-objcopy -I elf32-big -O binary test.axf test.bin
|
#CONVERT_BIN = $(BIN_MIPS)mips-elf-objcopy -I elf32-big -O binary test.axf test.bin
|
|
|
endif
|
endif
|
|
|
CFLAGS = -O2 -Wall -c -s
|
CFLAGS = -O2 -Wall -c -s
|
|
|
all: convert_bin.exe tracehex.exe bintohex.exe ram_image.exe
|
all: convert_bin.exe tracehex.exe bintohex.exe ram_image.exe
|
@echo make targets = count, opcodes, pi, test, run, tohex, \
|
@echo make targets = count, opcodes, pi, test, run, tohex, \
|
bootldr, toimage, etermip
|
bootldr, toimage, etermip
|
|
|
clean:
|
clean:
|
-$(RM) *.o *.obj *.map *.lst *.hex *.txt *.exe *.axf
|
-$(RM) *.o *.obj *.map *.lst *.hex *.txt *.exe *.axf
|
|
|
#Same as "objcopy -I elf32-big -O binary test.axf test.bin"
|
#Same as "objcopy -I elf32-big -O binary test.axf test.bin"
|
convert_bin.exe: convert.c
|
convert_bin.exe: convert.c
|
@$(CC_X86) -o convert_bin.exe convert.c
|
@$(CC_X86) -o convert_bin.exe convert.c
|
|
|
convert_le.exe: convert.c
|
convert_le.exe: convert.c
|
@$(CC_X86) -DLITTLE_ENDIAN -o convert_le.exe convert.c
|
@$(CC_X86) -DLITTLE_ENDIAN -o convert_le.exe convert.c
|
|
|
mlite.exe: mlite.c
|
mlite.exe: mlite.c
|
@$(CC_X86) -o mlite.exe mlite.c $(DWIN32)
|
@$(CC_X86) -o mlite.exe mlite.c $(DWIN32)
|
|
|
tracehex.exe: tracehex.c
|
tracehex.exe: tracehex.c
|
@$(CC_X86) -o tracehex.exe tracehex.c
|
@$(CC_X86) -o tracehex.exe tracehex.c
|
|
|
bintohex.exe: bintohex.c
|
bintohex.exe: bintohex.c
|
@$(CC_X86) -o bintohex.exe bintohex.c
|
@$(CC_X86) -o bintohex.exe bintohex.c
|
|
|
ram_image.exe: ram_image.c
|
ram_image.exe: ram_image.c
|
@$(CC_X86) -o ram_image.exe ram_image.c
|
@$(CC_X86) -o ram_image.exe ram_image.c
|
|
|
# Terminal program that will download a new image and supports Ethernet
|
# Terminal program that will download a new image and supports Ethernet
|
# traffic over UART. Get wpcap.lib from http://www.winpcap.org/.
|
# traffic over UART. Get wpcap.lib from http://www.winpcap.org/.
|
etermip: etermip.c
|
etermip: etermip.c
|
-@$(CC_X86) -o etermip.exe etermip.c wpcap.lib
|
-@$(CC_X86) -o etermip.exe etermip.c wpcap.lib
|
@echo Get wpcap.lib from http://www.winpcap.org/
|
@echo Get wpcap.lib from http://www.winpcap.org/
|
|
|
nomult.exe: nomult.c
|
nomult.exe: nomult.c
|
-@$(CC_X86) -o nomult.exe nomult.c
|
-@$(CC_X86) -o nomult.exe nomult.c
|
|
|
download: etermip
|
download: etermip
|
@echo Reset board before downloading code
|
@echo Reset board before downloading code
|
etermip
|
etermip
|
|
|
opcodes:
|
opcodes:
|
$(AS_MIPS) -o opcodes.o opcodes.asm
|
$(AS_MIPS) -o opcodes.o opcodes.asm
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf opcodes.o
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf opcodes.o
|
-@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
opcodes2:
|
opcodes2:
|
$(AS_MIPS) -o opcodes.o opcodes.asm
|
$(AS_MIPS) -o opcodes.o opcodes.asm
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf opcodes.o
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf opcodes.o
|
-@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
test:
|
test:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) test.c
|
$(GCC_MIPS) test.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o test.o no_os.o
|
boot.o test.o no_os.o
|
-@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
count:
|
count:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) count.c
|
$(GCC_MIPS) count.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o count.o no_os.o
|
boot.o count.o no_os.o
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
count_le:
|
count_le:
|
$(AS_MIPS) -EL -o boot.o boot.asm
|
$(AS_MIPS) -EL -o boot.o boot.asm
|
$(GCC_MIPS) -EL count.c
|
$(GCC_MIPS) -EL count.c
|
$(GCC_MIPS) -EL no_os.c
|
$(GCC_MIPS) -EL no_os.c
|
$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o count.o no_os.o
|
boot.o count.o no_os.o
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
count2:
|
count2:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) count.c
|
$(GCC_MIPS) count.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
|
boot.o count.o no_os.o
|
boot.o count.o no_os.o
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
count3:
|
count3:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) count.c
|
$(GCC_MIPS) count.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
$(LD_MIPS) -Ttext 0x1000 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0x1000 -eentry -Map test.map -s -N -o test.axf \
|
boot.o count.o no_os.o
|
boot.o count.o no_os.o
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
count5: nomult.exe
|
count5: nomult.exe
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o mult_sim.o mult_sim.asm
|
$(AS_MIPS) -o mult_sim.o mult_sim.asm
|
$(GCC_MIPS) count.c
|
$(GCC_MIPS) count.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
|
boot.o mult_sim.o count.o no_os.o
|
boot.o mult_sim.o count.o no_os.o
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CP) test.axf test_old.axf
|
$(CP) test.axf test_old.axf
|
nomult test.axf test.lst test.map
|
nomult test.axf test.lst test.map
|
-$(DUMP_MIPS) --disassemble test.axf > test2.lst
|
-$(DUMP_MIPS) --disassemble test.axf > test2.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
pi:
|
pi:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) pi.c
|
$(GCC_MIPS) pi.c
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o pi.o
|
boot.o pi.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
pi2:
|
pi2:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) pi.c
|
$(GCC_MIPS) pi.c
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
|
boot.o pi.o
|
boot.o pi.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
pi5: nomult.exe
|
pi5: nomult.exe
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o mult_sim.o mult_sim.asm
|
$(AS_MIPS) -o mult_sim.o mult_sim.asm
|
$(GCC_MIPS) pi.c
|
$(GCC_MIPS) pi.c
|
$(LD_MIPS) -Ttext 0x0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0x0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o mult_sim.o pi.o
|
boot.o mult_sim.o pi.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
nomult test.axf test.lst test.map
|
nomult test.axf test.lst test.map
|
@$(DUMP_MIPS) --disassemble test.axf > test2.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test2.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
ddr_test:
|
ddr_test:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) ddr_init.c -DDDR_TEST_MAIN
|
$(GCC_MIPS) ddr_init.c -DDDR_TEST_MAIN
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
$(LD_MIPS) -Ttext 0x0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0x0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o ddr_init.o no_os.o
|
boot.o ddr_init.o no_os.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
memtest:
|
memtest:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) memtest.c
|
$(GCC_MIPS) memtest.c
|
$(LD_MIPS) -Ttext 0x1000 -eentry -o test.axf boot.o memtest.o
|
$(LD_MIPS) -Ttext 0x1000 -eentry -o test.axf boot.o memtest.o
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
|
|
memtest2:
|
memtest2:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) -DINIT_DDR memtest.c
|
$(GCC_MIPS) -DINIT_DDR memtest.c
|
$(GCC_MIPS) ddr_init.c
|
$(GCC_MIPS) ddr_init.c
|
$(LD_MIPS) -Ttext 0x0 -eentry -o test.axf boot.o memtest.o ddr_init.o
|
$(LD_MIPS) -Ttext 0x0 -eentry -o test.axf boot.o memtest.o ddr_init.o
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
|
|
memtest3:
|
memtest3:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) memtest.c
|
$(GCC_MIPS) memtest.c
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -o test.axf boot.o memtest.o
|
$(LD_MIPS) -Ttext 0x10000000 -eentry -o test.axf boot.o memtest.o
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
|
|
bootldr:
|
bootldr:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) bootldr.c
|
$(GCC_MIPS) bootldr.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) -DDLL_DISABLE ddr_init.c
|
$(GCC_MIPS) -DDLL_DISABLE ddr_init.c
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o bootldr.o no_os.o ddr_init.o
|
boot.o bootldr.o no_os.o ddr_init.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
@echo Next do "make toimage" for Xilinx or "make tohex" for Altera.
|
@echo Next do "make toimage" for Xilinx or "make tohex" for Altera.
|
|
|
bootldr2:
|
bootldr2:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) bootldr.c
|
$(GCC_MIPS) bootldr.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) -DDLL_DISABLE ddr_init.c
|
$(GCC_MIPS) -DDLL_DISABLE ddr_init.c
|
$(LD_MIPS) -Ttext 0x1000 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0x1000 -eentry -Map test.map -s -N -o test.axf \
|
boot.o bootldr.o no_os.o ddr_init.o
|
boot.o bootldr.o no_os.o ddr_init.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(CONVERT_BIN)
|
$(CONVERT_BIN)
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
bootldr_little_endian: convert_le.exe
|
bootldr_little_endian: convert_le.exe
|
$(AS_MIPS) -EL -o boot.o boot.asm
|
$(AS_MIPS) -EL -o boot.o boot.asm
|
$(GCC_MIPS) -EL bootldr.c
|
$(GCC_MIPS) -EL bootldr.c
|
$(GCC_MIPS) -EL no_os.c
|
$(GCC_MIPS) -EL no_os.c
|
$(GCC_MIPS) -EL ddr_init.c
|
$(GCC_MIPS) -EL ddr_init.c
|
$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o bootldr.o no_os.o ddr_init.o
|
boot.o bootldr.o no_os.o ddr_init.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
$(LINUX_PWD)convert_le.exe
|
$(LINUX_PWD)convert_le.exe
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
# Run a MIPS opcode simulator
|
# Run a MIPS opcode simulator
|
run: mlite.exe
|
run: mlite.exe
|
@$(LINUX_PWD)mlite.exe test.bin
|
@$(LINUX_PWD)mlite.exe test.bin
|
|
|
run_little_endian: mlite.exe
|
run_little_endian: mlite.exe
|
@$(LINUX_PWD)mlite.exe test.bin L
|
@$(LINUX_PWD)mlite.exe test.bin L
|
|
|
disassemble: mlite.exe
|
disassemble: mlite.exe
|
$(LINUX_PWD)mlite.exe test.bin BD > test.txt
|
$(LINUX_PWD)mlite.exe test.bin BD > test.txt
|
|
|
# Used by Altera FPGAs for ram image
|
# Used by Altera FPGAs for ram image
|
tohex: bintohex.exe
|
tohex: bintohex.exe
|
$(LINUX_PWD)bintohex.exe test.bin
|
$(LINUX_PWD)bintohex.exe test.bin
|
$(CP) code*.hex $(VHDL_DIR)
|
$(CP) code*.hex $(VHDL_DIR)
|
|
|
# Used by Xilinx FPGAs for ram image
|
# Used by Xilinx FPGAs for ram image
|
toimage:
|
toimage:
|
$(LINUX_PWD)ram_image.exe ../vhdl/ram_xilinx.vhd ../vhdl/code.txt ../vhdl/ram_image.vhd
|
$(LINUX_PWD)ram_image.exe ../vhdl/ram_xilinx.vhd ../vhdl/code.txt ../vhdl/ram_image.vhd
|
|
|
|
|
|
|