OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [src_processor/] [or1200/] [sw/] [Makefile] - Diff between revs 45 and 48

Show entire file | Details | Blame | View Log

Rev 45 Rev 48
Line 2... Line 2...
 
 
TOOLCHAIN=$(PRONOC_WORK)/toolchain/or1k-elf
TOOLCHAIN=$(PRONOC_WORK)/toolchain/or1k-elf
IHEX2MIF =$(PRONOC_WORK)/toolchain/bin/ihex2mif
IHEX2MIF =$(PRONOC_WORK)/toolchain/bin/ihex2mif
IHEX2BIN =$(PRONOC_WORK)/toolchain/bin/ihex2bin
IHEX2BIN =$(PRONOC_WORK)/toolchain/bin/ihex2bin
BIN2HEX =$(PRONOC_WORK)/toolchain/bin/bin2str
BIN2HEX =$(PRONOC_WORK)/toolchain/bin/bin2str
 
BIN2MIF=$(PRONOC_WORK)/toolchain/bin/bin2mif
 
BIN2MEM=$(PRONOC_WORK)/toolchain/bin/bin2mem
 
 
 
 
 
 
OR32_TOOL_PREFIX=${TOOLCHAIN}/bin/or1k-elf-
OR32_TOOL_PREFIX=${TOOLCHAIN}/bin/or1k-elf-
 
 
OR32_LD=$(OR32_TOOL_PREFIX)ld
OR32_LD=$(OR32_TOOL_PREFIX)ld
Line 56... Line 59...
# Convert the ELF file to an IHEX file
# Convert the ELF file to an IHEX file
        mkdir -p ./RAM
        mkdir -p ./RAM
        $(OR32_OBJCOPY) -O ihex image image.ihex
        $(OR32_OBJCOPY) -O ihex image image.ihex
# Generate a MIF & BIN files from the IHEX file
# Generate a MIF & BIN files from the IHEX file
#       $(IHEX2MIF) -f image.ihex -e $(RAMSIZE) -o RAM/ram0.mif
#       $(IHEX2MIF) -f image.ihex -e $(RAMSIZE) -o RAM/ram0.mif
        $(IHEX2MIF) -f image.ihex -o RAM/ram0.mif
#       $(IHEX2MIF) -f image.ihex -o RAM/ram0.mif
        $(IHEX2BIN) -i image.ihex -o RAM/ram0.bin
        $(IHEX2BIN) -i image.ihex -o RAM/ram0.bin
 
        $(BIN2MIF)  -f RAM/ram0.bin -o RAM/ram0.mif -w 32
 
        $(BIN2MEM)  -f RAM/ram0.bin -o RAM/ram0.mem -w 32
        $(BIN2HEX)  -f RAM/ram0.bin -h
        $(BIN2HEX)  -f RAM/ram0.bin -h
        rm *.o
        rm *.o
 
 
 
 
 
 

powered by: WebSVN 2.1.0

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