URL
https://opencores.org/ocsvn/ion/ion/trunk
Subversion Repositories ion
Compare Revisions
- This comparison shows the changes necessary to convert path
/ion
- from Rev 188 to Rev 189
- ↔ Reverse comparison
Rev 188 → Rev 189
/trunk/src/opcodes/makefile
14,27 → 14,32
|
LFLAGS = -Ttext $(BRAM_START) -Tdata $(XRAM_START) -eentry -I elf32-big |
|
clean: |
-$(RM) -f *.o *.obj *.map *.lst *.hex \ |
*.exe *.axf *.code *.data *.bin |
#-- Targets & rules ------------------------------------------------------------ |
|
opcodes: |
$(AS_MIPS) -o opcode_emu.o $(SRC_DIR)/common/opcode_emu.s |
$(AS_MIPS) -defsym XRAM_BASE=$(XRAM_START) -mips32r2 -o opcodes.o opcodes.s |
$(LD_MIPS) $(LFLAGS) -Map opcodes.map -s -N -o opcodes.axf opcodes.o opcode_emu.o |
-@$(DUMP_MIPS) -I elf32-big --disassemble opcodes.axf > opcodes.lst |
$(AS) -o opcode_emu.o $(SRC_DIR)/common/opcode_emu.s |
$(AS) -defsym XRAM_BASE=$(XRAM_START) -mips32r2 -o opcodes.o opcodes.s |
$(LD) $(LFLAGS) -Map opcodes.map -s -N -o opcodes.axf opcodes.o opcode_emu.o |
-@$(DUMP) -I elf32-big --disassemble opcodes.axf > opcodes.lst |
# Dump only text segment, no .rodata on this program |
# $(COPY_MIPS) -I elf32-big -j .text -O binary opcodes.axf opcodes.bin |
# $(COPY) -I elf32-big -j .text -O binary opcodes.axf opcodes.bin |
# Dump data segment to file; will be empty but the TB2 template needs it |
# $(COPY_MIPS) -I elf32-big -j .data -O binary opcodes.axf opcodes.data |
$(COPY_MIPS) -I elf32-big -O binary opcodes.axf opcodes.bin |
$(COPY_MIPS) -I elf32-big -j.data -j.bss -O binary opcodes.axf opcodes.data |
# $(COPY) -I elf32-big -j .data -O binary opcodes.axf opcodes.data |
$(COPY) -I elf32-big -O binary opcodes.axf opcodes.bin |
$(COPY) -I elf32-big -j.data -j.bss -O binary opcodes.axf opcodes.data |
|
|
|
# Create VHDL file for simulation test bench from TB2 template |
opcodes_sim: opcodes |
sim: opcodes |
$(TO_VHDL) --code opcodes.bin --data opcodes.data --log_trigger=0xbfc00000 \ |
--code_size $(CODE_BRAM_SIZE) --data_size $(DATA_BRAM_SIZE) \ |
-s $(SIM_LENGTH) -v $(SRC_DIR)\\mips_tb2_template.vhdl \ |
-o $(TB_DIR)\\mips_tb2.vhdl -e mips_tb2 |
|
|
#-- And now the usual housekeeping stuff --------------------------------------- |
|
.PHONY: clean |
|
clean: |
-$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data *.bin |
|