Line 44... |
Line 44... |
else
|
else
|
$(error Could not determine OS type for locating XILINX applications)
|
$(error Could not determine OS type for locating XILINX applications)
|
endif
|
endif
|
endif
|
endif
|
|
|
|
# Determine XILINX ISE version
|
|
XILINX_FILESET := $(XILINX_NORMAL)/fileset.txt
|
|
XILINX_VER := $(shell $(AWK) 'BEGIN { FS = "=" } /version/ { printf("%s",$$2) }' $(XILINX_FILESET))
|
|
XILINX_MAJOR_VER := $(basename $(XILINX_VER))
|
|
|
# Xilinx tools
|
# Xilinx tools
|
XST := $(XILINX_NORMAL)/bin/$(XILINX_PLAT)/xst
|
XST := $(XILINX_NORMAL)/bin/$(XILINX_PLAT)/xst
|
NGDBUILD := $(XILINX_NORMAL)/bin/$(XILINX_PLAT)/ngdbuild
|
NGDBUILD := $(XILINX_NORMAL)/bin/$(XILINX_PLAT)/ngdbuild
|
MAP := $(XILINX_NORMAL)/bin/$(XILINX_PLAT)/map
|
MAP := $(XILINX_NORMAL)/bin/$(XILINX_PLAT)/map
|
Line 77... |
Line 81... |
INTSTYLE :=
|
INTSTYLE :=
|
XST_FLAGS ?= $(INTSTYLE) # most synthesis flags are specified in the .xst file
|
XST_FLAGS ?= $(INTSTYLE) # most synthesis flags are specified in the .xst file
|
NGDBUILD_FLAGS ?= $(INTSTYLE) -dd _ngo # ngdbuild flags
|
NGDBUILD_FLAGS ?= $(INTSTYLE) -dd _ngo # ngdbuild flags
|
NGDBUILD_FLAGS += $(if $(UCF_FILE),-uc,) $(UCF_FILE)
|
NGDBUILD_FLAGS += $(if $(UCF_FILE),-uc,) $(UCF_FILE)
|
# pre-11.1 flags
|
# pre-11.1 flags
|
#MAP_FLAGS ?= $(INTSTYLE) -cm area -pr b -k 4 -c 100 -tx off
|
ifeq "$(XILINX_MAJOR_VER)" "11"
|
# ISE 11.1 flags
|
# ISE 11.1 flags
|
MAP_FLAGS ?= $(INTSTYLE) -cm area -pr b -c 100 -tx off
|
MAP_FLAGS ?= $(INTSTYLE) -cm area -pr b -c 100 -tx off
|
|
else
|
|
MAP_FLAGS ?= $(INTSTYLE) -cm area -pr b -k 4 -c 100 -tx off
|
|
endif
|
PAR_FLAGS ?= $(INTSTYLE) -w -ol std -t 1
|
PAR_FLAGS ?= $(INTSTYLE) -w -ol std -t 1
|
TRCE_FLAGS ?= $(INTSTYLE) -e 3 -l 3
|
TRCE_FLAGS ?= $(INTSTYLE) -e 3 -l 3
|
BITGEN_FLAGS ?= $(INTSTYLE) # most bitgen flags are specified in the .ut file
|
BITGEN_FLAGS ?= $(INTSTYLE) # most bitgen flags are specified in the .ut file
|
PROMGEN_FLAGS ?= -u 0 # flags that control the MCS/EXO file generation
|
PROMGEN_FLAGS ?= -u 0 # flags that control the MCS/EXO file generation
|
|
|
Line 135... |
Line 142... |
@$(ECHO) "setMode -spi" >>$@
|
@$(ECHO) "setMode -spi" >>$@
|
@$(ECHO) "setMode -acecf" >>$@
|
@$(ECHO) "setMode -acecf" >>$@
|
@$(ECHO) "setMode -acempm" >>$@
|
@$(ECHO) "setMode -acempm" >>$@
|
@$(ECHO) "setMode -pff" >>$@
|
@$(ECHO) "setMode -pff" >>$@
|
@$(ECHO) "setMode -bs" >>$@
|
@$(ECHO) "setMode -bs" >>$@
|
@$(ECHO) "deleteDevice -position 1" >>$@
|
|
@$(ECHO) "deleteDevice -position 1" >>$@
|
|
@$(ECHO) "setMode -bscan" >>$@
|
@$(ECHO) "setMode -bscan" >>$@
|
@$(ECHO) "setCable -p auto" >>$@
|
@$(ECHO) "setCable -p auto" >>$@
|
@$(ECHO) "addDevice -p 1 -file $(BSD_FILE)" >>$@
|
@$(ECHO) "addDevice -p 1 -file $(BSD_FILE)" >>$@
|
@$(ECHO) "Identify" >>$@
|
@$(ECHO) "Identify" >>$@
|
@$(ECHO) "identifyMPM" >>$@
|
@$(ECHO) "identifyMPM" >>$@
|