OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [xilinx/] [ml501/] [backend/] [par/] [bin/] [Makefile] - Diff between revs 638 and 655

Show entire file | Details | Blame | View Log

Rev 638 Rev 655
Line 46... Line 46...
FPGA_PART=xc5vlx50-ff676-1
FPGA_PART=xc5vlx50-ff676-1
XILINX_FLAGS=-intstyle silent
XILINX_FLAGS=-intstyle silent
XILINX_MAP_FLAGS=-logic_opt off
XILINX_MAP_FLAGS=-logic_opt off
XILINX_AREA_TARGET = speed
XILINX_AREA_TARGET = speed
TIMING_REPORT_OPTIONS = -u 1000 -e 1000
TIMING_REPORT_OPTIONS = -u 1000 -e 1000
 
#
 
# Board programming generation settings
 
#
SPI_FLASH_SIZE_KBYTES ?=2048
SPI_FLASH_SIZE_KBYTES ?=2048
SPI_BOOTLOADER_SW_OFFSET_HEX ?=1c0000
SPI_BOOTLOADER_SW_OFFSET_HEX ?=1c0000
 
PLATFORMFLASH_PART ?= xcf32p
 
 
print-config:
print-config:
        $(Q)echo; echo "\t### Backend make configuration ###"; echo
        $(Q)echo; echo "\t### Backend make configuration ###"; echo
        $(Q)echo "\tFPGA_PART="$(FPGA_PART)
        $(Q)echo "\tFPGA_PART="$(FPGA_PART)
        $(Q)echo "\tXILINX_FLAGS="$(XILINX_FLAGS)
        $(Q)echo "\tXILINX_FLAGS="$(XILINX_FLAGS)
Line 67... Line 71...
MAPPED_NCD=$(DESIGN_NAME)_mapped.ncd
MAPPED_NCD=$(DESIGN_NAME)_mapped.ncd
PARRED_NCD=$(DESIGN_NAME).ncd
PARRED_NCD=$(DESIGN_NAME).ncd
PCF_FILE=$(DESIGN_NAME).pcf
PCF_FILE=$(DESIGN_NAME).pcf
BIT_FILE=$(DESIGN_NAME).bit
BIT_FILE=$(DESIGN_NAME).bit
BIT_FILE_FOR_SPI=$(DESIGN_NAME)_spiboot.bit
BIT_FILE_FOR_SPI=$(DESIGN_NAME)_spiboot.bit
 
BIT_FILE_FOR_PLATFORMFLASH=$(DESIGN_NAME)_platformflash.bit
BATCH_FILE=$(DESIGN_NAME).batch
BATCH_FILE=$(DESIGN_NAME).batch
MCS_FILE=$(DESIGN_NAME).mcs
SPI_MCS_FILE=$(DESIGN_NAME)_spi.mcs
 
PLATFORMFLASH_MCS_FILE=$(DESIGN_NAME)_platformflash.mcs
 
 
 
 
$(NGC_FILE):
$(NGC_FILE):
        $(Q)$(MAKE) -C $(BOARD_SYN_RUN_DIR) $(DESIGN_NAME).ngc
        $(Q)$(MAKE) -C $(BOARD_SYN_RUN_DIR) $(DESIGN_NAME).ngc
 
 
$(NGD_FILE): $(UCF_FILE) $(NGC_FILE)
$(NGD_FILE): $(UCF_FILE) $(NGC_FILE)
Line 100... Line 107...
 
 
$(BIT_FILE_FOR_SPI): $(PARRED_NCD)
$(BIT_FILE_FOR_SPI): $(PARRED_NCD)
        @echo; echo "\t#### Generating .bit file for SPI load ####";
        @echo; echo "\t#### Generating .bit file for SPI load ####";
        $(Q)bitgen -w $(XILINX_FLAGS) -g StartUpClk:CClk $< $@
        $(Q)bitgen -w $(XILINX_FLAGS) -g StartUpClk:CClk $< $@
 
 
 
$(BIT_FILE_FOR_PLATFORMFLASH): $(PARRED_NCD)
 
        @echo; echo "\t#### Generating .bit file for platform flash load ####";
 
        $(Q)bitgen -w $(XILINX_FLAGS) -g StartUpClk:CClk $< $@
 
 
# Generate MCS with bootloader specified by user, if BOOTLOADER_BIN defined.
# Generate MCS with bootloader specified by user, if BOOTLOADER_BIN defined.
ifeq ($(BOOTLOADER_BIN),)
ifeq ($(BOOTLOADER_BIN),)
$(MCS_FILE): $(BIT_FILE_FOR_SPI)
$(SPI_MCS_FILE): $(BIT_FILE_FOR_SPI)
        @echo; echo "\t#### Generating .mcs file for SPI load ####";
        @echo; echo "\t#### Generating .mcs file for SPI load ####";
        $(Q)promgen -spi -p mcs -w -o $@ -s $(SPI_FLASH_SIZE_KBYTES) -u 0 $<
        $(Q)promgen -spi -p mcs -w -o $@ -s $(SPI_FLASH_SIZE_KBYTES) -u 0 $<
else
else
$(MCS_FILE): $(BIT_FILE_FOR_SPI)
$(SPI_MCS_FILE): $(BIT_FILE_FOR_SPI)
        @echo; echo "\t#### Generating .mcs file with bootloader for SPI load ####";
        @echo; echo "\t#### Generating .mcs file with bootloader for SPI load ####";
        $(Q)promgen -spi -p mcs -w -o $@ -s $(SPI_FLASH_SIZE_KBYTES) -u 0 $< \
        $(Q)promgen -spi -p mcs -w -o $@ -s $(SPI_FLASH_SIZE_KBYTES) -u 0 $< \
        -data_file up $(SPI_BOOTLOADER_SW_OFFSET_HEX) $(BOOTLOADER_BIN)
        -data_file up $(SPI_BOOTLOADER_SW_OFFSET_HEX) $(BOOTLOADER_BIN)
endif
endif
 
 
 
$(PLATFORMFLASH_MCS_FILE): $(BIT_FILE_FOR_PLATFORMFLASH)
 
        @echo; echo "\t#### Generating .mcs file for platform flash load ####";
 
        $(Q)promgen -p mcs -w -o $@ -x $(PLATFORMFLASH_PART) -data_width 16 \
 
        -u 0 $<
 
 
#this target downloads the bitstream to the target fpga
#this target downloads the bitstream to the target fpga
download: $(BIT_FILE) $(BATCH_FILE)
download: $(BIT_FILE) $(BATCH_FILE)
        $(Q)impact -batch $(BATCH_FILE)
        $(Q)impact -batch $(BATCH_FILE)
 
 
#This target uses netgen to make a simulation netlist
#This target uses netgen to make a simulation netlist

powered by: WebSVN 2.1.0

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