⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Plasma IP Core 你可以利用这个组件在FPGA中设计MIPS结构的CPU
💻
字号:
# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler.# The CC_X86 is for compiling tools on your PC.# The GCC_MIPS is for compiling code on the target.# Convert_bin changes test.axf into code.txt which is used by the VHDL.# Customize for Linux #CC_X86 = gcc -Wall -O -g#CP = cp#RM = rm -rf #BIN_MIPS = ../../mips/sde/bin#VHDL_DIR = ../vhdl#GCC_MIPS  = $(BIN_MIPS)/gcc $(CFLAGS)#AS_MIPS   = $(BIN_MIPS)/as#LD_MIPS   = $(BIN_MIPS)/ld#DUMP_MIPS = $(BIN_MIPS)/objdump# Customize for WindowsCC_X86 = cl /O1CP = copyRM = delBIN_MIPS = ..\gccmips_elfVHDL_DIR = ..\vhdlGCC_MIPS  = $(BIN_MIPS)\gcc $(CFLAGS)AS_MIPS   = $(BIN_MIPS)\asLD_MIPS   = $(BIN_MIPS)\ldDUMP_MIPS = $(BIN_MIPS)\objdumpCFLAGS = -O2 -Wall -c -s all: convert_bin.exe tracehex.exe bintohex.exe ram_image.exe	@echo make targets = count, opcodes, pi, test, run, tohex, toimageclean:	-$(RM) *.o *.obj *.map *.lst *.hex *.txtconvert_bin.exe: convert.c	@$(CC_X86) -o convert_bin.exe convert.cconvert_le.exe: convert.c	@$(CC_X86) -DLITTLE_ENDIAN -o convert_le.exe convert.cmlite.exe: mlite.c	@$(CC_X86) -o mlite.exe mlite.c -DWIN32tracehex.exe: tracehex.c	@$(CC_X86) -o tracehex.exe tracehex.cbintohex.exe: bintohex.c	@$(CC_X86) -o bintohex.exe bintohex.cram_image.exe: ram_image.c	@$(CC_X86) -o ram_image.exe ram_image.copcodes: 	$(AS_MIPS) -o opcodes.o opcodes.asm	$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf opcodes.o	-@$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_bin.exe	$(CP) code.txt $(VHDL_DIR)opcodes2: 	$(AS_MIPS) -o opcodes.o opcodes.asm	$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf opcodes.o	-@$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_bin.exe	$(CP) code.txt $(VHDL_DIR)test: 	$(AS_MIPS) -o boot.o boot.asm	$(GCC_MIPS) test.c	$(GCC_MIPS) no_os.c	$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \		boot.o test.o no_os.o	-@$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_bin.exe	$(CP) code.txt $(VHDL_DIR)count: 	$(AS_MIPS) -o boot.o boot.asm	$(GCC_MIPS) count.c	$(GCC_MIPS) no_os.c 	$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \		boot.o count.o no_os.o 	-$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_bin.exe	$(CP) code.txt $(VHDL_DIR)count2:	$(AS_MIPS) -o boot.o boot.asm	$(GCC_MIPS) count.c	$(GCC_MIPS) no_os.c	$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \		boot.o count.o no_os.o	-$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_bin.exe	$(CP) code.txt $(VHDL_DIR)pi: 	$(AS_MIPS) -o boot.o boot.asm	$(GCC_MIPS) pi.c	$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \		boot.o pi.o 	@$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_bin.exe	$(CP) code.txt $(VHDL_DIR)pi2:	$(AS_MIPS) -o boot.o boot.asm	$(GCC_MIPS) pi.c	$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \		boot.o pi.o 	@$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_bin.exe	$(CP) code.txt $(VHDL_DIR)bootldr:	$(AS_MIPS) -o boot.o boot.asm	$(GCC_MIPS) bootldr.c	$(GCC_MIPS) no_os.c	$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \		boot.o bootldr.o no_os.o	@$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_bin.exe	$(CP) code.txt $(VHDL_DIR)bootldr_little_endian: convert_le.exe	$(AS_MIPS) -EL -o boot.o boot.asm	$(GCC_MIPS) -EL bootldr.c	$(GCC_MIPS) -EL no_os.c	$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.axf \		boot.o bootldr.o no_os.o	@$(DUMP_MIPS) --disassemble test.axf > test.lst	convert_le.exe	$(CP) code.txt $(VHDL_DIR)# Run a MIPS opcode simulatorrun: mlite.exe	@mlite.exe test.bin run_little_endian: mlite.exe	@mlite.exe test.bin Ldisassemble:	-@mlite.exe test.bin BD > test.txt# Used by Altera FPGAs for ram imagetohex: 	bintohex.exe test2.exe 	$(CP) code*.hex $(VHDL_DIR)# Used by Xilinx FPGAs for ram imagetoimage:	ram_image.exe ../vhdl/ram_xilinx.vhd ../vhdl/code.txt ../vhdl/ram_image.vhd

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -